September 4, 2019 By the melone Off

fix linux disk error

~#umount /dev/sda1
fsck -y /dev/sda1

fsck Options and ArgumentsPermalink
Option Action
-a Attempt to fix errors automatically. Use with caution.
-f Force fsck to check a file system even if it thinks it’s clean.
-A Check all disks listed in /etc/fstab.
-C Show progress bar (ext2 and ext3 file systems only).
-M Skip mounted file systems.
-N Test run. Describes what would happen without executing the check itself.
-P Use with the -A option to run multiple checks in parallel.
-R If using the -A option, do not check the root filesystem.
-t Check only a specific type of filesystem.
-T Skip the title on startup.
-y Interactive repair mode.