Debian net_inst check for bad sectors before install

wallsfd949

Golden Member
Apr 14, 2003
1,002
0
0
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?
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
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
 

wallsfd949

Golden Member
Apr 14, 2003
1,002
0
0
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?