Created
December 13, 2017 09:45
-
-
Save xremix/d9550a5c83c5c2b20e9247e10e912d71 to your computer and use it in GitHub Desktop.
Tries to Remount Disk if disk not showing up on macOS
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
diskutil list | |
read -p "Which drive do you want to repair? " answer | |
echo $answer | |
diskutil unmount $answer | |
diskutil unmountDisk $answer | |
diskutil mountDisk $answer | |
diskutil mount $answer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment