fsck
DisksAdvanced In real LinuxCheck and repair a file system
Name: fsck = file system check
This command needs a real Linux system; you can practise it in real Linux mode.
Description
fsck checks a file system's consistency and tries to repair errors, such as damage after a power cut. Run it only on **unmounted** file systems, or you may cause worse damage. The root file system is usually checked at boot.
Syntax
fsck [OPTION]... DEVICECommon options
| -y | Fix problems automatically |
| -n | Check only |
| -A | Check every file system in /etc/fstab |
| -t TYPE | Check only file systems of this type |
| -C | Show a progress bar |
Examples
$ sudo fsck -n /dev/sda1
Check only, change nothing (-n)
Explain