If you do a full format (as opposed to a quick format) it will first run chkdsk /r and mark any bad sectors (they cannot be "fixed", only marked so the system knows they should not be used). This is a transparent operation and you will not know checkdisk is running, but the format will take longer.