Vijay Gill wrote:
Hi,
Got this bad sector in a seagate 40G hard disk.
You should buy a new disk for $20 or so :)
Is there any tool
under linux to scan the surface of the disk and mark the sectors bad
in file system (or at even lower level like seatools does)?
xfs has no badblocks support. If you can convince the drive to remap
the block with vendor tools then maybe it's ok. But modern drives remap
on their own; if you have a block that can't be remapped then your drive
is probably not long for this world. Don't try to keep using it.
Running Linux Fedora Core 5.
In the mean while I am doing a dd on that partition to copy the data
and try to recover it from there.
Also I have run badblocks to get the number of the block which is bad,
but how do I get it marked now so that the OS does not try to allocate
it for data in future.
With xfs, you don't. It's not worth it IMHO, just get a new disk.
-Eric
|