[Linux] Check disk integrity
Posted: Thu Oct 30, 2008 11:09 am
Use badblocks to do a full disk check (each sector):
Non-destructive method:
Checking for bad blocks in read-only mode
Arguments:
DESTRUCTIVE METHOD:
Tests each block by first writing in, than reading from it. Do not use this on an existing filesystem, it WILL DESTROY all data!
Arguments:
Non-destructive method:
Code: Select all
# badblocks -vs /dev/hda
Arguments:
- -v: verbose
- -s: show progress in rough percentage
DESTRUCTIVE METHOD:
Code: Select all
# badblocks -ws /dev/hda
Arguments:
- -w: write-mode test
- -s: show progress in rough percentage