Fsck tips
Revision as of 17:26, 4 March 2011 by Messingerevan (talk | contribs) (New page: ==Warning== The drive you want to check must be unmounted or the check itself may corrupt the filesystem!! ==Usage== sudo fsck [options] [device name] ==Useful commands== These require s...)
Warning
The drive you want to check must be unmounted or the check itself may corrupt the filesystem!!
Usage
sudo fsck [options] [device name]
Useful commands
These require sudo.
To list mounted drives:
mount
To mount everything in /etc/fstab:
mount -a
To list all recognized drives and partitions:
fdisk -l
To reboot, forcing fsck on root filesystem:
shutdown -rF now
To fsck all unmounted filesystems with pass number > 0 in /etc/fstab:
fsck -ARM
To pretend fsck:
fsck -N
To make fsck skip mounted filesystems and exit cleanly:
fsck -M
To fsck a broken filesystem, automatically answering "yes" to prompts:
fsck -y