30 May 2010

Check badblocks on a device

If error occurs, strange behaviour or if SMART error are reported (Cf. instructions to get report), you should check file System (see next post), including bad blocks.

To have a report as soon as possible, you could focus on checking bad blocks at first.

To perform a quick read-only check:
badblocks -s /dev/sdaN

To perform a non-destructive read-write check:
badblocks -ns /dev/sdaN

To perform a write check (destructive):
badblocks -ws /dev/sdaN

N.B.:
 - the -s option is interesting to be notified about check progress
 - replace /dev/sdaN by the device path you want to check
 - corresponding device must NOT be mounted (do NOT use the -f option !)

No comments:

Post a Comment

Thank you for your visit, let's share your point of view: