Sign in with
Sign up | Sign in
Your question

Getting rid badsectors

Last response: in Storage
Share
Anonymous
a b G Storage
June 11, 2011 11:22:12 PM


how can i get rid bad-sectors?

More about : rid badsectors

a c 415 G Storage
June 11, 2011 11:40:48 PM

The drive will automatically remap data in bad sectors to spare sectors if it's able to read the data successfully. If it can't read the data then it won't remap a bad sector until it's been overwritten with new information.
June 14, 2011 10:55:38 PM

Best way to get rid of bad sectors is to replace the disk; if you're getting a significant number of bad sectors then the disk is probably dying and you'll only get more.

I think my laptop disk started with about a dozen bad sectors when I first noticed them and had over a hundred before I managed to replace it a couple of weeks later.
Related resources
June 17, 2011 9:08:19 PM

I'm not an expert in this (but am working on getting expertise)
but (again haven't used this extensively or at all but have been reading on it and used it minimally wnat ot use these CLI commands more though)

badblocks
fsck

in cli. not sure what OS you're using though.
a c 415 G Storage
June 18, 2011 3:17:19 AM

> badblocks
This utility tries to locate bad blocks by writing patterns to every sector and then reading them back again to verify them. But the firmware in the disk itself also verifies data by checking it's ECC information, and if it finds problems it will remap the sector at the drive level without the utility being aware of it. As a result it's unusual for software to be aware of bad blocks on the drive - the drive normally looks "clean" and the only way to see if blocks have gone bad is to look at the drive's SMART data. See: http://en.wikipedia.org/wiki/Badblocks

> fsck
This utility checks the consistency of the file system metadata. It doesn't look for bad blocks per se, but rather looks for inconsistencies such as a block that's marked as being free for use yet also happens to show up in the list of blocks allocated to a file.

For the other people reading, these are Linux utilities, you won't find them in Windows. The equivalent to "fsck" in Windows is "chkdsk".
!