How-to:create ISO Images from command-line

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.