Creating Bootable USB From ISO on Mac OSX

Insert USB Media and Format

Insert your USB flash drive and use disk utility to format it (press command space to open spotlight search and type Disk Utility). Select the flash drive, choose edit erase and format to MSDOS.

Convert ISO to IMG Format

Once you’ve downloaded your ISO to your machine you will want to open terminal and cd to the directory. Once you’ve done this you’ll want to run the following commands (substituting your path):

hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso
Once you’ve done this you’ll want to remove the .dmg extension by running the following (replacing the path with your path)
mv /path/to/target.img.dmg /path/to/target.img

DD the IMG to USB Stick

Next we’ll use the Unix dd command to block copy the img file to the USB. Pay attention to the size of your flash drive when doing these steps as you can cause yourself some headache if you aren’t careful.

diskutil list

Note the path to your drive and proceed to unmount it from the terminal (replacing # with the disk number for your USB stick):
diskutil unmountDisk /dev/disk#

Next we’ll use the dd command specifying the input file (if) which is your img file, and output file (of) which is the path to your USB flash drive, and specify block size (bs). Again where # is a placeholder for the disk number of your USB stick.
sudo dd if=/path/to/downloaded.img of=/dev/rdisk# bs=1m

Finally once this process completes we can eject the flash drive

diskutil eject /dev/disk#
That’s it, you’re ready to go.

 

Sample of Entire Process With Windows 10 ISO

Richards-MacBook-Pro:~ rstaats$ cd Downloads/
Richards-MacBook-Pro:Downloads rstaats$ hdiutil convert -format UDRW -o en_windows_10_multiple_editions_x64_dvd_6846432.img en_windows_10_multiple_editions_x64_dvd_6846432.iso
Reading J_CCSA_X64FRE_EN-US_DV5 (Apple_UDF : 0)…
....................................................................................................................................
Elapsed Time: 10.859s
Speed: 358.6Mbytes/sec
Savings: 0.0%
created: /Users/rstaats/Downloads/en_windows_10_multiple_editions_x64_dvd_6846432.img.dmg
Richards-MacBook-Pro:Downloads rstaats$ mv en_windows_10_multiple_editions_x64_dvd_6846432.img.dmg en_windows_10_multiple_editions_x64_dvd_6846432.img
Richards-MacBook-Pro:Downloads rstaats$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_CoreStorage APPLE SSD 250.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3

/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS APPLE SSD +249.7 GB disk1
Logical Volume on disk0s2
7900BFD5-9DC0-4D0B-83F8-F7E73E71B53E
Unlocked Encrypted

/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *16.0 GB disk2
1: DOS_FAT_32 U 16.0 GB disk2s1

Richards-MacBook-Pro:Downloads rstaats$ diskutil umountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
Richards-MacBook-Pro:Downloads rstaats$ sudo dd if=en_windows_10_multiple_editions_x64_dvd_6846432.img of=/dev/rdisk2 bs=1m
Password:
3894+1 records in
3894+1 records out
4083853312 bytes transferred in 432.072596 secs (9451776 bytes/sec)
Richards-MacBook-Pro:Downloads rstaats$ diskutil eject /dev/disk2
Disk /dev/disk2 ejected
Richards-MacBook-Pro:Downloads rstaats$

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × 1 =