Tag Archives: e2fsck

linux – run e2fsck on a partition (fsck)

e2fsck is used to check the ext2/ext3/ext4 family of file systems.
sudo e2fsck -C0 -p -f -v /dev/sdb1
if errors:
sudo e2fsck -f -y -v /dev/sdb1

-C0 This option causes e2fsck to write completion information to the specified file descriptor
-p Automatically repair (“preen”) the file system.
-f Force checking even if the file system seems clean.
-v Verbose mode.