This is an old revision of the document!
fsck (Mac)
(hold) command-s | start up in single user mode |
/sbin/fsck -fy | run a filesystem consistency check and interactive repair, assuming yes to all questions (the -f means check a disk even if it is clean) |
/sbin/fsck -fn | run a filesystem consistency check and interactive repair, assuming no to all questions, and do not open the disk for writing |
reboot | reboot system from the terminal |
exit | startup without rebooting |
diskutil verifyVolume / | Verify the disk structure of a volume. Ownership of the affected disk is required. |