What's the Linux-equivalent of MS scandisk?
On this weird lesser-know OS I've encountered called MS Windows I can scan a drive for errors including doing a low-level sector scan (maybe AKA a "suface scan"). I realize I can use fsck to check the filesystem, but how do I do a low-level disk integrity check under GNU/Linux?
|
Did you ever try the badblocks command? It's quit thorough.
|
I would recommend e2fsck because it also marks the bad blocks in the file system. It only works for ext2 and ext3 file systems though.
run the following command: # e2fsk -ck <device-name> |
Moloko wrote:
> Did you ever try the badblocks command? It's quit thorough. Thanks Moloko. Nope, never heard of it, but will look into it. gerrit_daniels wrote: > I would recommend e2fsck because it also marks the bad blocks > in the file system. Ahh, didn't know that. Thanks. Will read the manpage tonight. Interesting. I'm guessing that the record-keeping of bad-block info is internally handled by the file system driver itself. |
Quote:
If you are going for other journaling filesystems, then I am sure it will still work. I know that XFS also has this sort of checking software (xfsprogs is the debian package) |
All times are GMT -5. The time now is 12:40 PM. |