Sunday, March 5, 2017

How to create ISO image from command line Ubuntu


On ubuntu, you can create ISO image from the command line using program called 'genisoimage', with this program you can create .iso image from directory, everything on that directory will be stored inside the ISO image.

I'm not sure if 'genisoimage' is comes pre-installed on ubuntu, if it doesn't exist on your ubuntu, you can install 'genisoimage' with this command:
sudo apt-get install genisoimage
How to create ISO image with 'genisoimage'
Let's say you have a directory called 'data', to create ISO image based on that directory, you can do this:
genisoimage -o [output-iso] [directory-name]
Example:
genisoimage -o mydata.iso data/
genisoimage -o my_first_image.iso ~/data/
After the ISO image is created, you can burn it to CD or DVD and do whatever you like.

No comments:

Post a Comment