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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If
diskutil listshows your usb disk as/dev/disk2then you want to dodiskutil unmountDisk /dev/disk2but when you do the dd command it will be faster to use the raw disk device. This can be done by writing to/dev/rdisk2instead of/dev/disk2. Please note therin the raw disk device.