|
This is to check for bad block in a harddisk
Mount the device readonly first
mount -o remount,ro /dev/device
/sbin/badblocks -s -c 1024 -b 4096 -o /tmp/Output.bb /dev/device > status.log
Output will be present in /tmp/Output.bb
Note:e2fsck can also be used to check bad vlocks with the -c option
Cheers
Z
|