Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm trying to repair my sister's iMac using single-user mode.

Since a recent power outage (no surge protector) it won't boot. I used verbose mode to see where it was hanging ("mDNSResponder: adding browse domain local") and found some advice online that said repairing the disk permissions might help.

So I booted into single user mode, ran fsck -fy a couple times until it stopped complaining, ran mount -uw / and autodiskmount -va fine, and got stuck at diskutil.

It just hangs (over an hour, no output).

Is there anything else I should try, or should I just revert to surgery and grab the hd?

share|improve this question

migrated from serverfault.com Aug 30 '11 at 16:36

This question came from our site for professional system and network administrators.

2 Answers 2

up vote 2 down vote accepted

Sounds like your filesystem took a serious beating (if you have to run fsck multiple times, it probably discarded a bunch of stuff in the process). Permission repair (diskutil repairPermissions disk<X>s<Y>) relies on the package receipts kept in /var/db/receipts and will not work successfully if these are damaged or missing (although it shouldn't hang, but who knows what else got blown up).

Assuming you don't have a recent backup of the system (if you do, restore from that), the next step would be to boot from the OS X DVD, launch Disk Utility from there and try it's permission repair. If that doesn't work either, exit Disk Utility and select Archive & Install, which basically moves all system files into /Previous System, reinstalls OS X and leaves the user files intact (or at least as intact as they are now). If you lack the disk space for that, you can also Install (without archiving the old system files). In either case you'll want to check the Preserve existing Users & Network Settings option.

share|improve this answer
    
I opted for surgery, but if I'd had an install disk to work with, I would have wanted to give this a shot. –  rampion Aug 30 '11 at 20:24

Diskutil won't start in single-user mode without starting the following five services first:

notifyd, configd, diskmanagementd, securityd and disarbitrationd.

Details and example-script here: http://www.system-fabrik.de/diskutil-single-user-mode/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.