10

Assuming I'm not concerned with the data on it.

0

3 Answers 3

5

It wont "fix" bad sectors, but it should mark them as bad (unusable) and therefore no data would be written to those bad sectors.

Ideally with the cost of storage now, just replacing and using a new drive seems ideal to me.

3
  • 5
    NB: Don't use Quick Format, though, as that will only create the file system structures and won't touch every byte on the disk.
    – Joey
    Oct 28, 2009 at 10:33
  • Wouldn't the known bad sectors be marked as such already? I wonder if formatting really searches for additional bad sectors? Quick format might be just as good then. But, more important: running some disk check utility without any formatting marks the bad sectors just as well.
    – Arjan
    Oct 28, 2009 at 10:47
  • 2
    @Arjan - If no utility to check has been run, then no - most operating systems won't mark them as bad. Doing a full format checks every sector on the drive during the format, a quick format does not do this. The question was very specific, so your last point about any other disk check utility doing the same thing is a moot point. The OP asked specifically about format.
    – MDMarra
    Oct 29, 2009 at 0:31
10

Your disk will already be aware of the bad sectors and should swap those locations with spares from the platter.

Most hard drives made today (referring to consumer drives) are manufactured in such a way that they really only just work. The drive manufacturers add extra bits so that the drive can compensate the gradual loss of these writable bits.

If you really want to resolve the drive then an application like SpinRite will attempt to read all the data from the current sectors and probably is the number one tool used by skilled data recovery experts short of using a clean room and putting the platters into another piece of hardware.

So in short a low level format may help re-find bad sectors and mark them as such but it would be a waste of your time and effort on a modern drive (eg: post y2k). Using SpinRite may help in data recovery and helping find other sectors that are starting to degrade.

Like Jason has said, once you have moved beyond 5-10% of the drive having bad sectors, its time to no longer use this drive for data that you wish to keep.

Update

A low level format or disk utility will excercise all sectors on the disk to find bad sectors. A disk can only know if a bit is usuable if a read/write attempt is made. By attempting to read & write every sector on the disk the disk can find bad sectors in areas that have not been used yet.

Also once the disk runs out of spare bits thats when you will start to see your drive space shrinking as the available capacity of the drive is lower due to unusuable parts of the media.

Hope this clears up my comments and makes them more accurate!

2
  • As for a low level format may help re-find bad sectors -- re-find or find additional bad sectors? Once marked, there's no need to re-find anything, I guess.
    – Arjan
    Oct 28, 2009 at 11:07
  • Actually it appears that letting modern HDDs know which sectors are faulty is not enough for the drives to reallocate them to their spare ones. As seen from S.M.A.R.T. info, they will only be marked bad and shown under the section Pending sectors as sectors pending for reallocation. The reallocation is only done once any data is written onto these sectors. A simple write access using the dd command on Linux is enough to force their reallocation and make the sectors useable again. As a side note, I have never seen a drive with 5% of bad sectors. Only with up to ten or a few tens of them. May 18, 2017 at 19:58
2

I've actually successfully 'fixed' a drive that had bad sectors, and was failing smart tests and giving me trouble in recovery with a full format from windows, though the linux badblocks command may work as well. I've also had drives drop dead so I wouldn't say this is a solution that always works. This is useful ONLY when there's a limited amount of damage (I have one sector) and it isn't major physical, electrical or functional issues.

Generally failing a SMART self test is a sign something is wrong, and backing up with the appropriate tool and not trusting the drive is a very good idea - In this case this drive is used to store downloads and other transient data I will not miss. Unfortunately, I did not try gsmartcontrol on the drive pre data recovery and wipe and the tests the software my laptop's manufacturer gave is different from what I usually use but it failed a 'targeted read test' and 'smart short test'

The SMART values "Current Pending Sector Count" Indicates you have bad sectors now and you might get an error saying "Uncorrectable error in data". This is a drive that works now, but you can see some values are not healthy

enter image description here

And the logs show that there were issues - rerunning smart tests post format is a good idea

enter image description here

So its possible to fix this, but time will tell if the drive can survive. I certainly wouldn't put any critical data on it.

You must log in to answer this question.