Skip to content

Instantly share code, notes, and snippets.

@vallettea
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save vallettea/1c7e214cbf0c5a5bbe68 to your computer and use it in GitHub Desktop.

Select an option

Save vallettea/1c7e214cbf0c5a5bbe68 to your computer and use it in GitHub Desktop.
How to have sd card in virtualbox under mac
# diskutil to check where is the sd card, here in /dev/disk1
diskutil unmountDisk disk1
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist [ruby-2.1.3p242]
sudo VBoxManage internalcommands createrawvmdk -filename ./sd-card.vmdk -rawdisk /dev/disk1
sudo chmod 777 /dev/disk1
sudo chmod 777 ./sd-card.vmdk
# in virtualbox setting of the vm, then storage, select satacontroller and add hard drive from existing file pointing to the vmdk
# make sure the order is inferior to the other dik or it will boot from it
sudo launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist [ruby-2.1.3p242]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment