sudo fsck -V -C /dev/sdc1 -- -y -f
I had originally thought that calling e2fsck was correct but fsck is a wrapper which calls the correct version for the file system. It defaults to ext2.
The options I used are:
- -V
- Verbose
- -C
- Gives a progress bar
- -y
- Answers "yes" to all interactive questions
- -f
- Forces a check even if one has been done recently.
- -c
- Uses the badblocks utility to check for bad blocks (duh) and feeds this information into fsck in order to mark those blocks off. From what I read, you are better off specifying this parameter to fsck than running badblocks separately because it will work out block sizes for you this way.
- Note that some of the options follow the device name. These options are passed to the underlying program (e.g. fsck.ext2) without verification.
No comments:
Post a Comment