The Mac Observer

Skip navigational links

Mac OS X Tip - Repairing Mac OS X Disks

by , 11:00 AM EST, March 26th, 2001

Now that Mac OS X is in the hands of untold thousands, people are going to start putting the new OS through its paces with reckless abandon. While Steve Jobs has said that the goal for Mac OS X is to never crash, that is a bit unrealistic. Users, on occasion, will experience problems with Mac OS X resulting from a damaged volume.

Disks in Unix, and thus OS X, are particularly sensitive to improper shutdowns. If a user is forced to "power out" of an OS X session, or the power goes out, or OS X is not allowed to go through a normal shut down process for any reason users may start to notice strange system behavior. One of the few problems with OS X is that the disk repair application included with the OS, Disk Utility, can not repair an OS X volume if that OS X volume is the start up volume. Users always have the option of booting into OS 9.1 and running the OS 9 version of Disk First Aid on the OS X volume, provided the volume uses HFS+ formatting.

A bit more complicated, but far more robust solution, is posted in an Apple Technical Information Library (TIL) article. Unix includes a powerful file checking function called "fsck" (File System Check). fsck is currently the most complete and powerful solution for checking and repairing OS X disks. New versions of Norton Utilities or Tech Tool Pro, when released, might provide a more simple option for fixing many problems. According to the TIL article:

Under normal circumstances, you should perform disk verification and repair using the Disk Utility application included with Mac OS X. If your computer is started up in Mac OS 9, you may also use Disk First Aid to verify and repair Mac OS Extended (HFS Plus) format disks.

In some situations, file system errors may prevent the computer from starting up to a normal state in which Disk Utility or Disk First Aid can be used. The fsck utility may be able to verify and repair a Mac OS X disk in such a situation. This could occur after improper shutdown, forced restart, or power interruption.

When and How to Enter Single-User Mode

Generally you need to enter single-user mode when these two things happen:

  • The computer fails to start up normally.
  • The command line prompt (#) does not appear.

To enter single user mode:

  1. Restart the computer. You may need to perform a forced restart as described in the Emergency Troubleshooting Handbook that came with your computer.
  2. Immediately after the startup tone, press and hold both the Command (Apple) and "s" keys on your keyboard. The computer will displays a series of text messages, at which time you may release these keys. When startup is complete, the computer will display a command line prompt (#).The computer is now in single-user mode.

How to Use fsck From the Command Line

Once you have reached a command line, follow these steps to use fsck:

  1. Type the following at the # prompt: fsck -y
  2. Press Return.

    The fsck utility will go through five "phases" and then return information about the disk's utilization and fragmentation. If fsck alters, repairs, or fixes anything, it will display the message:

    ***** FILE SYSTEM WAS MODIFIED *****

    Important: If this message appears, repeat the "fsck -y" command until this message no longer appears. It is normal for your computer to require several "passes" of fsck, because first-pass repairs may uncover additional errors.

  3. When fsck reports that no problems were found, type the following command at the # prompt: reboot
  4. Press Return.

The computer should start up normally and allow you to log in.

Before undertaking this chore, we suggest you read the full article at the Apple Web site.


Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/extension.inc) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 108

Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/extension.inc' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 108

Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/common.) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 110

Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/common.' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 110

Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/includes/bbcode.) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 112

Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/includes/bbcode.' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 112

Fatal error: Call to a member function sql_query() on a non-object in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 532

Recent Headlines - Updated June 18th

Tue, 6:41 PM
Steve Wozniak Presides Over 3 Working Apple I Computers
4:35 PM
TMO Interview - Alf Watt at WWDC: The Journey from iStumbler to Apple and Beyond
3:47 PM
Product News - Apple Updates Java for Snow Leopard, Lion, Mountain Lion
2:01 PM
Chatology Offers Search & Filtering Options for Apple’s Messages & iChat
1:50 PM
Quick Look Review - Just Mobile’s AluCup: iOS Device Convenience in a Small Space
12:45 PM
TMO Quick Tip - How to Run Parallels Desktop 8 with OS X Mavericks DP
11:09 AM
Editorial - Of Course iOS 7 is Broken, it’s Beta
9:56 AM
Apple Stock Watch - Analyst: Get Ready for September iPhone Launch
9:06 AM
Product News - Adobe Launches Creative Cloud, Moves to Subscription Software Model
Mon, 7:05 PM
Analysis - Apple Expands Jony Ive’s Title to Cover All ‘Design’
6:26 PM
Analysis - Apple’s Eddy Cue Details Steve Jobs Interest in iBooks
6:25 PM
Mac Geek Gab Podcast - MGG 454: Power Interruptus

The Mac Observer Reader Specials

  • Support TMO, Buy from Amazon, MacMall and The Apple Store

  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!