Pages

10.23.2017

ISO to USB script for Mac

Writing Linux ISOs to USB drives is always slightly annoying, especially on OSX.  Using OSX, you have to jump through hoops to convert the ISO into some weird format so that disk utility can transfer to the USB drive.  To simplify this 12 step process, I created a script to do the converting and writing process automatically.  All the user needs to do is type one command and the entire process is taken care of automatically. Usage of the script is simple too.  sudo ./convertiso.sh isofile.iso /dev/somedisk
Notice sudo is needed for this to work, as the script uses dd to write to a raw device.  Replace /dev/somedisk with the device path of the flash drive.  I've built in some basic protection, so in the event you make a typo, your hard drive won't be overwritten, but please check the device path before running.  I'm NOT responsible if you use this incorrectly and it breaks your machine. 

Download from my Github page.

No comments: