Mac OS X Tiger in a Nutshell: A Desktop Quick Reference (In a Nutshell (OReilly))
If the local directory database is damaged, boot into single- user mode by holding down
|
After the system boots in single-user mode, you should:
-
Wait for the root# prompt to come up.
-
Fix any filesystem errors:
# /sbin/fsck -fy
-
Mount the root filesystem as read/write:
# /sbin/mount -uw /
-
Change directories and go to the NetInfo database directory:
# cd /var/db/netinfo/
-
Move the database out of the way and give it a different name :
# mv local.nidb/ local.nidb.broken
-
Start enough of the system to use NetInfo. The /etc/rc script also creates a blank NetInfo database when it sees that it no longer exists:
# sh /etc/rc
-
Wait for a while for the system to become readyjust before it's ready, you should see the screen go blue as though it's going to show you the login window. However, it will return to the verbose boot screen with the black background, and you can press Control-L or Return to get your shell prompt back. Next, load the backup into NetInfo:
# /usr/bin/niload -d -r / . < /var/backups/local.nidump
-
When it saw that the NetInfo database needed to be recreated, /etc/rc deleted the .AppleSetupDone file, so you need to recreate it:
# touch /var/db/.AppleSetupDone
After you have completed these steps, reboot the system with the reboot command.