Create iso image from folder via terminal commands
Seems to be pretty straightforward to do with genisoimage
, in the package with the same name on Debian:
genisoimage -o output_image.iso directory_name
There are many options to cover different cases, so you should check the man page to see what fits your particular use case.
See also
- How-To: Create ISO Images from Command-Line
Making a CD from a folder can be performed with mkisofs
.
mkisofs -lJR -o output_image.iso directory_name
-l
: Allow full 31 character filenames.
-J
: Generate Joliet directory records in addition to regular iso9660 file names.
-R
: Generate System Use Sharing Protocol (SUSP) and Rock Ridge (RR) records using the Rock Ridge protocol
https://linux.die.net/man/8/mkisofs https://en.wikipedia.org/wiki/Rock_Ridge
Take this basic command of:
mkisofs -o output_image.iso directory_name
One step further, by adding a volume label to the iso, and compressing the iso-image with gzip
mkisofs -V volume_label -r folder_location | gzip > output-image-comressed.iso.gz