Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a Linux server running with Software RAID1. We see some issues in /var/log/messages like: unreadable sector. I want to perform a complete fsck on the drive to get some more information, but a fsck /dev/md0 brings a clean due to the Software RAID layer in between. How can I check the real hard drive? Do I need to disassemble the whole RAID? How do I deal with the inconsistency in the partition due to the additional Software RAID header?

Does anyone have a good idea for this?

share|improve this question
up vote 1 down vote accepted

fsck tests the filesystem, but this should be fine as long as the RAID hasn't failed completely.

To test the disk itself, use badblocks (in package e2fsprogs).

badblocks /dev/sda
share|improve this answer
It's ok to use badblocks without -n or -w on online filesystem, since it doesnt' do any writing. Changing any data on disk doesn't affect badblocks behaviour. – DukeLion Sep 19 '12 at 9:05
Yes, you are right, I misinterpreted the -n option. – Sven Sep 19 '12 at 9:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.