Filed under: OS, Troubleshooting
One way to fix a Mac that won't login
We tried rebooting, we tried zapping the PRAM, and we both booted into single user mode and booted the computer in target disk mode, attached to my laptop, and performed a disk check on the computer. No problems with the disk. The machine just wasn't booting.
After throwing up my hands and proclaiming there to be some odd hardware failure, it suddenly hit me: maybe the login window preferences were borked. We booted into single user mode again (reboot and hold down the command s button). I ran all the commands that you have to run in order to write to the disk (
/sbin/fsck
-y followed by /sbin/mount -wu /). Then I ran:cd Library
cd Preferences
mv com.apple.loginwindow.plist BACKUPcomappleloginwindowplistThis makes a backup copy of the preference file associated with the login window and erases the original file in the process. After I was done, I typed
reboot at the prompt and hit the return key. OS X rebooted and was forced to create a new preference file
for the login window, thus fixing the problem. Huzzah!

![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 1)
georg said 4:29AM on 2-17-2006
thank you for this article. you are my hero of the day. whithout your hint, i would have re-instaled os x. ;-)
Reply
Ryan said 11:07PM on 1-25-2006
Nice job C.K.!
Reply
Adam Fukushima said 11:36PM on 1-25-2006
You know, if you just hold the shift button down until your desktop comes up, and then restart normally, it will accomplish the same thing.
Safe mode will check your hard drive and remove said preference file for you, among other things.
Reply
David C. said 11:37PM on 1-25-2006
well aren't you a smart cookie
Reply
macfanboy said 11:55PM on 1-25-2006
Bookmarked and saved for future reference, if necessary. Thanks!
Reply
Scott Hughes said 1:10AM on 1-26-2006
This seems to be a somewhat common problem. I had a discussion about this with a few others here:
http://blog.globalreset.org/articles/2005/11/04/mini-crash
I'd like for someone to explain what the problem is exactly. As in, what is causing the .plist to become 'borked'?
Reply
edan said 1:23AM on 1-26-2006
I've got an iBook G3 800 that simply will not boot. It started exhibiting these odd shut downs from running in OSX. The machine would operate normally for 8-20 minutes w/o issue and would simply shut down. At this point it simply will not boot, on AC power, battery, after reseting the PRAM, target disk mode, and every other possible trick you can imagine. The machine has been gone over end to end and for the life of me I cannot figure out why it kept shitting down or why it will not boot at all now.
Any ideas? I've hit the support.apple forums, other apple support site and even taken the book into the apple store. The geniuses tell me it's out of warranty, apple care and all and that it'll cost at least $100 to diagnose. At this point I'm thinking, wait for the new Intel MacBooks, but this machine used to work great....
Reply
Dan Bedford said 1:27AM on 1-26-2006
Quote #2:
"You know, if you just hold the shift button down until your desktop comes up, and then restart normally, it will accomplish the same thing.
Safe mode will check your hard drive and remove said preference file for you, among other things."
Posted at 11:36PM on Jan 25th 2006 by Adam Fukushima
-----------------------------------------------------
Safe boot does not do this for you. Here is the Apple document describing just what it does:
http://docs.info.apple.com/article.html?artnum=107392
As for this troubleshooting tip, this is a great one! I wish Apple Tech Training would get more detailed with command line troubleshooting tips. Maybe next time I need to certify, they will have added more of this stuff...
Reply
Brandon M said 1:50AM on 1-26-2006
Speaking of tips, where do i submit mine?
Reply
Pip said 2:21AM on 1-26-2006
Once, back in the 10.1 or Jag eras, my iBook made it to the login screen, but wouldn't log in. I went in in single-user, and deleted /Library/Caches, and it worked
Reply
Esquare said 3:18AM on 1-26-2006
So, what you did was item #5:
http://docs.info.apple.com/article.html?artnum=106464
Reply
Michael said 3:23AM on 1-26-2006
http://applejack.sourceforge.net/
AppleJack does it magic in single user mode.
It combines several troubleshooting things that you can access in single user mode by hitting a few keys instead of typing endlessly[...]
It is meant as "get back on your feet" - not general maintenance - if your mac can not start up normally.
I have it on my mac as a first line of defense.
Reply
topher said 3:45AM on 1-26-2006
by any chance... do you have a dual monitor setup?
Reply
Tom said 11:29AM on 1-26-2006
I agree with Michael. Applejack should be installed on every new computer by default. It works.
Reply