• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Debian net_inst check for bad sectors before install

wallsfd949

Golden Member
I know I've got some bad sectors on my hard disk in a certain area (thanks to SpinRite) but it seems like spinrite is not marking them as bad and Debian keeps trying to install itself on them because I get read write errors on specific sectors durring install.

Is there any way to mark these bad sectors so Debian avoids them?
 
I think the only thing you can realy do is partition around them.

Harddrives are suppose to automaticly detect and remap around bad sectors with something called "spare sectoring" were the manufacture automaticly set aside spare sectors that would all be used to cover up for bad sectors. This is normal to have some manufacturing defects and stuff like this, and that capability is built into the actual hardware itself.

So it's the hardware of the harddrive that is suppose to take care of bad sectors, all automaticly all without you or the OS's knowledge.

Bad sectors showing up constantly is a very bad bad sign for harddrive health...

However when you make your file system, if you use mkfs.ext3 with the "-c" option it should map out the bad blocks and it would be like they never existed.

mkfs.ext3 -c /dev/hd##

were hd## = your harddrive letter and partition number
 
This seemed to work well thank you! (took 7+ hrs to go through it)

Do you have any suggestions on how to check for new bad sectors without any OS damage? I know e2fsck has a 'non destructive' checking option, is that a good choice?
 
Back
Top