Discussion:
XFS and badblocks - how to scan / repair?
(too old to reply)
scott
2004-02-28 23:46:02 UTC
Permalink
I've checked the man pages and various pages that google threw at me; but
I cannot find a clear set of instructions on how to check and repair bad
sectors on a hard drive formatted with the xfs fs. Thanks for any
constructive help. Next step will be formatting it in FAT and running DOS
6.2 scandisk on it - which works great.
--
Scott Bolander
***@nospam-bolanderhome.com
Stefan Patric
2004-02-29 02:48:51 UTC
Permalink
Post by scott
I've checked the man pages and various pages that google threw at me;
but I cannot find a clear set of instructions on how to check and
repair bad
sectors on a hard drive formatted with the xfs fs. Thanks for any
constructive help. Next step will be formatting it in FAT and running
DOS 6.2 scandisk on it - which works great.
fsck -t xfs <and so forth>

and, if you want to "format" with badblock checking

mkfs -t xfs -c <etc.>

man fsck
man fsck.xfs
man mkfs
man mkfs.xfs
apropos xfs
--
Stefan Patric
***@yahoo.com
Molchun
2004-03-01 09:30:39 UTC
Permalink
Post by scott
I've checked the man pages and various pages that google threw at me; but
I cannot find a clear set of instructions on how to check and repair bad
sectors on a hard drive formatted with the xfs fs.
If I understand correctly what you need then "badblocks" is your friend.
I know, very unintuitive name ;).
You can search for bad blocks on the drive but you can't repair bad blocks!
If you find bad blocks then it's probably time to dump the disk. Sometimes
you can cure it by doing low level format on the disk but I don't think
it's worth it. Ah, almost forgot, "badblocks" doesn't really care what
filesystem is on the drive - nothing to do with that.
Now, if you want to check and *repair* the filesystem consistency then it's
different matter all together and a different story.
--
Jabber: ***@jabber.org
PGP ID: 0x304563A8
J.O. Aho
2004-03-01 10:08:39 UTC
Permalink
Post by Molchun
Post by scott
I've checked the man pages and various pages that google threw at me; but
I cannot find a clear set of instructions on how to check and repair bad
sectors on a hard drive formatted with the xfs fs.
If I understand correctly what you need then "badblocks" is your friend.
I know, very unintuitive name ;).
You can search for bad blocks on the drive but you can't repair bad blocks!
If you find bad blocks then it's probably time to dump the disk. Sometimes
you can cure it by doing low level format on the disk but I don't think
it's worth it. Ah, almost forgot, "badblocks" doesn't really care what
filesystem is on the drive - nothing to do with that.
Now, if you want to check and *repair* the filesystem consistency then it's
different matter all together and a different story.
Maybe he was thinking of the way microsoft windows does, and remaps the
harddrive so that those areas of the harddrive that has badblocks is not used.
Molchun
2004-03-01 12:21:29 UTC
Permalink
Post by J.O. Aho
Post by Molchun
Post by scott
I've checked the man pages and various pages that google threw at me; but
I cannot find a clear set of instructions on how to check and repair bad
sectors on a hard drive formatted with the xfs fs.
If I understand correctly what you need then "badblocks" is your friend.
I know, very unintuitive name ;).
You can search for bad blocks on the drive but you can't repair bad
blocks! If you find bad blocks then it's probably time to dump the disk.
Sometimes you can cure it by doing low level format on the disk but I
don't think it's worth it. Ah, almost forgot, "badblocks" doesn't really
care what filesystem is on the drive - nothing to do with that.
Now, if you want to check and *repair* the filesystem consistency then
it's different matter all together and a different story.
Maybe he was thinking of the way microsoft windows does, and remaps the
harddrive so that those areas of the harddrive that has badblocks is not used.
Maybe ...
But then the OP has to realize that marking the bad blocks is not the same
thing as repairing them. Badblocks will not mark bad blocks but fsck will
if invoked with -c which of course calls badblocks itself for help.
Brrrrrrrrrrr, how many times did I repeat the word "badblocks"? :)
--
Jabber: ***@jabber.org
PGP ID: 0x304563A8
J.O. Aho
2004-03-01 14:27:32 UTC
Permalink
Post by Molchun
Post by J.O. Aho
Post by Molchun
Post by scott
I've checked the man pages and various pages that google threw at me; but
I cannot find a clear set of instructions on how to check and repair bad
sectors on a hard drive formatted with the xfs fs.
If I understand correctly what you need then "badblocks" is your friend.
I know, very unintuitive name ;).
You can search for bad blocks on the drive but you can't repair bad
blocks! If you find bad blocks then it's probably time to dump the disk.
Sometimes you can cure it by doing low level format on the disk but I
don't think it's worth it. Ah, almost forgot, "badblocks" doesn't really
care what filesystem is on the drive - nothing to do with that.
Now, if you want to check and *repair* the filesystem consistency then
it's different matter all together and a different story.
Maybe he was thinking of the way microsoft windows does, and remaps the
harddrive so that those areas of the harddrive that has badblocks is not used.
Maybe ...
But then the OP has to realize that marking the bad blocks is not the same
thing as repairing them. Badblocks will not mark bad blocks but fsck will
if invoked with -c which of course calls badblocks itself for help.
Brrrrrrrrrrr, how many times did I repeat the word "badblocks"? :)
Only 3 times, if you don't include "bad blocks", as then it's 5 times.
Yes, you are completly right, but for most windows users marking which blocks
are bad is the same for them as fixing the harddrive.

