Last active
April 5, 2016 02:07
-
-
Save gardner/bddd1d1bfd82d3197229 to your computer and use it in GitHub Desktop.
Turn VirtualBox disk into a bootable usb
This file contains hidden or 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
cd ~/.vagrant.d/boxes/eda-VAGRANTSLASH-phase-zero/1.0.0/virtualbox | |
VBoxManage clonehd box-disk1.vmdk eda.img --format RAW | |
diskutil list | |
# USB_BLOCK_DEVICE=/dev/rdisk2 | |
diskutil unmountDisk $USB_BLOCK_DEVICE | |
sudo dd if=eda.img of=$USB_BLOCK_DEVICE bs=16m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If
diskutil list
shows your usb disk as/dev/disk2
then you want to dodiskutil unmountDisk /dev/disk2
but when you do the dd command it will be faster to use the raw disk device. This can be done by writing to/dev/rdisk2
instead of/dev/disk2
. Please note ther
in the raw disk device.