Last active
August 29, 2015 14:02
-
-
Save WickyNilliams/f7d66c07e5e87c040e53 to your computer and use it in GitHub Desktop.
bootable ISO
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
# Convert the .iso file to .img using the convert option of hdiutil | |
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/target.iso | |
# clean up extension | |
mv ~/path/to/target.img.dmg ~/path/to/target.img | |
# Get the current list of devices. | |
diskutil list | |
# Insert your flash media. | |
# Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2). | |
# Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2). | |
diskutil unmountDisk /dev/diskN | |
sudo dd if=/path/to/target.img of=/dev/rdiskN bs=1m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment