Check Linux Disk / Filesystem
The below will use e2fsck
to check with the options of
- Use
badblocks
( c ) - force check, even if system seems clean (f)
- Optimize directories in filesystem (D)
- Automatically repair (“preen”) the file system (p)
- Print timing statistics (t)
- Verbose (v)
e2fsck -c -f -t -p -v -D /dev/sdb1