3 Ways to Create an ISO image file from a Directory in Linux:
*NOTES:
- Where output.iso is the iso image file name you want to name your iso to be, and input_directory/ your folder to create the iso from.
- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.
1.) Creating an ISO image file from a Directory in Linux with Genisoimage:
Navigate in your CLI to the desired path where your directory you want to create an image file out of is:
$ genisoimage -r -J -o output.iso input_directory/
- You need to have genisoimage installed.
2.) Creating an ISO image file from a Directory in Linux with Mkisofs:
$ mkisofs -J -o output.iso input_directory/
- You need to have mkisofs installed.
3.) Creating an ISO image file from a directory in Linux with dd/diskdump:
$ dd if=/path-to-dir/ of=path-to-output/file.iso
* Though, I do prefer using genisoimage for this task.