linux poison RSS
linux poison Email

How to Create ISO-9660 CD-ROM filesystem images - genisoimage

genisoimage is a pre-mastering program to generate ISO9660/Joliet/HFS hybrid filesystems. genisoimage takes a snapshot of a given directory tree, and generates a binary image which will correspond to an ISO9660 and/or HFS filesystem when written to a block device.

Install genisoimage using command:
sudo apt-get install genisoimage

Creating an ISO image using genisoimage:
To create a vanilla ISO9660 filesystem image of directory:
genisoimage -o cd.iso cd_dir
Another genisoimage example:
genisoimage -r -J -o cd_image.iso /directory
The -r and -J ensures long file names work for Unix (using Rock Ridge) and Windows (using Joliet extensions) respectively.

If genisoimage is creating a filesystem image with Rock Ridge attributes and the directory nesting level of the source directory tree is too much for ISO9660, genisoimage will do deep directory relocation. This results in a directory called RR_MOVED in the root directory of the CD. You cannot avoid this directory.


Post a Comment

Related Posts with Thumbnails