Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

repair permissions in single user mode?

Hi,
Can anybody tell me how to repair permissions in single user mode?
Thanks.

mini, Mac OS X (10.5.7)

Posted on Jun 14, 2009 5:17 AM

Reply
Question marked as Best reply

Posted on Jun 14, 2009 5:44 AM

The command you need to enter is quite simple ( /usr/sbin/diskutil repairPermissions /) but I suggest that instead of that you install the free and excellent AppleJack with which you can do more than just Repair Permissions, with its simple instructions ("Choose 1", "Choose 2", etc) on screen even though you are in Single User Mode.


Andreas
11 replies
Question marked as Best reply

Jun 14, 2009 5:44 AM in response to arthur

The command you need to enter is quite simple ( /usr/sbin/diskutil repairPermissions /) but I suggest that instead of that you install the free and excellent AppleJack with which you can do more than just Repair Permissions, with its simple instructions ("Choose 1", "Choose 2", etc) on screen even though you are in Single User Mode.


Andreas

Jun 14, 2009 5:43 AM in response to Andreas 

Could you let me have the code?
I have been an applejack fan in the past but unfortunately it does not work on my mac. It crashes when I try to restart. I have tried troubleshooting this but could not get applejack to work. I contacted the developer and he was unable to help. I also tried completely erasing my hard drive and doing a fresh reinstall of OS 10.5.7, with no added software, and applejack still crashed. So could you just let me have the code. Also, if you have the commands for the other tasks that applejack does that would be great. Thanks.

Jun 14, 2009 5:56 AM in response to arthur

I just caught my post in time to edit it with the repairPermissions command.

I am sure you will have already used fsck -fy, repeating until no error is reported, but I think that issuing the other commands without the protection offered by AJ could be asking for trouble. I have never before heard of AJ causing a crash. Have you tried (re-)installing the OS X 10.5.7 Combo Update? It might help to d/load it and then switch to Safe Boot Mode to install it. It may not help but it can't do any harm and it might just replace something that is corrupted.


Andreas

Jun 14, 2009 6:10 AM in response to Andreas 

Thanks for your reply and your help.
I did fsck -fy.
I also tried the 10.5.7 Combo Update but not with safe boot mode. I'll try that.
I just tried /usr/sbin/diskutil repairPermissions / in single user mode, and it did not work. I got this message:
Unable to run because unable to use DiskManagement framework. Common reasons inclde, but are not limited to, the DiskArbitration framework being unavailable due to being booted in single-user mode.

Jun 14, 2009 7:03 AM in response to arthur

That's pretty much the sort of thing I meant by "I think that issuing the other commands without the protection offered by AJ could be asking for trouble". It sounds as if preparation needs to be made to be able to run diskutil in SU Mode and that is beyond me. I suggest that after re-running the Combo you see if AppleJack will work - it might pay to re-install it.

If you haven't already done so, I suggest you apply DiskWarrior to the drive to rebuild the Disk Directory and hopefully effect some repairs. It's best if you can install DW on another drive because running it from its CD is painfully slow - but better that than nothing. (BTW, if DW has problems, note its "Scavenge" mode - "Option" key down so that "Rebuild" changes to "Rebuild…").


Andreas

Jun 14, 2009 10:33 AM in response to arthur

I think that the message you saw gives the explanation: links to the DiskManagement framework need to be in place before diskutil can run, and those links have not by default yet been established in SUM. Hence the need for AppleJack.

Now that you are up and running, as VK intimates, there is no point in running Repair Permissions other than in Disk Utility or Terminal, no advantage whatsoever. In fact, Repair Permissions is often advocated but rarely needed. It is not something that needs to be done as a routine. "Repair Permissions" is available in AppleJack primarily as something to try on those occasions when your Mac just refuses to boot normally.

I usually recommend that only AppleJack's items 1, 3 and 5 should be used without good reasons for 2 and 4. Even that can sometimes be overkill, even counter-productive - there is a fetish for clearing caches which usually only gives the user a slower Mac until certain caches have been rebuilt.

Anyway, I'm delighted that you seem to have solved your problem. 🙂

Jun 14, 2009 10:27 AM in response to arthur

Why does permissions repair work from within disc utility or the terminal, but not from within single user mode?

because various things need to be loaded and in a very specific order before disk utility can run (even its command line version). leopard's startup sequence is quite complicated and it took applejack's devs something like a year to crack it and make it possible to run repair permissions from SUM. AFAIK nobody else has ever managed it or anything close to it. but there is absolutely zero advantage to repairing permissions from SUM if you can do it while booted normally. this might be needed only if you can not boot normally but still can from SUM.

repair permissions in single user mode?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.