This is so stupid.
It all began earlier today. I was logging out of my OS X account and it was taking its sweet time. I was in a hurry. I turned the Mac off with the power button, mid-logout. This is a basic thing that you shouldn’t do. Untrained, blind squirrels know this. But I did it anyway, and boy do I regret doing it.
The next time I start the computer up. Usual grey Apple logo, pinwheel. Usual plain blue. Usual “Starting Mac OS X…” window. Usual progress bar filling up. Usual “Starting Mac OS X…” window never disappearing. Hey, wait a minute.
Restarting. Same thing again. Restarting. Removing the battery. Waiting for a while. Trying again. No dice. Run Apple Hardware Test – passed all without a complaint. This is good, because we know hardware is not responsible, and fixing hardware can be hell. This is very, very bad, because OS X system innards are in the cards, and fixing that… well, it’s hell on a nice day.
It’s at this point, then, that we descend into OS X startup hell. Startup in Safe Mode. Slow, and no dice. Startup in Verbose mode. Even fewer die. Normal startup via Single-User Mode (pure root startup)… you guessed it.
However, via Single-User Mode (SU, from here on), I could check what was happening. My files were still there (phew). So I removed /var/db/.AppleSetupDone from SU. When booted, Mac Buddy (Setup Assistant) run, but it hung during the introduction video. Three times. At the same part. With the sound continuing. Hmm.
From SU, I renamed the NetInfo database (found at /var/db/netinfo/local.nidb) so that OS X would recreate it on boot. It did, but the problem was still not fixed. Boot from Tiger DVD – repair disk, repair disk permissions, reset password (my own, not root), set startup disk.
All possibilities exhausted, I did an Archive and Install. I created puppet users for my existing users (of the formula olduser2), and, with the help of themselves, altered the NetInfo database to remove the 2s on other users (and affiliated groups).
I’m now in some sort of alternate reality. Some settings are missing. Mail buttons are again caged like animals – Mail was reinstalled. iScroll2 did not, too, scroll – /System/ was archived, and drivers hang out there. Growl was running, but its prefpane was gone. Textpander was retained, but not enabled.
One can only hope that in this reality, I will in the future wait the extra minute for OS X to log out.


