Using mkisofs to create an ISO from a folder on OSX

Quick tip, if you’re wanting to make a CD-style ISO file from a folder.

We can use mkisofs via the command line, to get it you need to install the cdrtools package.

brew install cdrtools

It should be available on other distributions under the same name.

To generate the ISO:
mkisofs -V CDNAME -J -r -o /path/to/output.iso /path/to/folder