Skip to content

Instantly share code, notes, and snippets.

@Lauszus
Created March 10, 2018 21:31
Show Gist options
  • Save Lauszus/098801cdd7f20a89f12ba3bd9e8ab097 to your computer and use it in GitHub Desktop.
Save Lauszus/098801cdd7f20a89f12ba3bd9e8ab097 to your computer and use it in GitHub Desktop.
Automount bootcamp as needed for VirtualBox
#!/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