xfs
[Top] [All Lists]

Re: Bad block on partition, how to deal with it?

To: Vijay Gill <vijay.s.gill@xxxxxxxxx>
Subject: Re: Bad block on partition, how to deal with it?
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Wed, 06 Sep 2006 09:22:43 -0500
Cc: xfs@xxxxxxxxxxx
In-reply-to: <60fdb1ad0609060459k6132f8b8s40e4f20f51a746ed@xxxxxxxxxxxxxx>
References: <60fdb1ad0609060459k6132f8b8s40e4f20f51a746ed@xxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (X11/20060808)
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


<Prev in Thread] Current Thread [Next in Thread>