Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:mac:fsck [2007/01/23 08:39] – created billh | docs:mac:fsck [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== fsck (Mac)====== | ====== fsck (Mac)====== | ||
|(hold) command-s|start up in single user mode| | |(hold) command-s|start up in single user mode| | ||
+ | |df |display disk free space, along with disk names (most useful when you are not in single user mode, so you can see the full drive list) | | ||
|/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 -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| | |/sbin/fsck -fn |run a filesystem consistency check and interactive repair, assuming no to all questions, and do not open the disk for writing| | ||
Line 6: | Line 7: | ||
|exit |startup without rebooting| | |exit |startup without rebooting| | ||
|diskutil verifyVolume /|Verify the disk structure of a volume. | |diskutil verifyVolume /|Verify the disk structure of a volume. | ||
+ | |||
+ | ===== BAD SUPERBLOCK / MAGIC NUMBER WRONG ===== | ||
+ | If you are trying to run fsck on a disk other than the main boot disk, you may see this error: | ||
+ | < | ||
+ | BAD SUPER BLOCK: MAGIC NUMBER WRONG | ||
+ | </ | ||
+ | |||
+ | ...so run this instead: | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Other Operating System references talk about using newfs -N / | ||
+ | |||
+ | |||
+ | ===== External Links ===== | ||
+ | * [[http:// | ||
+ | * [[http:// | ||