First of all, backup all the data stored on the target drive;
then you should unmount any mounted partitions located on that drive:
# umount /dev/sdz1
You can use
dd
utility to fill the drive with zeros:# dd if=/dev/zero of=/dev/sdz
# dd if=/dev/urandom of=/dev/sdz
And there's also a little more handy utility called
badblocks
:# badblocks -wso /tmp/badblocks.log /dev/sdz
/dev/sdz
device with some patterns (0xAA, 0x55, 0xFF, 0x00), then read and compare the read data with an actual pattern. A list of bad blocks will be written to /tmp/badblocks.log
file.References:
No comments:
Post a Comment