Creating ISO Images from Files/directories
For this tutorial we ' ll use the
GenisoimageUtility, developed as part of the Cdrkitproject.
Genisoimageis a command-line tool for creating ISO 9660 filesystem images, which can be burnt after to a CD or DVD using
WodimOr some other burning tool. To install it open a terminal and type the following as root:
Apt-get Install Genisoimage
Now, let's use the simplest syntax to create an ISO image out of a directory and its contents:
Genisoimage-o Output_image.iso Directory_name
The image, called
Output_image.iso, would has the
Directory_nameAs the root folder. In order to create an image out of several files and folders and without a root directory with this command:
Genisoimage-o output_image.iso file1 file2 file3
This command would create an image which would contain the files file1, file2 and File3 and would have no root directory.
Another useful switch to Genisoimage is
- R, which uses the Rock Ridge protocol to preserve ownership and permission records, enable longer filenames and support sym Bolic links and device files:
Genisoimage-r-o output_image.iso file1 file2 file3
Creating ISO Images from cds/dvdsfor This we'll use the
DDTool, used to create or copy files formatting them using the specified filesystem. First, unmount the device if it is already mounted:
# Umount/dev/cdrom
Your device May has a different name (e.g.
/DEV/CDRW,
/dev/scd0Or such, so replace accordingly). The command to create a image is the following:
$ dd If=/dev/cdrom Of=~/cd_image.iso
Where
ifand
ofMean input file and output file, respectively and
~Is your home directory.
Additionally, you can create a image from a audio CD with the following command:
cat/dev/scd0 > ~/audio_image.iso
Copy Link:
http://www.tuxarena.com/static/tut_iso_cli.php
How-to:create ISO Images from command-line