I suspect there might be bad sector on a disk. What tool is the best equivalent of the error checking tool of windows?
(I used ext3)
|
I suspect there might be bad sector on a disk. What tool is the best equivalent of the error checking tool of windows? (I used ext3) |
|||
|
|
DisksTo check for bad sectors check the SMART data, probably the best accessible by launching the Disks utility (Palimpsest). Even if you don't see any bad blocks there, launch a self-test to be sure. The program is bundled in the
Or in Ubuntu 16.04 version (3.18): BadblocksYou can also use
to just check, or to check and fix first write the result to a temporary file:
will check the whole disk and print out all bad blocks encountered on /dev/sda. From
|
|
Thanks a lot, that gave me the bad sector info I was looking for.
– Guillaume Coté
Aug 30 '11 at 1:04
|
||
|
Actually badblocks's manual discourages from using it directly and directs users to e2fsck with "-c" (for read only check) or "-cc" (for read write check) option.
– mrówa
Apr 29 '13 at 21:01
|
||
|
as a note, on 13.04 you run palimpsest by just running "disks" from the ubuntu menu, however...I dont' see an option to launch a self-test (possibly because I have only one drive, and it's the one running Ubuntu...)
– rogerdpack
Oct 11 '13 at 14:04
|
||
|
@mrówa the manual only says to do that if "the output of badblocks is going to be fed to the e2fsck or mke2fs programs"
– Jon
Dec 23 '13 at 14:31
|
||
|
badblocksYou can check for badblocks running the command
You can find more reading about it here. |
|||||||||||||
|
|
fsck - check and repair a Linux file system. Invoke it using
where /dev/sda1 is the drive you want to check. See 'man fsck' for more details. There's also 'badblocks' command which checks a device for, you guessed it, bad blocks. The drive need to be unmounted when checked, so to check the root partition you need to create a file 'forcefsck' in the root of the partition and reboot. The device will be checked upon the next boot:
Alternatively, you can boot from a Live CD and run the check from there. |
|||||||||||||||||||||
|