Skip to content

Instantly share code, notes, and snippets.

@rockpapergoat
Created January 20, 2012 17:40
Show Gist options
  • Save rockpapergoat/1648620 to your computer and use it in GitHub Desktop.
Save rockpapergoat/1648620 to your computer and use it in GitHub Desktop.
mount -uw /
Then we need to load a couple of required system modules. DirectoryServices is only required if you want networking support.
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/LaunchDaemon/com.apple.DirectoryServices.plist
launchctl load /System/Library/LaunchDaemons/com.apple.configd.plist
Now you should be able to at least run diskutil. You can run the following to check your specific drive
diskutil /dev/disk0sd2
You can enumerate your drives with
ls /dev/disk *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment