Re: HD 'Analysis'

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: ropers
Date: Wednesday, May 6, 2009 - 4:10 pm

>> On Monday 04 May 2009 17:56:43 L. V. Lammert wrote:

2009/5/5 Tony Abernethy <tony@servacorp.com>:

I also would recommend badblocks(8), but I would recommend
  badblocks -svn
instead of badblocks -sw.

badblocks -svn also (s)hows its progress as it goes along, but does a
(v)erbose (n)on-destructive read/write test (as opposed to either the
default read-only test or the destructive read/write test). You can
check an entire device with badblocks, or a partition, or a file. The
great thing about using badblocks to check a partition is that it's
filesystem-agnostic. It will dutifully check every bit of its target
partition regardless of what's actually on it. And if you give
badblocks -svn an entire storage device to test, it will not even care
about the actual partition scheme used. Because this read/write test
can trigger the disk's own built-in bad sector relocation, this means
you can even have a disk that you can't read the partition table from,
and running badblocks -svn over it may at least temporarily fix
things. And I've used badblocks -svn e.g. to check old Macintosh
floppies. Who cares that OpenBSD doesn't know much about the
filesystem on those? badblocks does the job anyway.

(Because of this agnosticism, it's actually questionable whether
badblocks(8) ought to be part of a filesystem-specific package, but
hey, that's what it comes in. Yea, one *could* also argue whether to
include it elsewhere by default because it's so useful, but I'm not
the one making those decisions and I guess the folks who do will do
what makes the most sense to them, so I don't feel like starting to be
a back seat driver... ;-)

Oh, and of course it would probably be prudent to do a backup before
read/write tests, even though badblocks is well-established and (with
-n) supposed to be non-destructive. Supposed to... ;-) I've never been
disappointed but YMMV.

regards,
--ropers
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
HD 'Analysis', L. V. Lammert, (Mon May 4, 2:56 pm)
Re: HD 'Analysis', STeve Andre', (Mon May 4, 3:06 pm)
Re: HD 'Analysis', L. V. Lammert, (Mon May 4, 3:29 pm)
Re: HD 'Analysis', STeve Andre', (Mon May 4, 3:34 pm)
Re: HD 'Analysis', Jose Quinteiro, (Mon May 4, 3:36 pm)
Re: HD 'Analysis', Tony Abernethy, (Mon May 4, 3:45 pm)
Re: HD 'Analysis', Steve Shockley, (Mon May 4, 7:32 pm)
Re: HD 'Analysis', Hannah Schroeter, (Tue May 5, 4:46 am)
Re: HD 'Analysis', L. V. Lammert, (Tue May 5, 8:49 am)
Re: HD 'Analysis', L. V. Lammert, (Tue May 5, 9:11 am)
Re: HD 'Analysis', L. V. Lammert, (Tue May 5, 9:35 am)
Re: HD 'Analysis', José Quinteiro, (Tue May 5, 9:50 am)
Re: HD 'Analysis', STeve Andre', (Tue May 5, 10:09 am)
Re: HD 'Analysis', Steve Shockley, (Wed May 6, 3:45 am)
Re: HD 'Analysis', Steve Shockley, (Wed May 6, 3:52 am)
Re: HD 'Analysis', Martin Schröder, (Wed May 6, 8:24 am)
Re: HD 'Analysis', ropers, (Wed May 6, 4:10 pm)
Re: HD 'Analysis', Steve Shockley, (Wed May 6, 7:03 pm)
Re: HD 'Analysis', Marco Peereboom, (Thu May 7, 5:39 am)
Re: HD 'Analysis', ropers, (Thu May 7, 1:19 pm)
Re: HD 'Analysis', Tony Abernethy, (Thu May 7, 4:50 pm)
Re: HD 'Analysis', Sean Kamath, (Thu May 7, 10:12 pm)
Re: HD 'Analysis', Marco Peereboom, (Wed May 13, 3:42 pm)
Re: HD 'Analysis', Tobias Walkowiak, (Mon May 18, 6:21 am)
Re: HD 'Analysis', Otto Moerbeek, (Mon May 18, 6:28 am)
Re: HD 'Analysis', Hannah Schroeter, (Mon May 18, 6:37 am)
Re: HD 'Analysis', David Vasek, (Mon May 18, 6:50 am)