Skip to Content
Mac OS X Tiger in a Nutshell
book

Mac OS X Tiger in a Nutshell

by Andy Lester, Chris Stone, Chuck Toporek, Jason McIntosh
November 2005
Beginner to intermediate
528 pages
24h 11m
English
O'Reilly Media, Inc.
Content preview from Mac OS X Tiger in a Nutshell

Restoring the Directory Services Database

If the local directory database is damaged, boot into single-user mode by holding down -S as the system starts up. Next, check to see if you have a backup of the NetInfo database. The daily periodic job backs up the database each time it is run. You can find the backup in /var/backups/local.nidump. If you don’t have a backup, you won’t be able to restore. The local.nidump file is overwritten each time the cron job runs, so make sure you back it up regularly (preferably to some form of removable media).

Warning

If your computer is generally not turned on at 3:15 a.m. (the default time for the daily periodic job), you’ll never get a backup of your local directory. You can solve this problem by editing com.apple.periodic-daily.plist to run this job at a different time, or to run the job periodically with the command sudo periodic daily.

If you totally mess up and find that you forgot to backup your NetInfo database, you can stop at step 5 and issue the command rm /var/db/.AppleSetupDone. This makes Mac OS X think that it’s being booted for the first time when you restart, forcing it to run the Setup Assistant so you can create the initial user for the system, thus bringing your system to a usable state for further repairs.

After the system boots in single-user mode, you should:

  1. Wait for the root# prompt to come up.

  2. Fix any filesystem errors:

        # /sbin/fsck ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mac OS X Panther in a Nutshell, 2nd Edition

Mac OS X Panther in a Nutshell, 2nd Edition

Chuck Toporek, Chris Stone, Jason McIntosh

Publisher Resources

ISBN: 0596009437Errata