Jump to content

Repair kext permissions from single user mode?


  • Please log in to reply
7 replies to this topic

#1
wormyrocks

wormyrocks

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts

Hi,

I have a GTX 560 and I posted here a few days ago about intermittent freezes following the 10.8.3 update. After a few minutes on Google I realized that I was experiencing the long-reviled "Fermi freeze", which experienced an uptick following the release of 10.8.3.

Stupidly, I attempted to install a bunch of kexts and frameworks listed here[1] , but they comprised a solution for 10.8.2, not 10.8.3. Upon my reboot I was greeted with glitchy, unusable graphics performance. The finder would reboot about twice every second.

So, I booted into Windows to attempt to restore the kexts and frameworks from their backups. Using the Paragon HFS+ driver, I restored my earlier backups of my Extensions folder and the three frameworks that were replaced by the tonymac download.

I'm almost certain that, were I able to restore my kext cache and repair permissions, my Mac partition would boot without issue. However, I am unable to do so.

Upon booting in single user mode, and fsck'ing, I am unable to run 'diskutil repairPermissions /'. The error message displayed is:

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."

I also tried to selectively repair just the Extensions folder with this[2] method (starting with the command:

chown -R root:wheel /System/Library/Extensions/

) -- but now the sudo command has stopped working! I get the error

sudo: unable to initialize PAM: No such file or directory

{censored}!

Does anyone have any idea what the hell is going on? I had previously experienced a problem with kexts misbehaving, but I was always able to fix it by restoring the kexts under Windows and then repairing permissions in single user mode.

I also don't have a repair disk with me, so I'm up the creek without a paddle, as it were. I really don't want to use Windows for the rest of my life...


#2
eep357

eep357

    Triple Platinum

  • Retired
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
certain functions like diskutil are not available in single user mode because their frameworks aren't loaded yet. There should also be no need to use "sudo" in single user mode since you already have root access. There is a way to force load certain frameworks from single user mode, I don't know the commands off the top of my head but I'm sure you can find them via google if need be. chown and chmod should work fine without sudoing though, so try that if you haven't. If you still get an error without sudo, somethings wrong there.

#3
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 3,202 posts
  • Gender:Male
  • Location:Moscow
Exclude ending /

#4
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain
for diskutil run in single user mod you need launch this

fsck -fy

mount -uw /


launchctl load /System/Library/LaunchDaemons/com.apple.notifyd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.kextd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist
launchctl start com.apple.diskarbitrationd
launchctl load /System/Library/LaunchDaemons/com.apple.configd.plist

diskutil repairPermissions /


#5
Cobus

Cobus

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts
Good morning/afternoon/evening !

My computer (a Mini 311c hackintosh under MacOS 10.6.7 that worked well) fails to start after I used Onyx (I run Onyx approximately once every two weeks and never had a problem with it).

It starts OK in single-user mode.

Given the fact that Onyx repairs permissions, the problem might be a permission that Onyx broke.

So I wanted to repair permissions in single-user mode with your set of instructions :

for diskutil run in single user mod you need launch this

fsck -fy
mount -uw /

launchctl load /System/Library/LaunchDaemons/com.apple.notifyd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.kextd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist
launchctl start com.apple.diskarbitrationd
launchctl load /System/Library/LaunchDaemons/com.apple.configd.plist

diskutil repairPermissions /


It failed : the computer entered an endless loop after i typed the fourth instruction ("launchctl load /System/Library/LaunchDaemons/com.apple.kextd.plist").
By "entered an endless loop", I mean that it did not display the ":/ root# " prompt again, but it displayed the text if I typed any on the keyboard.


I then tried another tutorial I found here : http://www.fishdan.c...ssions-106.html :

After the Command-S startup, type the following on the command prompts, allowing time for each to do its thing:

/sbin/fsck -y<return>
/sbin/mount -uw /<return>
/sbin/autodiskmount -va<return>


launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist


/usr/sbin/diskutil repairPermissions /


The result was the same : after the last instruction ("/usr/sbin/diskutil repairPermissions /"), the computer entered the same endless loop (it has been stuck there for 3 hours, now).


Do you have any solution to this ?


Thanks !

Cobus.

#6
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain
it is for 10.8 not 10.6

#7
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain
Attached File  AppleJack-1.6.dmg   371.75KB   86 downloads 10.6

#8
Cobus

Cobus

    InsanelyMac Protégé

  • Members
  • PipPip
  • 59 posts

Attached File  AppleJack-1.6.dmg   371.75KB   86 downloads 10.6


Thank you !

I used Applejack on a previous install. I liked this software very much.
But on the broken install, I did not have Applejack (I forgot its name meanwhile :thumbsdown_anim: ).
I hooked my SSD to another computer, and managed to install Applejack thanks to the Terminal (Applejack installer only accepts to work on the startup disk).

I booted in single-user mode, typed "Applejack", and saw that my Applejack install was a success : I could use Applejack to "[1] repair disks". :-)

But when I then tried "[2] repair permissions", I had the following result :

Permissions repair...
- All supporting services are not loaded.
Let's mount the startup file system for write access...
/dev/disk0s2 on / (hfs, local, journaled)
Done.

Configuring minimal Snow Leopard services...


And it's stuck there. :-(
I guess, Applejack tries to do the same as I did manually ("launchctl load /System/Library/LaunchDaemons/com.apple.kextd.plist"), and has the same problems.

So I guess, it's a good time for a reinstall. :-(


Anyway, thank you for your help !

Cobus.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy