How-To: Create ISO Images from Command-Line

Creating ISO Images from Files/Directories

For this tutorial we‘ll use the genisoimage utility, developed as part of the cdrkitproject. genisoimage is a command-line tool for creating ISO 9660 filesystem images, which can be burnt after to a CD or DVD using wodim or 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, will have the directory_name as the root folder. In order to create an image out of several files and folders and without a root directory, use this command:

genisoimage -o output_image.iso file1 file2 file3

This command will create an image which will contain the files file1, file2 and file3 and will 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 symbolic links and device files:

genisoimage -R -o output_image.iso file1 file2 file3

Creating ISO Images from CDs/DVDs

For this we will use the dd tool, 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 have a different name (e.g. /dev/cdrw/dev/scd0 or such, so replace accordingly). The command to create an image is the following:

$ dd if=/dev/cdrom of=~/cd_image.iso

Where if and of mean input file and output file, respectively and ~ is your home directory.

Additionally, you can create an image from an audio CD with the following command:

cat /dev/scd0 > ~/audio_image.iso

copy link:http://www.tuxarena.com/static/tut_iso_cli.php
时间: 2024-08-01 10:42:22

How-To: Create ISO Images from Command-Line的相关文章

An A-Z Index of the Apple OS X command line

来源:http://ss64.com/osx/ An A-Z Index of the Apple OS X command line alias Create an alias • alloc List used and free memory apropos Search the whatis database for strings asr Apple Software Restore awk Find and Replace text within file(s) b basename

【转载】Data Science at the Command Line

Data Science at the Command Line Data Science at the Command Line is a new book written by Jeroen Janssens. This website contains information about the upcoming workshop in London, the webcast from August 20th, instructions on how to install the Data

Command Line Skills

Part 1: Command Line Interface(CLI) The Command Line Interface (CLI), is a text-based interface to the computer, where the user types in a command and the computer then executes it. The CLI environment is provided by an application on the computer kn

Command Line Android Application Debugging

http://codeseekah.com/2012/02/16/command-line-android-development-debugging/ I personally have a distaste towards IDEs, preferring lightweight solutions, with maybe less convenience. I addition to saving resources and having direct control over what

Chrome-Console( Command Line API Reference)

来源于:https://developers.google.com/web/tools/chrome-devtools/console/command-line-reference The Command Line API contains a collection of convenience functions for performing common tasks: selecting and inspecting DOM elements, displaying data in read

Building QT projects from the command line

/************************************************************************ * Building QT projects from the command line * 说明: * 很多时候都是通过Qtcreator进行项目的创建以及编译,但是有时候可能 * 会遇到一些编译小问题,这时候命令行创建工程.编译工程可以作为测试.验证 * 的一种手段. * * 2016-3-2 深圳 南山平山村 曾剑锋 *************

(二)NS3如何编译、运行脚本和 Command Line命令行参数设置

二.编译.运行脚本和Command Line命令行参数设置 7. 编译和运行脚本主要步骤 1) 将编写的脚本复制到ns-3.22/scratch目录下(可以在ubuntu窗口界面直接复制) 进入ns3目录: /ns-3.22 $ cp examples/tutorial/first.cc  scratch/myfirst.cc将脚本复制到scratch目录下 2) 构建(编译) $ ./waf 3) 运行 $ ./waf --run scratch/myfirst (可能会有运行权限问题,可在r

MySql command line client 命令系列

—————————————————————————————————————————————————————————— 一.启动与退出 1.进入MySQL:启动MySQL Command Line Client(MySQL的DOS界面),直接输入安装时的密码即可.此时的提示符是:mysql> 2.退出MySQL:quit 或 exit 二.库操作 1.创建数据库 命令:create database 例如:建立一个名为xhkdb的数据库 mysql> create database xhkdb;

Building Xcode iOS projects and creating *.ipa file from the command line

For our development process of iOS applications, we are using Jenkins set up on the Mac Mini Server, acting as a Continuous Integration (CI) server. It’s fairly easy to configure Jenkins for Xcode projects using Xcode Plugin - however, from time to t

在WSL中安装swool报错 error: unrecognized command line option '-V' 的解决方法

Windows Subsystem for Linux Ubuntu中使用pecl安装swool时遇到错误"error: C compiler cannot create executables"."error: unrecognized command line option '-V'" 解决方法 先看解决方法, 将gcc版本降低到4.8即可,因为高版本gcc取消了-V参数: sudo apt install gcc-4.8 -y sudo update-alte