Friday, June 12, 2015

How do we check faulty disk in linux?


Andrea Meschino
I'm new on checking disk fault. Basicaly I'm using smartctl, fsck, badblocks commands

Here is my procedure:
* fsck -fvC0 /dev/sdb1

* smartctl -a /dev/sdb

* smartctl -i /dev/sdb

* smartctl -c /dev/sdb

* smartctl -t short /dev/sdb

* smartctl -H /dev/sdb   (check health status)

* smartctl -l selftest /dev/sdb

* smartctl -l error /dev/sdb

* smartctl -l selftest /dev/sdb

* badblocks -v -o badblocks.log /dev/sdb1 (takes a lot of time and log into a file any bad block)

What do you think about it?

There's a program called hdck that is great for surface scanning hard disks in Linux. It can even do RAID drives. If it detects hardware interrupts or read errors it will recheck the areas and then report the condition of the drive/array.

http://hdck.sourceforge.net/

No comments:

Post a Comment