Last active
April 5, 2023 12:31
-
-
Save toxuin/b6047b0f3269106fb95d to your computer and use it in GitHub Desktop.
Use mac diskutil in single-user mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/sbin/fsck -fy | |
mount -uw / | |
launchctl load /System/Library/LaunchDaemons/com.apple.notifyd.plist | |
launchctl load /System/Library/LaunchDaemons/com.apple.configd.plist | |
launchctl load /System/Library/LaunchDaemons/com.apple.diskmanagementd.plist | |
launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist | |
launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist | |
diskutil rename Macintosh_HD Macintosh\ HD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
after line 10:
+diskutil rename Macintosh_HD Macintosh\ HD
"Could not find disk for Macintosh_HD"
Any clue on how to fix this?