Difference between revisions of "Fsck tips"
(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...) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Migrated}} | ||
+ | [https://docs.google.com/document/d/1vTjYXvMWd9Ur6TTk9G3aYTAeFEJYMo4kArZMzLCuk7w/edit?usp=sharing Link] | ||
==Warning== | ==Warning== | ||
The drive you want to check must be unmounted or the check itself may corrupt the filesystem!! | The drive you want to check must be unmounted or the check itself may corrupt the filesystem!! | ||
Line 24: | Line 26: | ||
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]] |
Latest revision as of 11:25, 23 May 2014
This page has been migrated to a document on Free Geek's Google Drive. Information remaining behind may no longer be relevant. MIGRATOR: When you have tagged this page as migrated, (Link to new page immediately below.) |
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