Created
March 10, 2018 21:31
-
-
Save Lauszus/098801cdd7f20a89f12ba3bd9e8ab097 to your computer and use it in GitHub Desktop.
Automount bootcamp as needed for VirtualBox
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
#!/bin/bash -e | |
diskutil list | |
read -p $'This script will unmount "/Volumes/BOOTCAMP" and set the permission for the EFI (/dev/disk0s1) and BOOTCAMP (/dev/disk0s3) permissions to executable\nPress enter to continue' | |
diskutil unmount /Volumes/BOOTCAMP | |
sudo chmod 777 /dev/disk0s1 | |
sudo chmod 777 /dev/disk0s3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment