venerdì 31 marzo 2023

How to create an ISO image from a folder on MAC

Issue


How to create an ISO image from a folder on MAC ??

Solution


Lately I have the need to create ISO images to attach as CDROM to the VMs.
I put all stuff I need inside the folder and then I create the ISO image. To do that on MAC is quite easy, you don't need any added software to install. We can use the command "hdiutil".

Open a terminal and type :
hdiutil makehybrid -o image.iso ./folder -iso -joliet 
Replace the 'image.iso' with the name of the iso that you want to create and './folder' with the directory you want to convert into an ISO image.
The folder path can be relative (as in my case) or absolute.

Hit enter.

That's it.