Difference between revisions of "Fsck tips"
Jump to navigation
Jump to search
(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...) |
|||
Line 24: | Line 24: | ||
To fsck a broken filesystem, automatically answering "yes" to prompts: | To fsck a broken filesystem, automatically answering "yes" to prompts: | ||
fsck -y | fsck -y | ||
+ | |||
+ | [http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds2%2Ffsck.htm More Info Is Here] | ||
[[Category:Tech support]] | [[Category:Tech support]] |
Revision as of 13:20, 27 October 2011
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