Think how much easier it had been if there hadn't been any computers ;)


//Aho
Simon.
2004-03-02 11:57:37 UTC
Permalink
Post by J.O. Aho
Post by Molchun
Post by J.O. Aho
Post by Molchun
Post by scott
I've checked the man pages and various pages that google threw at me; but
I cannot find a clear set of instructions on how to check and repair bad
sectors on a hard drive formatted with the xfs fs.
If I understand correctly what you need then "badblocks" is your friend.
I know, very unintuitive name ;).
You can search for bad blocks on the drive but you can't repair bad
blocks! If you find bad blocks then it's probably time to dump the disk.
Sometimes you can cure it by doing low level format on the disk but I
don't think it's worth it. Ah, almost forgot, "badblocks" doesn't really
care what filesystem is on the drive - nothing to do with that.
Now, if you want to check and *repair* the filesystem consistency then
it's different matter all together and a different story.
Maybe he was thinking of the way microsoft windows does, and remaps the
harddrive so that those areas of the harddrive that has badblocks is not used.
Maybe ...
But then the OP has to realize that marking the bad blocks is not the same
thing as repairing them. Badblocks will not mark bad blocks but fsck will
if invoked with -c which of course calls badblocks itself for help.
Brrrrrrrrrrr, how many times did I repeat the word "badblocks"? :)
Only 3 times, if you don't include "bad blocks", as then it's 5 times.
Yes, you are completly right, but for most windows users marking which blocks
are bad is the same for them as fixing the harddrive.
Think how much easier it had been if there hadn't been any computers ;)
An how much paperwork there would be. Imagine defragmenting a
warehouse full of paper ...
*grin*
Post by J.O. Aho
//Aho
--
Simon.

'Be Seeing You.
Who is number one?
I will not be pushed, filed, stamped, indexed, briefed, de-briefed or numbered.
Registered Linux User #300464 Machine Id #188886
Linux Counter - http://counter.li.org/
Remove the s.p.a.m to reply
J.O. Aho
2004-03-02 13:16:55 UTC
Permalink
Post by Simon.
Post by J.O. Aho
Only 3 times, if you don't include "bad blocks", as then it's 5 times.
Yes, you are completly right, but for most windows users marking which blocks
are bad is the same for them as fixing the harddrive.
Think how much easier it had been if there hadn't been any computers ;)
An how much paperwork there would be. Imagine defragmenting a
warehouse full of paper ...
*grin*
I guess we wouldn't have that much of unemployment as nowdays... :)
Loading...