badblocks command corrects?

Alan Dayley alandd at consultpros.com
Mon Oct 30 15:36:42 MST 2006


The 'badblocks' command is called by fsck to assist its goal of checking
the filesystem.  'badblocks' can also be called directly from the command
line.  (See 'man badblocks' or
'http://www.die.net/doc/linux/man/man8/badblocks.8.html' for further
instructions on the command.)

The command line of 'badblocks' allows the bad block checking to run
against a "file" on the disk.  The file can be a file
(/home/user/testfile.bin), a partition (/dev/hdb1) or a device (/dev/hdb).

Question: Given that no filesystem on hdb is mounted and the command
'badblocks /dev/hdb' does badblocks attempt to "map out" any badblocks
found?

I'm about to dive into the source to answer my question but wanted to ask
the group in case someone already knows the answer.

Alan





More information about the PLUG-discuss mailing list