2011-03-05 14:15:32 +00:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
|
|
|
.\"
|
|
|
|
.\" IMPORTANT NOTE:
|
|
|
|
.\"
|
|
|
|
.\" The original of this file is kept in xorriso/xorrisofs.texi
|
|
|
|
.\" This here was generated by program xorriso/make_xorriso_1
|
|
|
|
.\"
|
|
|
|
.\"
|
|
|
|
.\" First parameter, NAME, should be all caps
|
|
|
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
|
|
|
.\" other parameters are allowed: see man(7), man(1)
|
2024-06-17 16:11:56 +00:00
|
|
|
.TH XORRISOFS 1 "Version 1.5.7, Jun 17, 2024"
|
2011-03-05 14:15:32 +00:00
|
|
|
.\" Please adjust this date whenever revising the manpage.
|
|
|
|
.\"
|
|
|
|
.\" Some roff macros, for reference:
|
|
|
|
.\" .nh disable hyphenation
|
|
|
|
.\" .hy enable hyphenation
|
|
|
|
.\" .ad l left justify
|
|
|
|
.\" .ad b justify to both left and right margins
|
|
|
|
.\" .nf disable filling
|
|
|
|
.\" .fi enable filling
|
|
|
|
.\" .br insert line break
|
|
|
|
.\" .sp <n> insert n+1 empty lines
|
|
|
|
.\" for manpage-specific macros, see man(7)
|
|
|
|
.nh
|
|
|
|
.SH NAME
|
2011-05-13 17:49:28 +00:00
|
|
|
xorrisofs \- Emulation of ISO 9660 program mkisofs by program xorriso
|
2011-03-05 14:15:32 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B xorrisofs
|
|
|
|
[ options ] [-o filename ] pathspec [pathspecs ...]
|
|
|
|
.br
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
\fBxorrisofs\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
produces Rock Ridge enhanced ISO 9660 filesystems and add\-on sessions to
|
2011-03-05 14:15:32 +00:00
|
|
|
such filesystems. Optionally it can produce Joliet directory trees too.
|
2011-03-06 18:37:52 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
.PP
|
2011-05-17 09:42:51 +00:00
|
|
|
\fBxorrisofs\fR understands options of program mkisofs from cdrtools by
|
2011-03-05 14:15:32 +00:00
|
|
|
Joerg Schilling.
|
|
|
|
Its implementation is part of program xorriso which shares no source
|
|
|
|
code with cdrtools.
|
|
|
|
.SS
|
2012-06-06 18:48:26 +00:00
|
|
|
\fBISO 9660, Rock Ridge, Joliet, HFS+:\fR
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
\fBISO 9660\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
(aka \fBECMA\-119\fR) is a read\-only filesystem that is mainly used for
|
2011-03-06 18:37:52 +00:00
|
|
|
optical media CD, DVD, BD, but may also reside on other storage devices like
|
|
|
|
disk files, USB sticks or disk partitions. It is widely readable by many
|
|
|
|
operating systems and by boot facilities of personal computers.
|
|
|
|
.br
|
|
|
|
ISO 9660 describes directories and data files by
|
2011-03-05 14:15:32 +00:00
|
|
|
very restricted filenames with no distinction of upper case and lower case.
|
|
|
|
Its metadata do not comply to fundamental POSIX specifications.
|
|
|
|
.br
|
|
|
|
\fBRock Ridge\fR
|
|
|
|
is the name of a set of additional information which enhance
|
|
|
|
an ISO 9660 filesystem so that it can represent a POSIX compliant filesystem
|
|
|
|
with ownership, access permissions, symbolic links, and other attributes.
|
|
|
|
Rock Ridge allows filenames of up to 255 bytes and paths of up to
|
|
|
|
1024 bytes.
|
|
|
|
.br
|
2012-05-22 12:17:08 +00:00
|
|
|
xorrisofs produces Rock Ridge information by default. It is strongly
|
|
|
|
discouraged to disable this feature.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
\fBJoliet\fR
|
|
|
|
is the name of an additional directory tree which provides
|
2011-05-13 17:49:28 +00:00
|
|
|
filenames up to 64 characters encoded as UTF\-16.
|
2011-03-05 14:15:32 +00:00
|
|
|
A Joliet tree is mainly interesting for reading the ISO image by
|
|
|
|
operating systems of Microsoft Corporation.
|
2011-05-13 17:49:28 +00:00
|
|
|
Production of this directory tree may be enabled by option \-J.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
\fBISO 9660:1999\fR
|
|
|
|
is the name of an additional directory tree which provides longer
|
|
|
|
filenames. It allows single file names to have up to 207 characters.
|
|
|
|
It might be of use with some older computer system boot
|
|
|
|
facilities which read neither Rock Ridge nor Joliet but
|
|
|
|
need longer filenames nevertheless.
|
2011-05-13 17:49:28 +00:00
|
|
|
Production of this directory tree may be enabled by option \-iso\-level 4.
|
2012-06-06 18:48:26 +00:00
|
|
|
.br
|
|
|
|
\fBHFS+\fR
|
|
|
|
is the name of a filesystem which is normally used for writing and reading
|
|
|
|
on hard disks and similar devices. It is possible to embed a HFS+ partition
|
|
|
|
into the emerging ISO 9660 image and to mark it by Apple Partition Map
|
|
|
|
entries. This interferes with options which copy data into the first 32 KiB
|
|
|
|
of the ISO image, like \-G or \-isohybrid\-mbr. See option \-hfsplus.
|
|
|
|
.br
|
|
|
|
The main purpose for having an embedded HFS+ partition is booting of
|
|
|
|
certain models of Apple computers.
|
2011-03-05 14:15:32 +00:00
|
|
|
.SS
|
|
|
|
.B Inserting files into the ISO image:
|
|
|
|
.PP
|
2011-05-17 09:42:51 +00:00
|
|
|
\fBxorrisofs\fR deals with two kinds of file addresses:
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
\fBdisk_path\fR
|
|
|
|
is a path to an object in the local filesystem tree.
|
|
|
|
.br
|
|
|
|
\fBiso_rr_path\fR
|
2012-05-22 12:17:08 +00:00
|
|
|
is the Rock Ridge address of a file object in the ISO image.
|
|
|
|
If no Rock Ridge information shall be stored in an emerging ISO, then the
|
|
|
|
names will get mapped to ISO 9660 names of limited length and character set.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.PP
|
|
|
|
A program argument is handled as a \fBpathspec\fR, if it is not
|
2011-05-17 09:42:51 +00:00
|
|
|
recognized as original mkisofs option or additional \fBxorrisofs\fR option.
|
2011-03-05 14:15:32 +00:00
|
|
|
A pathspec depicts an input file object by a disk_path.
|
2011-05-13 17:49:28 +00:00
|
|
|
If option \-graft\-points is not present, then the behavior depends on the
|
|
|
|
file type of disk_path. Directories get merged with the /\-directory of the
|
|
|
|
ISO image. Files of other types get copied into the /\-directory.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
If \-graft\-points is present then each pathspec gets split at the first
|
2016-02-05 14:57:52 +00:00
|
|
|
occurrence of the =\-character.
|
2011-04-07 17:59:31 +00:00
|
|
|
The part before the = is taken as \fBtarget\fR, i.e. the iso_rr_path for
|
2011-03-05 14:15:32 +00:00
|
|
|
the file object in the ISO image. The part after the first = is taken
|
2011-04-07 17:59:31 +00:00
|
|
|
as \fBsource\fR, i.e. the disk_path of the input object.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
It is possible to make =\-characters part of the iso_rr_path by preceding
|
|
|
|
them with a \\\-character. The same must be done for \\\-characters which
|
2011-03-05 14:15:32 +00:00
|
|
|
shall be part of the iso_rr_path.
|
|
|
|
.br
|
|
|
|
.PP
|
|
|
|
If the source part of the pathspec leads to a directory, then all files
|
|
|
|
underneath this directory get inserted into the image, too.
|
|
|
|
It is possible to exclude particular files from being inserted
|
2011-05-13 17:49:28 +00:00
|
|
|
by help of option \-m.
|
2011-04-07 17:59:31 +00:00
|
|
|
.br
|
|
|
|
In case that target already exists, the following rules apply:
|
2011-05-13 17:49:28 +00:00
|
|
|
Directories and other files may overwrite existing non\-directories.
|
2011-04-07 17:59:31 +00:00
|
|
|
Directories get merged with existing directories.
|
2011-05-13 17:49:28 +00:00
|
|
|
Non\-directories may not overwrite existing directories.
|
2011-03-05 14:15:32 +00:00
|
|
|
.SS
|
2011-03-06 18:37:52 +00:00
|
|
|
\fBRelation to program xorriso:\fR
|
|
|
|
.br
|
2011-05-17 09:42:51 +00:00
|
|
|
\fBxorrisofs\fR is actually a command mode of program \fBxorriso\fR,
|
2011-05-13 17:49:28 +00:00
|
|
|
which gets entered either by xorriso command "\-as mkisofs" or by
|
2011-03-06 18:37:52 +00:00
|
|
|
starting the program by one of the names "xorrisofs", "mkisofs",
|
|
|
|
"genisoimage", or "genisofs".
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
This command mode can be left by argument "\-\-" which leads
|
2011-03-06 18:37:52 +00:00
|
|
|
to generic xorriso command mode. See \fBman xorriso\fR for its description.
|
|
|
|
.br
|
|
|
|
.PP
|
|
|
|
xorriso performs image reading and writing by help of libburn, which is
|
|
|
|
mainly intended for optical drives, but also operates on all POSIX
|
|
|
|
file types except directories.
|
|
|
|
.br
|
|
|
|
The program messages call any image file a "drive". File types which are not
|
|
|
|
supported for reading are reported as "blank". The reported free media
|
|
|
|
space may be quite fictional.
|
|
|
|
.br
|
2011-05-17 09:42:51 +00:00
|
|
|
Nevertheless \fBxorrisofs\fR does not operate directly on optical drives,
|
2011-03-06 18:37:52 +00:00
|
|
|
but rather forces libburn to regard them as general device files.
|
2011-05-13 17:49:28 +00:00
|
|
|
So for writing of sequential optical media (CD, DVD\-R, DVD+R, BD\-R)
|
2011-03-06 18:37:52 +00:00
|
|
|
one will have to use a burn program. E.g the cdrecord emulation of xorriso.
|
|
|
|
See EXAMPLES.
|
|
|
|
.SS
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.SH OPTIONS
|
|
|
|
.br
|
|
|
|
.PP
|
|
|
|
.TP
|
|
|
|
.B Image loading:
|
|
|
|
.PP
|
|
|
|
The following options control loading of an existing ISO image for the purpose
|
2011-05-13 17:49:28 +00:00
|
|
|
of preparing a suitable add\-on session.
|
2011-03-06 18:37:52 +00:00
|
|
|
If they are missing then a new image is composed from scratch.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-M\fR disk_path
|
|
|
|
Set the path from which to load the existing ISO image directory tree
|
2019-10-28 14:34:56 +00:00
|
|
|
on which to base the upcoming directory tree as add\-on session.
|
2011-05-13 17:49:28 +00:00
|
|
|
The path must lead to a random\-access readable file object.
|
2011-03-05 14:15:32 +00:00
|
|
|
On GNU/Linux: regular data files or block device files.
|
2011-03-06 18:37:52 +00:00
|
|
|
.br
|
|
|
|
A special kind of pseudo disk_path has the form "/dev/fd/"number.
|
|
|
|
It depicts the open file descriptor with the given number, regardless whether
|
|
|
|
the operating system supports this feature by file nodes in /dev/fd or not.
|
|
|
|
E.g. /dev/fd/3 is file descriptor 3 which was opened by the program that
|
|
|
|
later started xorriso.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-prev-session\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-M.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-dev\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-M.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-C\fR last_session_start,next_writeable_address
|
|
|
|
Set the 2 KiB block address last_session_start from where to read the
|
2011-05-13 17:49:28 +00:00
|
|
|
ISO image out of the file given by option \-M.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Separated by a comma, set the next_writeable_address to which the
|
2011-05-13 17:49:28 +00:00
|
|
|
add\-on session will finally be written. Decisive is actually the block
|
2011-03-05 14:15:32 +00:00
|
|
|
address which the intended readers will have to use as superblock address
|
2011-10-26 14:09:51 +00:00
|
|
|
on the intended medium.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Both values can be inquired from optical media by help of burn programs
|
2011-05-13 17:49:28 +00:00
|
|
|
and cdrecord option \-msinfo. xorriso itself can obtain it in its
|
2018-11-11 13:43:43 +00:00
|
|
|
cdrecord emulation.
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
values=$(xorriso \-as cdrecord dev=/dev/... \-msinfo)
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
|
|
|
echo $values
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Option \-C may be used without option \-M to create an ISO image from
|
2011-03-05 14:15:32 +00:00
|
|
|
scratch and prepare it for being finally written to a block address
|
2011-03-09 12:48:21 +00:00
|
|
|
other than 0. Parameter last_session_start must then be set to 0.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-cdrecord-params\fR last_session_start,next_writeable_address
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-C.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
.B Settings for file insertion:
|
|
|
|
.TP
|
|
|
|
\fB\-path-list\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Read pathspecs line\-by\-line from disk_file and insert the depicted file
|
|
|
|
objects into the ISO image. If disk_path is "\-" then read the pathspecs
|
2011-03-05 14:15:32 +00:00
|
|
|
from standard input.
|
|
|
|
.TP
|
|
|
|
\fB--quoted_path_list\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Like option \-path\-list but reading quoted words rather than plain lines.
|
2011-03-05 14:15:32 +00:00
|
|
|
Whitespace outside of quotes will be discarded. On the other hand it is
|
|
|
|
possible to represent pathspecs which contain newline characters.
|
|
|
|
.br
|
|
|
|
The double quotation mark " and the single quotation mark ' can be used to
|
|
|
|
enclose whitespace and make it part of pathspecs. Each mark
|
|
|
|
type can enclose the marks of the other type. A trailing backslash \\ outside
|
|
|
|
quotations or an open quotation cause the next input line to be appended.
|
|
|
|
.TP
|
2023-11-20 10:50:38 +00:00
|
|
|
\fB\-cut_out\fR disk_path byte_offset byte_count iso_rr_path
|
|
|
|
Map a byte interval of a regular disk file or of a device file into a regular
|
|
|
|
file in the ISO image. The file depicted by disk_path has to support random
|
|
|
|
read access.
|
|
|
|
.br
|
|
|
|
byte_offset and byte_count may be plain numbers counting bytes, or numbers
|
|
|
|
with appended letter "d", "s", "k", "m", "g" to count disk blocks (512 bytes),
|
|
|
|
disc sectors (2048 bytes), KiB (1024 bytes), MiB (1024 KiB), or GiB (1024 MiB).
|
|
|
|
.br
|
|
|
|
E.g:
|
|
|
|
.br
|
|
|
|
\-cut_out bootable.iso 562s 18s /formerly_hidden_boot_image
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-f\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Resolve symbolic links on disk rather than storing them as symbolic
|
|
|
|
links in the ISO image.
|
|
|
|
.TP
|
|
|
|
\fB\-follow-links\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-f.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-graft-points\fR
|
|
|
|
Enable interpretation of input file pathspecs as combination of iso_rr_path
|
2011-05-13 17:49:28 +00:00
|
|
|
and disk_path, separated by a =\-character.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-m\fR disk_pattern
|
|
|
|
Exclude files from being inserted into the image. Silently ignored are
|
|
|
|
those files of which the disk_path matches the given shell parser pattern.
|
2011-05-13 17:49:28 +00:00
|
|
|
If no /\-character is part of the pattern, then it gets matched against
|
2011-03-05 14:15:32 +00:00
|
|
|
the leaf name of the disk file.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
It is possible to give more than one \-m option.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-exclude\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-m.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-x\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-m.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-old-exclude\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-m.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-exclude-list\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Perform \-m using each line out of file disk_path as argument disk_pattern.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-z\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Enable recognition and proper processing of zisofs compressed files
|
|
|
|
as produced by program mkzftree. These files will get equipped with the
|
|
|
|
necessary meta data so that a Linux kernel will recognize them and
|
|
|
|
deliver their content in uncompressed form.
|
|
|
|
.TP
|
|
|
|
\fB\-transparent-compression\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-z.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2020-10-14 21:02:59 +00:00
|
|
|
\fB\--zisofs-version-2\fR
|
|
|
|
.br
|
|
|
|
Enable the recognition and proper processing of experimental zisofs version 2
|
2020-10-29 19:14:29 +00:00
|
|
|
compressed files.
|
|
|
|
The Linux kernel (as of 5.9) does not yet know this format and will complain
|
|
|
|
like
|
2020-10-14 21:02:59 +00:00
|
|
|
.br
|
|
|
|
isofs: Unknown ZF compression algorithm: PZ
|
|
|
|
.br
|
2020-10-29 19:14:29 +00:00
|
|
|
This complaint can be prevented by option \-\-zisofs2\-susp\-z2 .
|
|
|
|
.br
|
|
|
|
The files will be shown by unaware kernels as they were submitted to xorriso,
|
|
|
|
i.e. with zisofs2 header, block pointer list, and compressed data.
|
2020-10-16 09:18:18 +00:00
|
|
|
.br
|
|
|
|
\-\-zisofs\-version\-2 also enables \-z.
|
2020-10-14 21:02:59 +00:00
|
|
|
.TP
|
2020-10-29 19:14:29 +00:00
|
|
|
\fB\--zisofs2-susp-z2\fR
|
2020-10-29 08:34:02 +00:00
|
|
|
Enable the production of SUSP entries "Z2" instead of "ZF" with zisofs2
|
2020-10-29 19:14:29 +00:00
|
|
|
compressed files. Unaware Linux kernels silently ignore "Z2" entries.
|
|
|
|
.TP
|
|
|
|
\fB\--zisofs2-susp-zf\fR
|
|
|
|
Enable the production of SUSP entries "ZF" instead of "Z2" with zisofs2
|
|
|
|
compressed files. Unaware Linux kernels complain about zisofs2 "ZF" by
|
|
|
|
"Unknown ZF compression algorithm" and thus leave a mark in the system log.
|
2020-10-29 08:34:02 +00:00
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-root\fR iso_rr_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Insert all files under the given iso_rr_path. If option \-graft\-points is given,
|
2011-03-05 14:15:32 +00:00
|
|
|
then iso_rr_path is prepended to each target part of a pathspec.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
The default for \-root is "/".
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-old-root\fR iso_rr_path
|
|
|
|
Enable incremental insertion of files into the loaded image.
|
|
|
|
The effective target and source addresses of given pathspecs get compared
|
|
|
|
whether the target already exists in the ISO image and is still identical
|
2011-06-17 14:39:24 +00:00
|
|
|
to the source on disk. Metadata in the ISO image will get adjusted, if they
|
|
|
|
differ from those on disk.
|
2011-03-05 14:15:32 +00:00
|
|
|
New files and files with changed content will get newly added.
|
|
|
|
Target files which do not exist in any of the according pathspec sources
|
|
|
|
will get removed from the ISO directory tree.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
If the effective setting of \-root differs from the iso_rr_path given
|
|
|
|
with \-old\-root, then the files underneath the \-old\-root directory get cloned
|
|
|
|
underneath the \-root directory. Cloning happens before file comparison.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--old-root-no-ino\fR
|
|
|
|
Disable recording and use of disk inode numbers.
|
2011-05-13 17:49:28 +00:00
|
|
|
If no disk inode numbers are recorded, then option \-old\-root will have
|
2011-03-05 14:15:32 +00:00
|
|
|
to read disk file content and compare it with the MD5 checksum that is
|
|
|
|
recorded in the ISO image.
|
|
|
|
.br
|
|
|
|
With recorded disk inode numbers and with credible ctime and mtime,
|
|
|
|
it is possible to detect potential changes in the content without actually
|
|
|
|
reading it.
|
|
|
|
A loophole remains if multiple different filesystems may get mounted
|
|
|
|
at the same directory, like it is habit with /mnt.
|
2011-05-13 17:49:28 +00:00
|
|
|
In this case one has to use option \-\-old\-root\-devno
|
|
|
|
or disable the inode number shortcut by \-\-old\-root\-no\-ino.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--old-root-devno\fR
|
|
|
|
Enable comparison of recorded device numbers together with recorded
|
|
|
|
inode numbers. This works only with good old stable device numbers which
|
|
|
|
get out of fashion, regrettably. If the hard disk has a different
|
|
|
|
device number after each reboot, then this comparison will see all
|
|
|
|
files as changed and thus prevent any incremental size saving.
|
|
|
|
.TP
|
|
|
|
\fB--old-root-no-md5\fR
|
2011-06-17 14:39:24 +00:00
|
|
|
Disable recording and use of MD5 checksums for data file content.
|
2011-03-05 14:15:32 +00:00
|
|
|
If neither checksums and nor disk inode numbers are recorded, then
|
2011-05-13 17:49:28 +00:00
|
|
|
option \-old\-root will have to read ISO image file content when comparing
|
2011-03-05 14:15:32 +00:00
|
|
|
it with disk file content.
|
|
|
|
.TP
|
|
|
|
.B Settings for image production:
|
|
|
|
.TP
|
|
|
|
\fB\-o\fR disk_path
|
|
|
|
Set the output file address for the emerging ISO image.
|
|
|
|
If the address exists as regular file, it will be truncated to length 0
|
|
|
|
when image production begins. It may not already exist as directory.
|
|
|
|
If it does not exist yet then its parent directory must exist and
|
|
|
|
a regular file will get created.
|
|
|
|
.br
|
2011-03-06 18:37:52 +00:00
|
|
|
A special kind of pseudo disk_path has the form "/dev/fd/"number.
|
|
|
|
It depicts the open file descriptor with the given number, regardless whether
|
|
|
|
the operating system supports this feature by file nodes in /dev/fd or not.
|
|
|
|
E.g. /dev/fd/4 is file descriptor 4 which was opened by the program that
|
|
|
|
later started xorriso.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Default is standard output (/dev/fd/1) which may also be set by disk_path "\-".
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-output\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-o.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2014-04-08 09:18:14 +00:00
|
|
|
\fB--stdio_sync\fR "on"|"off"|"end"|number
|
2011-03-05 14:15:32 +00:00
|
|
|
Set the number of bytes after which to force output to disk
|
|
|
|
in order to keep the memory from being clogged with lots of
|
2014-04-08 09:18:14 +00:00
|
|
|
pending data for slow devices. "on" is the same as "16m".
|
|
|
|
Forced output can be disabled by "off", or be delayed by "end" until all
|
|
|
|
data are produced. If a number is chosen, then it must be at least 64k.
|
|
|
|
.br
|
|
|
|
The default with xorriso mkisofs emulation is \-\-stdio_sync "off".
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
xorriso uses an inner fifo buffer with default size 4 MiB. So forcing
|
|
|
|
the operating system i/o cache to disk does not necessarily block the
|
|
|
|
simultaneous production of more image content.
|
|
|
|
.TP
|
|
|
|
\fB--emul-toc\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Write a second superblock with the first session into random\-access
|
2011-03-05 14:15:32 +00:00
|
|
|
files. If further sessions get appended and the first superblock gets updated,
|
2015-09-20 12:51:53 +00:00
|
|
|
then the second superblock will not be overwritten. So it is still possible to
|
2011-03-05 14:15:32 +00:00
|
|
|
mount the first session and to find the start blocks of the further sessions.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
The price is 64 KiB extra space consumption. If \-partition_offset is non\-zero,
|
2024-06-17 16:11:56 +00:00
|
|
|
then it is 128 KiB plus twice the partition offset.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--no-emul-toc\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Do not write a second superblock with the first session into random\-access
|
2011-03-05 14:15:32 +00:00
|
|
|
files.
|
|
|
|
.br
|
|
|
|
This is the default.
|
|
|
|
.TP
|
|
|
|
\fB--sort-weight\fR weight_number iso_rr_path
|
|
|
|
Attribute a LBA weight number to regular files. If iso_rr_path leads
|
|
|
|
to a directory then all regular files underneath will get the weight_number.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
The weight_number may range from \-2147483648 to 2147483647.
|
2011-03-05 14:15:32 +00:00
|
|
|
The higher it is, the lower will be the block address of the file data
|
|
|
|
in the emerging ISO image.
|
|
|
|
Currently the El Torito boot catalog has a hardcoded weight of 1 billion.
|
|
|
|
Normally it should occupy the block with the lowest possible address.
|
2013-09-07 20:12:08 +00:00
|
|
|
Data files get added or loaded with initial weight 0. Boot image files
|
|
|
|
have a default weight of 2.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2013-05-28 17:58:01 +00:00
|
|
|
\fB--sort-weight-list\fR disk_path
|
|
|
|
Read pairs of weight number and iso_rr_path from a file of the
|
|
|
|
local filesystem. Apply each pair like with \-\-sort\-weight.
|
|
|
|
.br
|
|
|
|
Only the last \-\-sort\-weight\-list or
|
|
|
|
\-\-sort\-weight\-patterns of a xorrisofs run gets into effect.
|
|
|
|
.br
|
|
|
|
The weight number is read from the start of the line.
|
|
|
|
The iso_rr_path part of an input line begins immediately after the first blank
|
|
|
|
or tab character of the line.
|
|
|
|
.br
|
|
|
|
Notes for the case that this feature is used within a sequence of generic
|
|
|
|
xorriso commands (not an issue with a pure mkisofs emulation run):
|
|
|
|
.br
|
|
|
|
The addressed files must already be in the ISO image model when you execute
|
|
|
|
.br
|
|
|
|
\-as mkisofs \-\-sort\-weight\-list disk_path \-\-
|
|
|
|
.br
|
|
|
|
Several such commands may be used to apply more than one weight file.
|
|
|
|
.br
|
|
|
|
Data files which are loaded by \-indev or \-dev get a weight between 1 and
|
|
|
|
2 exp 28 = 268,435,456, depending on their block address. This shall keep
|
|
|
|
them roughly in the same order if the write method of modifying is applied.
|
|
|
|
.TP
|
|
|
|
\fB--sort-weight-patterns\fR disk_path
|
|
|
|
Like \-\-sort\-weight\-list , but expanding the iso_rr_paths as
|
|
|
|
shell parser patterns and applying \-\-sort\-weight to each
|
|
|
|
matching file.
|
|
|
|
.TP
|
2017-11-17 14:31:43 +00:00
|
|
|
\fB\-uid\fR number|name
|
|
|
|
Use the given number or locally existing user name as owner id of all files
|
|
|
|
and directories in the emerging filesystem.
|
|
|
|
Empty name or name "\-" revoke this feature.
|
|
|
|
.TP
|
|
|
|
\fB\-gid\fR number|name
|
|
|
|
Use the given number or locally existing group name as group id of all files
|
|
|
|
and directories in the emerging filesystem.
|
|
|
|
Empty name or name "\-" revoke this feature.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-dir-mode\fR mode
|
|
|
|
Set the access permissions for all directories in the image to the given
|
|
|
|
mode which is either an octal number beginning with "0" or a comma separated
|
2011-05-13 17:49:28 +00:00
|
|
|
list of statements of the form [ugoa]*[+\-=][rwxst]* . E.g. ug=rx,a\-rwx
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-file-mode\fR mode
|
2011-05-13 17:49:28 +00:00
|
|
|
Like \-dir\-mode but for all regular data files in the image.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-pad\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Add 300 KiB to the end of the produced ISO image. This circumvents possible
|
|
|
|
read errors from ISO images which have been written to CD media in TAO mode.
|
2011-05-13 17:49:28 +00:00
|
|
|
The additional bytes are claimed as part of the ISO image if not \-\-emul\-toc
|
2011-03-05 14:15:32 +00:00
|
|
|
is given.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Option \-pad is the default.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-no-pad\fR
|
|
|
|
Disable padding of 300 KiB to the end of the produced ISO image.
|
|
|
|
This is safe if the image is not meant to be written on CD or if it
|
|
|
|
gets written to CD as only track in write mode SAO.
|
|
|
|
.TP
|
|
|
|
\fB--old-empty\fR
|
|
|
|
Use the old way of of giving block addresses in the range
|
|
|
|
of [0,31] to files with no own data content. The new way is to have
|
|
|
|
a dedicated block to which all such files will point.
|
|
|
|
.TP
|
|
|
|
.B Settings for standards compliance:
|
|
|
|
.TP
|
|
|
|
\fB\-iso-level\fR number
|
|
|
|
Specify the ISO 9660 version which defines the limitations of file naming
|
|
|
|
and data file size. The naming restrictions do not apply to the
|
2011-05-13 17:49:28 +00:00
|
|
|
Rock Ridge names but only to the low\-level ISO 9660 names.
|
2011-03-05 14:15:32 +00:00
|
|
|
There are three conformance levels:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Level 1 allows ISO names of the form 8.3 and file size up to 4 GiB \- 1.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Level 2 allows ISO names with up to 32 characters
|
2011-05-13 17:49:28 +00:00
|
|
|
and file size up to 4 GiB \- 1.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Level 3 allows ISO names with up to 32 characters
|
2011-05-13 17:49:28 +00:00
|
|
|
and file size of up to 400 GiB \- 200 KiB. (This size limitation is
|
2011-03-05 14:15:32 +00:00
|
|
|
set by the xorriso implementation and not by ISO 9660 which would
|
|
|
|
allow nearly 8 TiB.)
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Pseudo\-level 4 enables production of an additional ISO 9660:1999
|
2011-03-05 14:15:32 +00:00
|
|
|
directory tree.
|
|
|
|
.TP
|
|
|
|
\fB\-disallow_dir_id_ext\fR
|
|
|
|
Do not follow a bad habit of mkisofs which allows dots in the ISO names
|
|
|
|
of directories. On the other hand, some bootable GNU/Linux images depend on
|
|
|
|
this bad habit.
|
|
|
|
.TP
|
|
|
|
\fB\-U\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
This option allows ISO file names without dot and up to 37 characters,
|
|
|
|
ISO file paths longer than 255 characters, and all ASCII characters in file
|
|
|
|
names. Further it omits the semicolon and the version numbers at the end
|
|
|
|
of ISO names.
|
|
|
|
.br
|
|
|
|
This all violates ISO 9660 specs.
|
|
|
|
.TP
|
|
|
|
\fB\-untranslated-filenames\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-U.
|
2011-07-30 08:11:56 +00:00
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-untranslated_name_len\fR number
|
|
|
|
Allow ISO file names up to the given number of characters
|
|
|
|
without any character conversion. The maximum number is 96.
|
|
|
|
If a file name has more characters, then image production will
|
|
|
|
fail deliberately.
|
|
|
|
.br
|
|
|
|
This violates ISO 9660 specs.
|
|
|
|
.TP
|
|
|
|
\fB\-allow-lowercase\fR
|
|
|
|
Allow lowercase character in ISO file names.
|
|
|
|
.br
|
|
|
|
This violates ISO 9660 specs.
|
|
|
|
.TP
|
2012-03-22 10:33:24 +00:00
|
|
|
\fB\-relaxed-filenames\fR
|
|
|
|
Allow nearly all 7\-bit characters in ISO file names.
|
|
|
|
Not allowed are 0x0 and '/'. If not option \-allow\-lowercase is given,
|
|
|
|
then lowercase letters get converted to uppercase.
|
|
|
|
.br
|
|
|
|
This violates ISO 9660 specs.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-d\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Do not add trailing dot to ISO file names without dot.
|
|
|
|
.br
|
|
|
|
This violates ISO 9660 specs.
|
|
|
|
.TP
|
|
|
|
\fB\-omit-period\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-d.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-l\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2012-03-14 19:51:36 +00:00
|
|
|
Allow up to 31 characters in ISO file names.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-full-iso9660-filenames\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-l.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-max-iso9660-filenames\fR
|
2012-03-14 19:51:36 +00:00
|
|
|
Allow up to 37 characters in ISO file names.
|
|
|
|
.br
|
|
|
|
This violates ISO 9660 specs.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-N\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Omit the semicolon and the version numbers at the end of ISO names.
|
|
|
|
.br
|
|
|
|
This violates ISO 9660 specs.
|
|
|
|
.TP
|
|
|
|
\fB\-omit-version-number\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-N.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
.B Settings for standards extensions:
|
|
|
|
.TP
|
|
|
|
\fB\-R\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-05-17 09:42:51 +00:00
|
|
|
With mkisofs this option enables Rock Ridge extensions. \fBxorrisofs\fR
|
2012-05-22 12:17:08 +00:00
|
|
|
produces them by default. It is strongly discouraged to disable them
|
|
|
|
by option \-\-norock.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-rock\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-R.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-r\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2016-04-27 09:29:51 +00:00
|
|
|
Enable Rock Ridge and set user and group id of all files in the ISO image to 0.
|
2011-05-13 17:49:28 +00:00
|
|
|
Grant r\-permissions to all. Deny all w\-permissions.
|
|
|
|
If any x\-permission is set, grant x\-permission to all.
|
|
|
|
Remove s\-bit and t\-bit.
|
2016-04-27 09:29:51 +00:00
|
|
|
.br
|
|
|
|
These attribute changes stay delayed until mkisofs emulation ends. Within the
|
|
|
|
same \-as mkisofs emulation command they can be revoked by a subsequent
|
|
|
|
option \-\-norock. For compatibility reasons, option \-R does not
|
|
|
|
revoke the changes ordered by \-r.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-rational-rock\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-r.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2012-05-22 12:17:08 +00:00
|
|
|
\fB--norock\fR
|
|
|
|
.br
|
|
|
|
This option disables the production of Rock Ridge extensions for the
|
|
|
|
ISO 9660 file objects. The multi\-session capabilities of \fBxorrisofs\fR
|
|
|
|
depend much on the naming fidelity of Rock Ridge. So it is strongly
|
2016-04-27 09:29:51 +00:00
|
|
|
discouraged to disable it by this option, except for the special use case
|
2016-07-02 14:46:07 +00:00
|
|
|
to revoke the effect of \-r by:
|
2016-04-27 09:29:51 +00:00
|
|
|
\-\-norock \-R
|
2012-05-22 12:17:08 +00:00
|
|
|
.TP
|
2016-08-06 13:23:00 +00:00
|
|
|
\fB--set_all_file_dates\fR timestring
|
|
|
|
Set mtime, atime, and ctime of all files and directories to the given time.
|
|
|
|
.br
|
|
|
|
Valid timestring formats are: 'Nov 8 14:51:13 CET 2007', 110814512007.13,
|
|
|
|
2007110814511300. See also \-\-modification\-date= and man xorriso,
|
|
|
|
Examples of input timestrings.
|
|
|
|
.br
|
2016-08-20 10:28:57 +00:00
|
|
|
If the timestring is "set_to_mtime", then the
|
|
|
|
atime and ctime of each file and directory get set to the value found in their
|
|
|
|
mtime.
|
|
|
|
.br
|
|
|
|
These actions stay delayed until actual ISO production begins.
|
|
|
|
Up to then they can be revoked by \-\-set_all_file_dates
|
|
|
|
with empty timestring or timestring "default".
|
2016-08-07 19:23:35 +00:00
|
|
|
.br
|
|
|
|
The timestamps of the El Torito boot catalog file get refreshed when the ISO
|
|
|
|
is produced. They can be influenced by \-\-modification\-date=.
|
2016-08-06 13:23:00 +00:00
|
|
|
.TP
|
2015-09-17 12:12:41 +00:00
|
|
|
\fB\-file_name_limit\fR number
|
|
|
|
Set the maximum permissible length for file names in the range of 64 to 255.
|
|
|
|
Path components which are longer than the given number will get truncated
|
|
|
|
and have their last 33 bytes overwritten by a colon ':' and the
|
|
|
|
hex representation of the MD5 of the first 4095 bytes of the whole
|
|
|
|
oversized name. Potential incomplete UTF\-8 characters will get their
|
|
|
|
leading bytes replaced by '_'.
|
|
|
|
.br
|
|
|
|
Linux kernels up to at least 4.1 misrepresent names of length 254 and 255.
|
|
|
|
If you expect such names in or under disk_paths and plan to mount the ISO
|
|
|
|
by such Linux kernels, consider to set \-file_name_limit 253.
|
|
|
|
.TP
|
2012-03-12 18:09:25 +00:00
|
|
|
\fB\-D\fR
|
|
|
|
The standard ECMA\-119 demands that no path in the image shall have more
|
2012-03-14 15:23:53 +00:00
|
|
|
than 8 name components or 255 characters. Therefore it would be necessary
|
|
|
|
to move deeper directory trees to a higher directory. Rock Ridge offers an
|
2016-02-05 14:57:52 +00:00
|
|
|
opportunity to let these relocated directories appear at their original
|
2012-03-14 15:23:53 +00:00
|
|
|
deep position, but this feature might not be implemented properly by
|
|
|
|
operating systems which mount the image.
|
2012-03-12 18:09:25 +00:00
|
|
|
.br
|
|
|
|
Option \-D disables this deep directory relocation, and thus violates
|
|
|
|
ISO 9660 specs.
|
|
|
|
.br
|
2015-09-20 12:51:53 +00:00
|
|
|
xorrisofs has \-D set by default. If given explicitly then it overrides
|
2012-03-14 15:23:53 +00:00
|
|
|
the options \-rr_reloc_dir and \-hide\-rr\-moved.
|
2012-03-12 18:09:25 +00:00
|
|
|
.TP
|
|
|
|
\fB\-disable-deep-relocation\fR
|
|
|
|
Alias of \-D.
|
|
|
|
.TP
|
|
|
|
\fB\-rr_reloc_dir\fR name
|
|
|
|
Enable the relocation of deep directories and thus avoid ECMA\-119 file paths
|
2012-03-14 15:23:53 +00:00
|
|
|
of more than 8 name components or 255 characters. Directories which lead to
|
|
|
|
such file paths will get moved to a directory in the root directory of the
|
|
|
|
image. Its name gets set by this option.
|
2012-03-12 18:09:25 +00:00
|
|
|
It is permissible to use the root directory itself.
|
|
|
|
.br
|
|
|
|
The overall directory tree will appear originally deep when interpreted as
|
|
|
|
Rock Ridge tree. It will appear as re\-arranged if only ECMA\-119 information
|
|
|
|
is considered.
|
|
|
|
.br
|
|
|
|
If the given relocation target directory does not already exist when image
|
|
|
|
production begins, then it will get created and marked for Rock Ridge as
|
|
|
|
relocation artefact. At least on GNU/Linux it will not be displayed in
|
|
|
|
mounted Rock Ridge images.
|
|
|
|
.br
|
|
|
|
The name must not contain a '/' character after its first character and it
|
|
|
|
must not be longer than 255 bytes.
|
2012-03-14 15:23:53 +00:00
|
|
|
.br
|
|
|
|
This option has no effect if option \-D is present.
|
2012-03-12 18:09:25 +00:00
|
|
|
.TP
|
|
|
|
\fB\-hide-rr-moved\fR
|
|
|
|
Alias of \-rr_reloc_dir "/.rr_moved"
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB--for_backup\fR
|
2017-10-23 10:12:12 +00:00
|
|
|
Enable all options which improve backup fidelity:
|
|
|
|
.br
|
|
|
|
\-\-acl, \-\-xattr\-any, \-\-md5,
|
2011-05-13 17:49:28 +00:00
|
|
|
\-\-hardlinks.
|
2017-10-23 10:12:12 +00:00
|
|
|
.br
|
|
|
|
If you later restore a backup with xattr from non\-user namespaces, then make
|
|
|
|
sure that the target operating system and filesystem know what these attributes
|
|
|
|
mean. Possibly you will need administrator privileges to record or restore
|
|
|
|
such attributes. At recording time, xorriso will try to tolerate missing
|
|
|
|
privileges and just record what is readable.
|
|
|
|
.br
|
|
|
|
Option \-xattr after option \-for_backup excludes non\-user attributes
|
|
|
|
from being recorded.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--acl\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-08-23 10:42:01 +00:00
|
|
|
Enable recording and loading of ACLs from GNU/Linux or FreeBSD
|
|
|
|
(see man getfacl, man acl).
|
2011-03-05 14:15:32 +00:00
|
|
|
They will not be in effect with mounted ISO images. But xorriso can
|
2011-08-23 10:42:01 +00:00
|
|
|
restore them on the same systems when extracting files from the ISO image.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--xattr\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-08-23 10:42:01 +00:00
|
|
|
Enable recording and loading of GNU/Linux or FreeBSD extended attributes in
|
2015-07-31 17:12:51 +00:00
|
|
|
user namespace (see man getfattr and man attr,
|
|
|
|
man getextattr and man 9 extattr, respectively).
|
2011-03-05 14:15:32 +00:00
|
|
|
They will not be in effect with mounted ISO images. But xorriso can
|
2011-08-23 10:42:01 +00:00
|
|
|
restore them on the same systems when extracting files from the ISO image.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2017-10-23 10:12:12 +00:00
|
|
|
\fB--xattr-any\fR
|
|
|
|
.br
|
|
|
|
Enable recording and loading of GNU/Linux or FreeBSD extended attributes in
|
2018-09-24 10:13:38 +00:00
|
|
|
all namespaces. This might need administrator privileges, even if the owner
|
2017-10-23 10:12:12 +00:00
|
|
|
of the disk file tries to read the attributes.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB--md5\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Enable recording of MD5 checksums for the overall ISO image and for each
|
|
|
|
single data file in the image. xorriso can check the content of an ISO
|
2011-06-17 14:39:24 +00:00
|
|
|
image with these sums and raise alert on mismatch.
|
2011-05-13 17:49:28 +00:00
|
|
|
See man xorriso, options \-check_media, check_md5_r.
|
2011-03-05 14:15:32 +00:00
|
|
|
xorriso can print recorded MD5 checksums. E.g. by:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-find / \-exec get_md5
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--hardlinks\fR
|
|
|
|
Enable loading and recording of hardlink relations.
|
|
|
|
Search for families of iso_rr files which stem from the same disk file,
|
|
|
|
have identical content filtering and have identical properties.
|
|
|
|
The members of each family get the same inode number in the ISO image.
|
|
|
|
.br
|
|
|
|
Whether these numbers are respected at mount time depends on the operating
|
|
|
|
system. xorriso can create hardlink families when extracting files from
|
|
|
|
the ISO image.
|
|
|
|
.TP
|
|
|
|
\fB--scdbackup_tag\fR disk_path record_name
|
|
|
|
Append a scdbackup checksum record to the image. This works only if the
|
2016-08-05 11:22:49 +00:00
|
|
|
parameter next_writeable_address of option \-C is 0 and \-\-md5 is enabled.
|
2011-03-05 14:15:32 +00:00
|
|
|
If disk_path is not an empty string, then append a scdbackup checksum record
|
|
|
|
to the end of this file. record_name is a word that gets part of tag
|
|
|
|
and record.
|
|
|
|
.br
|
2015-07-31 17:12:51 +00:00
|
|
|
Program scdbackup_verify will recognize and verify tag and file record.
|
2016-08-05 11:22:49 +00:00
|
|
|
.br
|
|
|
|
An empty record_name disables this feature.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-J\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Enable the production of an additional Joliet directory tree along
|
|
|
|
with the ISO 9660 Rock Ridge tree.
|
|
|
|
.TP
|
|
|
|
\fB\-joliet\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-J.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-joliet-long\fR
|
2011-03-26 14:45:24 +00:00
|
|
|
Allow 103 characters in Joliet file names rather than 64 as is prescribed
|
|
|
|
by the specification. Allow Joliet paths longer than the prescribed limit of
|
|
|
|
240 characters.
|
2011-03-26 17:08:00 +00:00
|
|
|
.br
|
|
|
|
Oversized names get truncated. Without this option, oversized paths get
|
|
|
|
excluded from the Joliet tree.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2013-12-18 07:45:29 +00:00
|
|
|
\fB\-joliet-utf16\fR
|
|
|
|
Encode Joliet file names in UTF\-16BE rather than UCS\-2.
|
|
|
|
The difference is with characters which are not present
|
|
|
|
in UCS\-2 and get encoded in UTF\-16 by 2 words of 16 bit each.
|
|
|
|
Both words then stem from a reserved subset of UCS\-2.
|
|
|
|
.TP
|
2012-06-06 18:48:26 +00:00
|
|
|
\fB\-hfsplus\fR
|
|
|
|
Enable the production of an additional HFS+ filesystem inside the ISO 9660
|
|
|
|
image and mark it by Apple Partition Map (APM) entries in the System Area,
|
|
|
|
the first 32 KiB of the image.
|
|
|
|
.br
|
|
|
|
This may collide with options like \-G or \-isohybrid\-mbr which submit user data
|
|
|
|
for inclusion in the same address range.
|
|
|
|
The first 8 bytes of the System Area get overwritten by
|
|
|
|
{ 0x45, 0x52, 0x08 0x00, 0xeb, 0x02, 0xff, 0xff }
|
|
|
|
which can be executed as x86 machine code without negative effects.
|
|
|
|
So if an MBR gets combined with this feature, then its first 8 bytes
|
|
|
|
should contain no essential commands.
|
|
|
|
.br
|
|
|
|
The next blocks of 2 KiB in the System Area will be occupied by APM entries.
|
|
|
|
The first one covers the part of the ISO image before the HFS+ filesystem
|
|
|
|
metadata. The second one marks the range from HFS+ metadata to the end
|
|
|
|
of file content data. If more ISO image data follow, then a third partition
|
|
|
|
entry gets produced. Other features of xorriso might cause the need for
|
|
|
|
more APM entries.
|
2012-07-03 16:33:13 +00:00
|
|
|
.br
|
|
|
|
Be aware that HFS+ is case\-insensitive although it can record file names
|
|
|
|
with upper\-case and lower\-case letters. Therefore, file names from the iso_rr
|
|
|
|
name tree may collide in the HFS+ name tree. In this case they get changed
|
|
|
|
by adding underscore characters and counting numbers. In case of very long
|
|
|
|
names, it might be necessary to map them to "MANGLED_...".
|
2020-06-13 08:52:42 +00:00
|
|
|
.br
|
|
|
|
WARNING:
|
|
|
|
.br
|
|
|
|
The HFS+ implementation in libisofs has a limit of 125,829,120 bytes for the
|
|
|
|
size of the overall directory tree. This suffices for about 300,000 files
|
|
|
|
of normal name length. If the limit gets exceeded, a FAILURE event will be
|
|
|
|
issued and the ISO production will not happen.
|
2012-06-06 18:48:26 +00:00
|
|
|
.TP
|
2012-06-27 19:20:52 +00:00
|
|
|
\fB\-hfsplus-serial-no\fR
|
|
|
|
Set a string of 16 digits "0" to "9"
|
|
|
|
and letters "a" to "f", which will be used as unique serial number of
|
|
|
|
an emerging HFS+ filesystem.
|
|
|
|
.TP
|
|
|
|
\fB\-hfsplus-block-size\fR number
|
|
|
|
Set the allocation block size to
|
|
|
|
be used when producing HFS+ filesystems. Permissible are 512, 2048, or 0.
|
|
|
|
The latter lets the program decide.
|
|
|
|
.TP
|
|
|
|
\fB\-apm-block-size\fR number
|
|
|
|
Set the block size to be used when
|
|
|
|
describing partitions by an Apple Partition Map. Permissible are 512, 2048,
|
|
|
|
or 0. The latter lets the program decide.
|
|
|
|
.br
|
|
|
|
Note that size 512 is not compatible with production of GPT, and that
|
|
|
|
size 2048 will not be mountable \-t hfsplus at least by older Linux kernels.
|
|
|
|
.TP
|
2012-06-06 18:48:26 +00:00
|
|
|
\fB\-hfsplus-file-creator-type\fR creator type iso_rr_path
|
|
|
|
Set the HFS+ creator and type attributes of a file in the emerging image.
|
|
|
|
These are two codes of 4 characters each.
|
|
|
|
.TP
|
2012-06-14 16:21:01 +00:00
|
|
|
\fB\-hfs-bless-by\fR blessing iso_rr_path
|
2012-06-06 18:48:26 +00:00
|
|
|
Issue a HFS+ blessing. They are roles which can be attributed to
|
|
|
|
up to four directories and a data file:
|
|
|
|
.br
|
|
|
|
"ppc_bootdir", "intel_bootfile", "show_folder", "os9_folder", "osx_folder".
|
|
|
|
.br
|
|
|
|
They may be abbreviated as "p", "i", "s", "9", and "x".
|
|
|
|
.br
|
|
|
|
Each such role can be attributed to at most one file object. "intel_bootfile"
|
|
|
|
is the one that would apply to a data file. All others apply to directories.
|
|
|
|
No file object can bear more than one blessing.
|
|
|
|
.TP
|
2012-06-21 20:43:02 +00:00
|
|
|
\fB\-hfs-bless\fR disk_path
|
|
|
|
Issue HFS+ blessing "ppc_bootdir" to the directory which stems from the
|
|
|
|
directory disk_path in the local filesystem tree.
|
|
|
|
.br
|
|
|
|
This works only if there is at least one data file underneath the directory.
|
2016-07-03 20:46:51 +00:00
|
|
|
disk_path can become ambiguous if files from different local filesystem
|
2012-06-21 20:43:02 +00:00
|
|
|
sub\-trees are put into the same sub\-tree of the ISO image.
|
2016-07-03 20:46:51 +00:00
|
|
|
Consider to use \-hfs\-bless\-by "p" for unambiguous addressing via iso_rr_path.
|
2012-06-06 18:48:26 +00:00
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
.B Settings for file hiding:
|
|
|
|
.TP
|
|
|
|
\fB\-hide\fR disk_path_pattern
|
|
|
|
Make files invisible in the directory tree of ISO 9660 and Rock Ridge,
|
|
|
|
if their disk_path matches the given shell parser pattern.
|
2011-06-17 14:39:24 +00:00
|
|
|
The data content of such hidden files will be included in the
|
2011-03-05 14:15:32 +00:00
|
|
|
resulting image, even if they do not show up in any directory.
|
|
|
|
But you will need own means to find nameless data in the image.
|
|
|
|
.br
|
|
|
|
This command does not apply to the boot catalog.
|
|
|
|
.TP
|
|
|
|
\fB\-hide-list\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Perform \-hide using each line out of file disk_path as argument
|
2011-03-05 14:15:32 +00:00
|
|
|
disk_path_pattern.
|
|
|
|
.TP
|
|
|
|
\fB\-hide-joliet\fR disk_path_pattern
|
2011-05-13 17:49:28 +00:00
|
|
|
Like option \-hide but making files invisible in the directory tree of Joliet,
|
2011-03-05 14:15:32 +00:00
|
|
|
if their disk_path matches the given shell parser pattern.
|
|
|
|
.TP
|
|
|
|
\fB\-hide-joliet-list\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Perform \-hide\-joliet using each line out of file disk_path as argument
|
2011-03-05 14:15:32 +00:00
|
|
|
disk_path_pattern.
|
|
|
|
.TP
|
2012-06-06 18:48:26 +00:00
|
|
|
\fB\-hide-hfsplus\fR disk_path_pattern
|
|
|
|
Like option \-hide but making files invisible in the directory tree of HFS+,
|
|
|
|
if their disk_path matches the given shell parser pattern.
|
|
|
|
.TP
|
|
|
|
\fB\-hide-hfsplus-list\fR disk_path
|
|
|
|
Perform \-hide\-hfsplus using each line out of file disk_path as argument
|
|
|
|
disk_path_pattern.
|
|
|
|
.TP
|
2023-11-20 10:50:38 +00:00
|
|
|
\fB\-hide_iso_path\fR hide_state iso_rr_path
|
|
|
|
Prevent the name of the given file from showing up in the directory trees
|
|
|
|
of ISO 9660 and/or Joliet and/or HFS+ when the image gets written.
|
|
|
|
Other than the above hide options, this one takes the path of a file
|
|
|
|
in the emerging ISO filesystem, not the path of a file on hard disk.
|
|
|
|
.br
|
|
|
|
Possible values of hide_state are: "iso_rr" for hiding from ISO 9660 tree,
|
|
|
|
"joliet" for Joliet tree, "hfsplus" for HFS+, "on" for them all.
|
|
|
|
"off" means visibility in all directory trees.
|
|
|
|
.br
|
|
|
|
These values may be combined.
|
|
|
|
E.g.: joliet:hfsplus
|
|
|
|
.br
|
|
|
|
This command does not apply to the boot catalog.
|
2024-05-11 11:06:20 +00:00
|
|
|
Rather use: \-\-boot\-catalog\-hide
|
2023-11-20 10:50:38 +00:00
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
.B ISO image ID strings:
|
|
|
|
.PP
|
|
|
|
The following strings and file addresses get stored in the Primary Volume
|
|
|
|
Descriptor of the ISO9660 image. The file addresses are ISO 9660
|
|
|
|
paths. These files should have iso_rr_paths which consist only of
|
2011-05-13 17:49:28 +00:00
|
|
|
the characters [A\-Z0\-9_] and exactly one dot which separates
|
2011-03-05 14:15:32 +00:00
|
|
|
at most 8 characters from at most 3 characters.
|
|
|
|
.TP
|
|
|
|
\fB\-V\fR text
|
|
|
|
Set the Volume Id of the ISO image.
|
|
|
|
xorriso accepts any text up to 32 characters,
|
|
|
|
but according to rarely obeyed specs stricter rules apply:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Conformant are ASCII characters out of [A\-Z0\-9_]. Like: "IMAGE_23"
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Joliet allows 16 UCS\-2 characters. Like: "Windows name"
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Be aware that the volume id might get used automatically as name of the
|
2011-10-26 14:09:51 +00:00
|
|
|
mount point when the medium is inserted into a playful computer system.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-volid\fR text
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-V.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-volset\fR text
|
|
|
|
Set the Volume Set Id of the ISO image.
|
|
|
|
Permissible are up to 128 characters.
|
|
|
|
.TP
|
2012-10-12 08:16:12 +00:00
|
|
|
\fB\-P\fR text
|
2011-03-05 14:15:32 +00:00
|
|
|
Set the Publisher Id of the ISO image. This may identify the person or
|
|
|
|
organisation who specified what shall be recorded.
|
|
|
|
Permissible are up to 128 characters.
|
|
|
|
.TP
|
|
|
|
\fB\-publisher\fR text
|
2012-10-12 08:16:12 +00:00
|
|
|
Alias of \-P.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-A\fR text
|
|
|
|
Set the Application Id of the ISO image.
|
|
|
|
This may identify the specification of how the data are recorded.
|
|
|
|
Permissible are up to 128 characters.
|
|
|
|
.br
|
|
|
|
The special text "@xorriso@" gets converted to the id string of xorriso
|
|
|
|
which is normally written as Preparer Id. It is a wrong tradition to write
|
|
|
|
the program id as Application Id.
|
|
|
|
.TP
|
|
|
|
\fB\-appid\fR text
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-A.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-sysid\fR text
|
|
|
|
Set the System Id of the ISO image. This may
|
|
|
|
identify the system which can recognize and act upon the content of the
|
|
|
|
System Area in image blocks 0 to 15.
|
|
|
|
Permissible are up to 32 characters.
|
|
|
|
.TP
|
|
|
|
\fB\-p\fR text
|
|
|
|
Set the Preparer Id of the ISO image. This may
|
|
|
|
identify the person or other entity which controls the preparation of the data
|
|
|
|
which shall be recorded. Normally this should be the id of xorriso and not
|
|
|
|
of the person or program which operates xorriso. Please avoid to change it.
|
|
|
|
Permissible are up to 128 characters.
|
|
|
|
.br
|
|
|
|
The special text "@xorriso@" gets converted to the id string of xorriso
|
|
|
|
which is default at program startup.
|
|
|
|
.TP
|
|
|
|
\fB\-preparer\fR text
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-p.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-abstract\fR iso_path
|
|
|
|
Set the address of the Abstract File of the ISO image. This should
|
|
|
|
be the ISO 9660 path of a file in the image which contains an abstract
|
|
|
|
statement about the image content.
|
|
|
|
Permissible are up to 37 characters.
|
|
|
|
.TP
|
|
|
|
\fB\-biblio\fR iso_path
|
|
|
|
Set the address of the Biblio File of the ISO image. This should
|
|
|
|
be the ISO 9660 path of a file in the image which contains bibliographic
|
|
|
|
records.
|
|
|
|
Permissible are up to 37 characters.
|
|
|
|
.TP
|
|
|
|
\fB\-copyright\fR iso_path
|
|
|
|
Set the address of the Copyright File of the ISO image. This should
|
|
|
|
be the ISO 9660 path of a file in the image which contains a copyright
|
|
|
|
statement.
|
|
|
|
Permissible are up to 37 characters.
|
|
|
|
.TP
|
|
|
|
\fB--modification-date=YYYYMMDDhhmmsscc\fR
|
|
|
|
Set a timestring that overrides ISO image creation and modification timestamps
|
|
|
|
literally.
|
|
|
|
It must consist of 16 decimal digits which form YYYYMMDDhhmmsscc, with
|
|
|
|
YYYY between 1970 and 2999. Time zone is GMT.
|
|
|
|
It is supposed to match this GRUB line:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
search \-\-fs\-uuid \-\-set YYYY\-MM\-DD\-hh\-mm\-ss\-cc
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
E.g. 2010040711405800 is 7 Apr 2010 11:40:58 (+0 centiseconds).
|
2016-08-07 19:23:35 +00:00
|
|
|
.br
|
|
|
|
Among the influenced timestamps are:
|
|
|
|
isohybrid MBR id, El Torito boot catalog file, HFS+ superblock.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2013-08-04 10:23:14 +00:00
|
|
|
\fB--application_use\fR character|0xXY|disk_path
|
|
|
|
Specify the content of the Application Use field which can take at most
|
|
|
|
512 bytes.
|
|
|
|
.br
|
|
|
|
If the parameter of this command is empty, then the field is filled
|
|
|
|
with 512 0\-bytes. If it is a single character, then it gets repeated 512 times.
|
|
|
|
If it begins by "0x" followed by two hex digits [0\-9a\-fA\-F], then the digits
|
|
|
|
are read as byte value which gets repeated 512 times.
|
|
|
|
.br
|
|
|
|
Any other parameter text is used as disk_path to open a data file and to
|
|
|
|
read up to 512 bytes from it. If the file is smaller than 512 bytes, then the
|
|
|
|
remaining bytes in the field get set to binary 0.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
.B El Torito Bootable ISO images:
|
|
|
|
.PP
|
|
|
|
The precondition for a bootable ISO image is to have in the ISO image
|
|
|
|
the files of a boot loader. The boot facilities of computers get
|
|
|
|
directed to such files, which usually execute further program files
|
|
|
|
from the ISO image.
|
2011-05-17 09:42:51 +00:00
|
|
|
\fBxorrisofs\fR can produce several kinds of boot block or boot record,
|
2011-03-05 14:15:32 +00:00
|
|
|
which become part of the ISO image, and get interpreted by the according
|
|
|
|
boot facility.
|
|
|
|
.br
|
|
|
|
.PP
|
|
|
|
An \fBEl Torito\fR
|
|
|
|
boot record points the bootstrapping facility to a boot catalog
|
|
|
|
with one or more boot images, which are binary program files stored in
|
|
|
|
the ISO image.
|
|
|
|
The content of the boot image files is not in the scope of El Torito.
|
|
|
|
.br
|
|
|
|
xorriso composes the boot catalog according to the boot image
|
2016-11-13 10:13:33 +00:00
|
|
|
files given and structured by options \-b, \-e, \-eltorito\-alt\-boot,
|
2011-05-13 17:49:28 +00:00
|
|
|
and \-\-efi\-boot. Often it contains only one entry.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2016-09-12 14:38:22 +00:00
|
|
|
Normally the boot images are data files inside the ISO filesystem. By
|
|
|
|
special path "\-\-interval:appended_partition_NNN:all::" it is possible to
|
|
|
|
refer to an appended partition. The number NNN gives the partition number
|
|
|
|
as used with the corresponding option \-append_partition.
|
|
|
|
E.g.:
|
|
|
|
.br
|
|
|
|
\-append_partition 2 0xef /tmp/efi.img
|
|
|
|
.br
|
|
|
|
\-e \-\-interval:appended_partition_2:all::
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
El Torito gets interpreted by boot facilities PC\-BIOS and EFI.
|
2011-03-05 14:15:32 +00:00
|
|
|
Most bootable GNU/Linux CDs are equipped with ISOLINUX or GRUB boot images
|
2011-05-13 17:49:28 +00:00
|
|
|
for PC\-BIOS.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-17 09:42:51 +00:00
|
|
|
\fBxorrisofs\fR supports the example options out of the ISOLINUX wiki,
|
2011-05-13 17:49:28 +00:00
|
|
|
the options used in GRUB script grub\-mkrescue, and the example in the
|
2011-03-05 14:15:32 +00:00
|
|
|
FreeBSD AvgLiveCD wiki.
|
|
|
|
.br
|
|
|
|
.PP
|
2011-05-13 17:49:28 +00:00
|
|
|
For CD booting via boot facilities other than PC\-BIOS and EFI, and
|
2011-03-05 14:15:32 +00:00
|
|
|
for booting from USB sticks or hard disks, see the next section
|
2015-09-20 12:51:53 +00:00
|
|
|
about the System Area.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.TP
|
|
|
|
\fB\-b\fR iso_rr_path
|
|
|
|
Specify the boot image file which shall be mentioned in the current
|
|
|
|
entry of the El Torito boot catalog. It will be marked as suitable for
|
2011-05-13 17:49:28 +00:00
|
|
|
PC\-BIOS.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
With boot images from ISOLINUX and GRUB this option should be accompanied by
|
2011-05-13 17:49:28 +00:00
|
|
|
options \-c , \-no\-emul\-boot , \-boot\-load\-size 4 , \-boot\-info\-table.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-eltorito-boot\fR iso_rr_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-b.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-eltorito-alt-boot\fR
|
|
|
|
Finalize the current El Torito boot catalog entry and begin a new one.
|
|
|
|
A boot image file and all its necessary options shall be specified before
|
2011-05-13 17:49:28 +00:00
|
|
|
option \-eltorito\-alt\-boot.
|
2011-03-05 14:15:32 +00:00
|
|
|
All further El Torito boot options apply to the new catalog
|
|
|
|
entry. Up to 32 catalog entries are possible.
|
|
|
|
.TP
|
|
|
|
\fB\-e\fR iso_rr_path
|
|
|
|
Specify the boot image file which shall be mentioned in the current
|
|
|
|
entry of the El Torito boot catalog. It will be marked as suitable for EFI.
|
|
|
|
.br
|
2015-06-30 14:41:14 +00:00
|
|
|
Option \-e should be followed by option \-no\-emul\-boot and no other El Torito
|
|
|
|
options before an eventual \-eltorito\-alt\-boot.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--efi-boot\fR iso_rr_path
|
2011-06-17 14:39:24 +00:00
|
|
|
Perform \-eltorito\-alt\-boot, option \-e with the given
|
2015-06-30 14:41:14 +00:00
|
|
|
iso_rr_path, \-no\-emul\-boot, and again \-eltorito\-alt\-boot. This gesture is
|
2011-05-13 17:49:28 +00:00
|
|
|
used for achieving EFI\-bootability of the GRUB2 rescue CD.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2017-06-03 13:24:48 +00:00
|
|
|
\fB\-eltorito-platform\fR "x86"|"PPC"|"Mac"|"efi"|0xnn|nnn
|
2017-06-03 16:38:18 +00:00
|
|
|
Set the Platform Id number for the next option \-b or \-eltorito\-boot.
|
|
|
|
The number may be chosen by a platform name or by a number between
|
|
|
|
0 and 255 (0x00 and 0xFF). "x86" = 0 is for PC\-BIOS,
|
2017-06-03 13:24:48 +00:00
|
|
|
"PPC" = 1 for some PowerPC systems, "Mac" = 2 for some MacIntosh systems,
|
|
|
|
"efi" = 0xEF for EFI on modern PCs with x86 compatible CPUs or others.
|
2017-06-03 16:38:18 +00:00
|
|
|
.br
|
|
|
|
If the new platform id differs from the previous one, \-eltorito\-alt\-boot
|
|
|
|
gets performed.
|
2017-06-03 13:24:48 +00:00
|
|
|
.TP
|
2016-11-13 10:13:33 +00:00
|
|
|
\fB\-boot-load-size\fR number|"full"
|
2014-09-26 12:13:02 +00:00
|
|
|
Set the number of 512\-byte blocks to be loaded at boot time
|
|
|
|
from the boot image in the current catalog entry.
|
2016-11-13 10:13:33 +00:00
|
|
|
.br
|
2014-09-26 12:13:02 +00:00
|
|
|
Non\-emulating BIOS bootimages usually need a load size of 4.
|
2016-11-13 10:13:33 +00:00
|
|
|
Nevertheless the default setting of mkisofs is to use the full size of the
|
|
|
|
boot image rounded up to a multiple of 4 512\-byte blocks. This default
|
2017-09-17 09:06:12 +00:00
|
|
|
may be explicitly enforced by the word "full" instead of a number.
|
2016-11-13 10:13:33 +00:00
|
|
|
.br
|
2014-09-26 12:13:02 +00:00
|
|
|
EFI boot images usually get set the number of blocks occupied
|
|
|
|
by the boot image file.
|
|
|
|
.br
|
|
|
|
El Torito cannot represent load sizes higher than 65535.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-hard-disk-boot\fR
|
|
|
|
Mark the boot image in the current catalog entry as emulated hard disk.
|
|
|
|
(Not suitable for any known boot loader.)
|
|
|
|
.TP
|
|
|
|
\fB\-no-emul-boot\fR
|
|
|
|
Mark the boot image in the current catalog entry as not emulating
|
|
|
|
floppy or hard disk. (This is to be used with all known boot loaders.)
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
If neither \-hard\-disk\-boot nor \-no\-emul\-boot is given, then the
|
2011-03-05 14:15:32 +00:00
|
|
|
boot image will be marked as emulating a floppy.
|
|
|
|
(Not suitable for any known boot loader.)
|
|
|
|
.TP
|
2013-02-18 10:48:02 +00:00
|
|
|
\fB\-eltorito-id\fR text|56_hexdigits
|
|
|
|
Define the ID string of the boot catalog
|
|
|
|
section where the boot image will be listed. If the value consists of 56
|
|
|
|
characters [0\-9A\-Fa\-f] then it is converted into 28 bytes, else the first
|
|
|
|
28 characters become the ID string.
|
|
|
|
The ID string of the first boot image becomes the overall catalog ID.
|
|
|
|
It is limited to 24 characters. Other id_strings become section IDs.
|
|
|
|
.TP
|
|
|
|
\fB\-eltorito-selcrit\fR hexdigits
|
|
|
|
Define the Selection Criteria of the boot image.
|
|
|
|
Up to 20 bytes get read from the given characters [0\-9A\-Fa\-f].
|
|
|
|
They get attributed to the boot image entry in the catalog.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-boot-info-table\fR
|
2013-04-14 17:49:29 +00:00
|
|
|
Overwrite bytes 8 to 63 in the current boot image. The information will be
|
2011-03-05 14:15:32 +00:00
|
|
|
supplied by xorriso in the course of image production: Block address of
|
|
|
|
the Primary Volume Descriptor, block address of the boot image file,
|
|
|
|
size of the boot image file.
|
|
|
|
.TP
|
2013-05-10 10:28:21 +00:00
|
|
|
\fB--grub2-boot-info\fR
|
2013-04-14 17:49:29 +00:00
|
|
|
Overwrite bytes 2548 to 2555 in the current boot image by the address
|
|
|
|
of that boot image.
|
|
|
|
The address is written as 64 bit little\-endian number. It is the
|
|
|
|
2KB block address of the boot image content, multiplied by 4,
|
|
|
|
and then incremented by 5.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-c\fR iso_rr_path
|
|
|
|
Set the address of the El Torito boot catalog file within the image.
|
2011-05-13 17:49:28 +00:00
|
|
|
This file address is not significant for the booting PC\-BIOS or EFI,
|
2011-03-05 14:15:32 +00:00
|
|
|
but it may later be read by other programs in order to learn about
|
|
|
|
the available boot images.
|
|
|
|
.TP
|
|
|
|
\fB\-eltorito-catalog\fR iso_rr_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-c.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--boot-catalog-hide\fR
|
|
|
|
Prevent the El Torito boot catalog from appearing as file
|
|
|
|
in the directory trees of the image.
|
|
|
|
.TP
|
2012-06-18 08:26:06 +00:00
|
|
|
.B System Area, MBR, GPT, APM, other boot blocks:
|
2011-03-05 14:15:32 +00:00
|
|
|
.PP
|
|
|
|
The first 16 blocks of an ISO image are the System Area.
|
|
|
|
It is reserved for system dependent boot software. This may be the
|
2012-06-18 08:26:06 +00:00
|
|
|
boot facilities and partition tables of various hardware architectures.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
A \fBMBR\fR (Master Boot Record) contains boot code and a partition table.
|
2012-06-18 08:26:06 +00:00
|
|
|
It is read by PC\-BIOS when booting from USB stick or hard disk,
|
|
|
|
and by PowerPC CHRP or PReP when booting.
|
2017-09-17 09:06:12 +00:00
|
|
|
An MBR partition with type 0xee indicates the presence of GPT.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2012-06-18 08:26:06 +00:00
|
|
|
A \fBGPT\fR (GUID Partition Table) marks partitions in a more modern way.
|
|
|
|
It is read by EFI when booting from USB stick or hard disk, and may be used
|
|
|
|
for finding and mounting a HFS+ partition inside the ISO image.
|
|
|
|
.br
|
|
|
|
An \fBAPM\fR (Apple Partition Map) marks the HFS+ partition.
|
|
|
|
It is read by Macs for booting and for mounting.
|
|
|
|
.br
|
|
|
|
MBR, GPT and APM are combinable. APM occupies the first 8 bytes of
|
|
|
|
MBR boot code. All three do not hamper El Torito booting from CDROM.
|
|
|
|
.br
|
|
|
|
\fBxorrisofs\fR supports further boot facilities:
|
2015-02-28 14:31:04 +00:00
|
|
|
MIPS Big Endian (SGI), MIPS Little Endian (DEC), SUN SPARC, HP\-PA, DEC Alpha.
|
2012-06-18 08:26:06 +00:00
|
|
|
Those are mutually not combinable and also not combinable with MBR, GPT,
|
|
|
|
or APM.
|
2015-04-23 14:23:45 +00:00
|
|
|
.PP
|
|
|
|
Several of the following options expect disk paths as input but also accept
|
|
|
|
description strings for the libisofs interval reader, which is able to cut
|
|
|
|
out data from disk files or \-indev and to zeroize parts of the content:
|
|
|
|
\-G, \-generic\-boot, \-\-embedded\-boot, \-\-grub2\-mbr,
|
|
|
|
\-isohybrid\-mbr, \-efi\-boot\-part, \-prep\-boot\-part, \-B, \-sparc\-boot,
|
|
|
|
\-append_partition.
|
|
|
|
.br
|
|
|
|
The description string consists
|
|
|
|
of the following components, separated by colon ':'
|
|
|
|
.br
|
|
|
|
"\-\-interval:"Flags":"Interval":"Zeroizers":"Source
|
|
|
|
.br
|
|
|
|
The component "\-\-interval" states that this is not
|
|
|
|
a plain disk path but rather a interval reader description string.
|
|
|
|
.br
|
|
|
|
The component Flags modifies the further interpretation:
|
|
|
|
.br
|
|
|
|
"local_fs" demands to read from a file depicted by the path in Source.
|
|
|
|
.br
|
|
|
|
"imported_iso" demands to read from the \-indev. This works only if \-outdev
|
|
|
|
is not the same as \-indev. The Source component is ignored.
|
|
|
|
.br
|
2016-09-12 14:38:22 +00:00
|
|
|
"appended_partition_NNN" with a decimal number NNN works only for options
|
|
|
|
which announce El Torito boot image paths: \-b, \-e, \-\-efi\-boot. The number gives
|
|
|
|
the partition number as used with the corresponding option \-append_partition.
|
|
|
|
.br
|
2015-04-23 14:23:45 +00:00
|
|
|
The component Interval consists of two byte address numbers separated by a "\-" character. E.g. "0\-429" means to read bytes 0 to 429.
|
|
|
|
.br
|
|
|
|
The component Zeroizers consists of zero or more comma separated strings.
|
|
|
|
They define which part of the read data to zeroize. Byte number 0 means
|
|
|
|
the byte read from the Interval start address.
|
|
|
|
Each string may be one of:
|
|
|
|
.br
|
|
|
|
"zero_mbrpt" demands to zeroize the MBR partition table if
|
|
|
|
bytes 510 and 511 bear the MBR signature 0x55 0xaa.
|
|
|
|
.br
|
|
|
|
"zero_gpt" demands to check for a GPT header in bytes 512 to 1023,
|
|
|
|
to zeroize it and its partition table blocks.
|
|
|
|
.br
|
|
|
|
"zero_apm" demands to check for an APM block 0 and to zeroize
|
|
|
|
its partition table blocks.
|
|
|
|
.br
|
|
|
|
Start_byte"\-"End_byte demands to zeroize the read\-in bytes beginning
|
|
|
|
with number Start_byte and ending after End_byte.
|
|
|
|
.br
|
|
|
|
The component Source is the file path with flag "local_fs", and ignored with
|
|
|
|
flag "imported_iso".
|
|
|
|
.br
|
|
|
|
Byte numbers may be scaled by a suffix out of {k,m,g,t,s,d} meaning
|
|
|
|
multiplication by {1024, 1024k, 1024m, 1024g, 2048, 512}. A scaled value
|
|
|
|
end number depicts the last byte of the scaled range.
|
|
|
|
.br
|
|
|
|
E.g. "0d\-0d" is "0\-511".
|
|
|
|
.br
|
|
|
|
Examples:
|
|
|
|
.br
|
|
|
|
"local_fs:0\-32767:zero_mbrpt,zero_gpt,440\-443:/tmp/template.iso"
|
|
|
|
.br
|
|
|
|
"imported_iso:45056d\-47103d::"
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.TP
|
|
|
|
\fB\-G\fR disk_path
|
|
|
|
Copy at most 32768 bytes from the given disk file to the very start of
|
|
|
|
the ISO image.
|
|
|
|
.br
|
|
|
|
Other than a El Torito boot image, the file disk_path needs not to be added
|
|
|
|
to the ISO image. It will not show up as file in the directory trees.
|
2014-10-28 14:07:32 +00:00
|
|
|
.br
|
|
|
|
In multi\-session situations, the special disk_path "." prevents reading of
|
|
|
|
a disk file but nevertheless causes the adjustments in the
|
|
|
|
existing MBR, which were ordered by other options.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-generic-boot\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-G.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--embedded-boot\fR disk_path
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-G.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2013-05-10 10:28:21 +00:00
|
|
|
\fB--grub2-mbr\fR disk_path
|
2013-04-14 17:49:29 +00:00
|
|
|
Install disk_path in the System Area and treat it as modern GRUB2 MBR.
|
|
|
|
The content start address of the first boot
|
|
|
|
image is converted to a count of 512 byte blocks, and an offset of 4 is added.
|
|
|
|
The result is written as 64 bit little\-endian number to byte address 0x1b0.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-isohybrid-mbr\fR disk_path
|
|
|
|
Install disk_path as ISOLINUX isohybrid MBR which makes the boot image
|
2011-05-13 17:49:28 +00:00
|
|
|
given by option \-b bootable from USB sticks and hard disks via PC\-BIOS.
|
2011-03-05 14:15:32 +00:00
|
|
|
This preparation is normally done by ISOLINUX program isohybrid
|
|
|
|
on the already produced ISO image.
|
|
|
|
.br
|
|
|
|
The disk path should lead to one of the Syslinux files isohdp[fp]x*.bin .
|
|
|
|
The MBR gets patched according to isohybrid needs. The first partition
|
|
|
|
describes the range of the ISO image. Its start is at block 0 by default,
|
2011-05-13 17:49:28 +00:00
|
|
|
but may be set to 64 disk blocks by option \-partition_offset 16.
|
2014-10-28 14:07:32 +00:00
|
|
|
.br
|
|
|
|
For the meaning of special disk_path "." see option \-G.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2012-06-20 19:06:26 +00:00
|
|
|
\fB\-isohybrid-gpt-basdat\fR
|
2020-09-11 10:23:50 +00:00
|
|
|
Mark the current El Torito boot image (see options \-b and \-e) in an actually
|
|
|
|
invalid GPT as partition of type Basic Data. This works only with
|
|
|
|
\-isohybrid\-mbr and has the same impact on the system area as \-efi\-boot\-part.
|
|
|
|
It cannot be combined with \-efi\-boot\-part or \-hfsplus.
|
2012-10-07 11:00:23 +00:00
|
|
|
.br
|
|
|
|
The first three boot images which are marked by GPT will also show up
|
2020-09-11 10:23:50 +00:00
|
|
|
as partition entries in MBR. The MBR partition of type 0xEF is what actually
|
|
|
|
is used by EFI firmware for booting from USB stick.
|
2012-10-07 11:00:23 +00:00
|
|
|
The MBR partition for PC\-BIOS gets type 0x00 rather than 0x17 in this case.
|
|
|
|
Often the further MBR entries are the ones which actually get used by EFI.
|
2012-06-20 19:06:26 +00:00
|
|
|
.TP
|
|
|
|
\fB\-isohybrid-gpt-hfsplus\fR
|
|
|
|
Mark the current El Torito boot image (see options \-b and \-e) in GPT as
|
|
|
|
partition of type HFS+.
|
|
|
|
Impact and restrictions are like with \-isohybrid\-gpt\-basdat.
|
|
|
|
.TP
|
|
|
|
\fB\-isohybrid-apm-hfsplus\fR
|
|
|
|
Mark the current El Torito boot image (see options \-b and \-e) in Apple
|
|
|
|
Partition Map as partition of type HFS+. This works only with \-isohybrid\-mbr
|
|
|
|
and has a similar impact on the system area as \-hfsplus. It cannot be
|
|
|
|
combined with \-efi\-boot\-part or \-hfsplus.
|
|
|
|
.br
|
|
|
|
The ISOLINUX isohybrid MBR file must begin by a known pattern of
|
|
|
|
32 bytes of x86 machine code which essentially does nothing. It will get
|
|
|
|
overwritten by 32 bytes of APM header mock\-up.
|
|
|
|
.TP
|
2016-02-05 10:12:25 +00:00
|
|
|
\fB\-part_like_isohybrid\fR
|
|
|
|
Control whether \-isohybrid\-gpt\-basdat, \-isohybrid\-gpt\-hfsplus, and
|
|
|
|
\-isohybrid\-apm\-hfsplus apply even if not \-isohybrid\-mbr is present.
|
|
|
|
No MBR partition of type 0xee emerges, even if GPT gets produced.
|
|
|
|
Gaps between GPT and APM partitions will not be filled by more partitions.
|
|
|
|
Appended partitions get mentioned in APM if other APM partitions emerge.
|
|
|
|
.TP
|
2019-02-18 12:19:32 +00:00
|
|
|
\fB\-iso_mbr_part_type\fR "default"|number|type_guid
|
2017-02-27 09:43:51 +00:00
|
|
|
Set the partition type
|
2019-02-18 12:19:32 +00:00
|
|
|
of the MBR or GPT partition which represents the ISO or at least protects it.
|
|
|
|
.br
|
2017-02-27 09:43:51 +00:00
|
|
|
Number may be 0x00 to 0xff. The text "default" re\-enables the default types
|
|
|
|
of the various occasions to create an ISO MBR partition.
|
|
|
|
This is without effect if no such partition emerges by other settings or
|
|
|
|
if the partition type is prescribed mandatorily like 0xee for GPT protective
|
|
|
|
MBR or 0x96 for CHRP.
|
2019-02-18 12:19:32 +00:00
|
|
|
.br
|
|
|
|
If instead a type_guid is given by a 32\-digit hex string like
|
|
|
|
a2a0d0ebe5b9334487c068b6b72699c7 or by a structured text like
|
|
|
|
EBD0A0A2\-B9E5\-4433\-87C0\-68B6B72699C7, then it will be used as partition type
|
|
|
|
if the ISO filesystem appears as partition in GPT.
|
|
|
|
In MBR, C12A7328\-F81F\-11D2\-BA4B\-00A0C93EC93B will be mapped to 0xef.
|
|
|
|
Any other GUID will be mapped to 0x83.
|
2017-02-27 09:43:51 +00:00
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB--protective-msdos-label\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Patch the System Area by a simple PC\-DOS partition table where partition 1
|
2011-03-05 14:15:32 +00:00
|
|
|
claims the range of the ISO image but leaves the first block unclaimed.
|
2020-11-15 14:31:10 +00:00
|
|
|
This is mutally exclusive to option \-isohybrid\-mbr.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2016-01-01 17:28:46 +00:00
|
|
|
\fB--mbr-force-bootable\fR
|
|
|
|
Enforce an MBR partition with "bootable/active" flag if options like
|
|
|
|
\-\-protective\-msdos\-label or \-\-grub2\-mbr are given.
|
|
|
|
These options normally cause the flag to be set if there is an
|
|
|
|
MBR partition of type other than 0xee or 0xef.
|
|
|
|
If no such partition exists, then no bootflag is set, unless
|
|
|
|
\-\-mbr\-force\-bootable forces creation of a dummy partition
|
|
|
|
of type 0x00 which covers only the first block of the ISO image.
|
2017-06-29 21:15:40 +00:00
|
|
|
.br
|
|
|
|
If no bootable MBR is indicated by other options and a partition gets created
|
|
|
|
by \-append_partition, then \-\-mbr\-force\-bootable causes a
|
|
|
|
bootflag like it would do with e.g. \-\-protective\-msdos\-label.
|
2016-01-01 17:28:46 +00:00
|
|
|
.TP
|
2021-05-25 19:22:43 +00:00
|
|
|
\fB--gpt-iso-bootable\fR
|
|
|
|
Set bit 2 of the GPT partition flags for the ISO 9660 partition if such a GPT
|
|
|
|
partition emerges. This bit is specified as "Legacy BIOS bootable" but its
|
|
|
|
true significance is unclear.
|
|
|
|
Some GPT\-aware BIOS might want to see it in some partition.
|
|
|
|
.TP
|
|
|
|
\fB--gpt-iso-not-ro\fR
|
|
|
|
Do not set bit 60 of the GPT partition flags for the ISO 9660 partition if such
|
|
|
|
a GPT partition emerges. This bit is specified as "Read\-only" and thus
|
|
|
|
appropriate. But it is unusual in GPT disk partitions.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-partition_offset\fR 2kb_block_adr
|
|
|
|
Cause a partition table with a single partition that begins at the
|
|
|
|
given block address. This is counted in 2048 byte
|
2011-05-13 17:49:28 +00:00
|
|
|
blocks, not in 512 byte blocks. If the block address is non\-zero then it must
|
2011-03-05 14:15:32 +00:00
|
|
|
be at least 16. Values larger than 16 are hardly of use.
|
2011-05-13 17:49:28 +00:00
|
|
|
A non\-zero partition offset causes two superblocks to be
|
2011-03-05 14:15:32 +00:00
|
|
|
generated and two sets of directory trees. The image is then mountable from its
|
|
|
|
absolute start as well as from the partition start.
|
|
|
|
.br
|
|
|
|
The offset value of an ISO image gets preserved when a new session is added
|
|
|
|
to a loaded image.
|
|
|
|
So the value defined here is only in effect if a new ISO image gets written.
|
|
|
|
.TP
|
|
|
|
\fB\-partition_hd_cyl\fR number
|
2015-04-23 14:23:45 +00:00
|
|
|
Set the number of heads per cylinder for the MBR partition table.
|
2011-03-05 14:15:32 +00:00
|
|
|
0 chooses a default value. Maximum is 255.
|
|
|
|
.TP
|
|
|
|
\fB\-partition_sec_hd\fR number
|
2015-04-23 14:23:45 +00:00
|
|
|
Set the number of sectors per head for the MBR partition table.
|
2011-03-05 14:15:32 +00:00
|
|
|
0 chooses a default value. Maximum is 63.
|
|
|
|
.br
|
|
|
|
The product partition_sec_hd * partition_hd_cyl * 512 is the cylinder size.
|
2015-09-20 12:51:53 +00:00
|
|
|
It should be divisible by 2048 in order to make exact alignment possible.
|
2015-04-23 14:23:45 +00:00
|
|
|
With appended partitions and \-appended_part_as_gpt there is no limit for
|
|
|
|
the number of cylinders. Else there may be at most 1024 of them.
|
|
|
|
If the cylinder size is too small to stay below the limit,
|
2011-03-05 14:15:32 +00:00
|
|
|
then appropriate values of partition_hd_cyl are chosen with
|
|
|
|
partition_sec_hd 32 or 63. If the image is larger than 8,422,686,720 bytes,
|
2015-04-23 14:23:45 +00:00
|
|
|
then the cylinder size constraints cannot be fulfilled for MBR.
|
|
|
|
They seem not overly important anyway.
|
|
|
|
Flat block addresses in partition tables are good for 1 TiB.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-partition_cyl_align\fR mode
|
|
|
|
Control image size alignment to an integer number of cylinders.
|
|
|
|
It is prescribed by isohybrid specs and it seems to please program fdisk.
|
|
|
|
Cylinder size must be divisible by 2048.
|
2015-04-23 14:23:45 +00:00
|
|
|
Images larger than 8,323,596,288 bytes cannot be aligned in MBR partition
|
|
|
|
table.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Mode "auto" is default. Alignment by padding happens only if
|
2011-05-13 17:49:28 +00:00
|
|
|
option \-isohybrid\-mbr is given.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Mode "on" causes alignment by padding with option
|
2011-05-13 17:49:28 +00:00
|
|
|
\-\-protective\-msdos\-label too.
|
2012-09-21 12:03:32 +00:00
|
|
|
Mode "all" is like "on" but also pads up partitions from \-append_partition
|
|
|
|
to an aligned size.
|
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Mode "off" disables alignment unconditionally.
|
|
|
|
.TP
|
|
|
|
\fB\-append_partition\fR partition_number type_code disk_path
|
|
|
|
Cause a prepared filesystem image to be appended to the ISO image and to be
|
|
|
|
described by a partition table entry in a boot block at the start of the
|
|
|
|
emerging ISO image. The partition entry will bear the size of the submitted
|
2012-09-21 12:03:32 +00:00
|
|
|
file rounded up to the next multiple of 2048 bytes or to the next multiple
|
|
|
|
of the cylinder size.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Beware of subsequent multi\-session runs. The appended partition will get
|
2011-03-05 14:15:32 +00:00
|
|
|
overwritten.
|
|
|
|
.br
|
|
|
|
partition_number may be 1 to 4. Number 1 will put the whole ISO image into
|
|
|
|
the unclaimed space before partition 1. So together with most xorriso MBR
|
2015-04-23 14:23:45 +00:00
|
|
|
or GPT features, number 2 would be the most natural choice.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
The type_code may be "FAT12", "FAT16", "Linux",
|
|
|
|
or a hexadecimal number between 0x00 and 0xff. Not all those numbers will
|
|
|
|
yield usable results. For a list of codes search the Internet for
|
|
|
|
"Partition Types" or run fdisk command "L".
|
2019-02-18 12:19:32 +00:00
|
|
|
If the partition appears in GPT then type_code 0xef is mapped to the EFI System
|
|
|
|
Partition Type GUID. All others get mapped to Basic Data Type GUID.
|
|
|
|
.br
|
|
|
|
type_code may also be a type GUID as plain hex string like
|
|
|
|
a2a0d0ebe5b9334487c068b6b72699c7 or as structured text like
|
|
|
|
EBD0A0A2\-B9E5\-4433\-87C0\-68B6B72699C7. It will be used if the partition is
|
|
|
|
mentioned in GPT. In MBR, C12A7328\-F81F\-11D2\-BA4B\-00A0C93EC93B will be mapped
|
|
|
|
to 0xef. Any other GUID will be mapped to 0x83.
|
2020-11-15 14:31:10 +00:00
|
|
|
In APM, 48465300\-0000\-11AA\-AA11\-00306543ECAC will be mapped to partition
|
|
|
|
type "Apple_HFS", any other to "Data".
|
2015-02-06 11:56:31 +00:00
|
|
|
.br
|
|
|
|
If some other command causes the production of GPT, then the appended
|
2015-04-23 14:23:45 +00:00
|
|
|
partitions will be mentioned there too, even if not \-appended_part_as_gpt
|
|
|
|
is given.
|
2015-02-06 11:56:31 +00:00
|
|
|
.TP
|
|
|
|
\fB\-appended_part_as_gpt\fR
|
|
|
|
Marks partitions from \-append_partition in GPT rather than in MBR.
|
|
|
|
In this case the MBR shows a single partition
|
|
|
|
of type 0xee which covers the whole output data.
|
|
|
|
.br
|
|
|
|
By default, appended partitions get marked in GPT only if GPT is produced
|
|
|
|
because of other options.
|
2024-05-11 11:06:20 +00:00
|
|
|
.br
|
|
|
|
This option raises the maximum number of appended partitions from 4 to 8.
|
|
|
|
But it is not guaranteed that the resulting GPT partition will have the
|
|
|
|
given partition_number. Other GPT partitions may emerge. The final sorting by
|
|
|
|
start block address may put one of them in the partition entry with the desired
|
|
|
|
number, so that the appended partition will get a higher number.
|
|
|
|
.br
|
|
|
|
Given MBR partition types get translated.
|
|
|
|
0xef becomes C12A7328\-F81F\-11D2\-BA4B\-00A0C93EC93B, others become
|
|
|
|
EBD0A0A2\-B9E5\-4433\-87C0\-68B6B72699C7.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2016-02-05 10:12:25 +00:00
|
|
|
\fB\-appended_part_as_apm\fR
|
|
|
|
Marks partitions from \-append_partition in Apple Partition Map, too.
|
2024-05-11 11:06:20 +00:00
|
|
|
The partition number in APM will not be influenced by \-append_partition
|
|
|
|
parameter partition_number.
|
2016-02-05 10:12:25 +00:00
|
|
|
.br
|
|
|
|
By default, appended partitions get marked in APM only if APM is produced
|
|
|
|
because of other options and \-part_like_isohybrid is enabled.
|
|
|
|
.TP
|
2012-06-18 08:26:06 +00:00
|
|
|
\fB\-efi-boot-part\fR disk_path
|
|
|
|
Copy a file from disk into the emerging ISO image and mark it by a GPT entry as
|
|
|
|
EFI System Partition. EFI boot firmware is supposed to use a FAT filesystem
|
|
|
|
image in such a partition for booting from USB stick or hard disk.
|
|
|
|
.br
|
|
|
|
Instead of a disk_path, the word \-\-efi\-boot\-image may be given.
|
|
|
|
It exposes in GPT the content of the first El Torito EFI boot image as
|
|
|
|
EFI system partition. EFI boot images are introduced by options \-e or
|
|
|
|
\-\-efi\-boot.
|
|
|
|
The affected EFI boot image cannot show up in HFS+ because it is stored
|
|
|
|
outside the HFS+ partition.
|
|
|
|
.TP
|
2016-08-12 18:57:21 +00:00
|
|
|
\fB--gpt_disk_guid\fR value
|
|
|
|
Control whether an emerging GPT shall get a randomly generated disk GUID
|
|
|
|
or whether the GUID is supplied by the user.
|
|
|
|
Value "random" is default. Value "modification\-date" produces a low quality
|
|
|
|
GUID from the value set by option \-\-modification\-date=.
|
|
|
|
.br
|
|
|
|
A string of 32 hex digits, or a RFC 4122 compliant GUID string may be used to
|
2016-08-15 10:24:21 +00:00
|
|
|
set the disk GUID directly. UEFI prescribes the first three components of
|
|
|
|
a RFC 4122 GUID string to be byte\-swapped in the binary representation:
|
2016-08-12 18:57:21 +00:00
|
|
|
.br
|
2016-08-15 10:24:21 +00:00
|
|
|
E.g. \-\-gpt_disk_guid 2303cd2a\-73c7\-424a\-a298\-25632da7f446
|
|
|
|
equals \-\-gpt_disk_guid 2acd0323c7734a42a29825632da7f446
|
2016-08-12 18:57:21 +00:00
|
|
|
.br
|
|
|
|
The partition GUIDs get generated by minimally varying the disk GUID.
|
|
|
|
.TP
|
2012-06-18 08:26:06 +00:00
|
|
|
\fB\-chrp-boot-part\fR
|
|
|
|
Mark the block range of the whole emerging ISO image as MBR partition of type
|
2014-04-08 09:18:14 +00:00
|
|
|
0x96. This is not compatible with any other feature that produces MBR
|
2012-06-18 08:26:06 +00:00
|
|
|
partition entries. It makes GPT unrecognizable.
|
2012-06-27 19:20:52 +00:00
|
|
|
.br
|
2014-10-28 14:07:32 +00:00
|
|
|
CHRP is often used in conjunction with HFS. It is not yet tested whether HFS+
|
|
|
|
filesystems produced with option \-hfsplus would boot on any
|
|
|
|
CHRP capable machine which does not boot pure ISO 9660 as well.
|
|
|
|
.TP
|
|
|
|
\fB\-chrp-boot\fR
|
|
|
|
Alias of \-chrp\-boot\-part.
|
2012-06-18 08:26:06 +00:00
|
|
|
.TP
|
|
|
|
\fB\-prep-boot-part\fR disk_path
|
|
|
|
Copy a file from disk into the emerging ISO image and mark it by a MBR
|
2014-04-08 09:18:14 +00:00
|
|
|
partition entry of type 0x41. PReP boot firmware is supposed to read
|
2012-06-18 08:26:06 +00:00
|
|
|
the content of the partition as single ELF executable file.
|
|
|
|
This option is compatible with other MBR partitions and with GPT.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-mips-boot\fR iso_rr_path
|
|
|
|
Declare a data file in the image to be a
|
|
|
|
MIPS Big Endian boot file and cause production of a MIPS Big Endian Volume
|
|
|
|
Header. This is mutually exclusive with production of other boot blocks
|
|
|
|
like MBR.
|
2011-06-17 14:39:24 +00:00
|
|
|
It will overwrite the first 512 bytes of any data provided by \-G.
|
2011-05-13 17:49:28 +00:00
|
|
|
Up to 15 boot files can be declared by multiple \-mips\-boot options.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-mipsel-boot\fR iso_rr_path
|
|
|
|
Declare a data file in the image to be the
|
|
|
|
MIPS Little Endian boot file. This is mutually exclusive with other boot
|
|
|
|
blocks.
|
2011-06-17 14:39:24 +00:00
|
|
|
It will overwrite the first 512 bytes of any data provided by \-G.
|
2011-05-13 17:49:28 +00:00
|
|
|
Only a single boot file can be declared by \-mipsel\-boot.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-B\fR disk_path[,disk_path ...]
|
|
|
|
Cause one or more data files on disk to be written after the end of the
|
|
|
|
ISO image. A SUN Disk Label will be written into the first 512 bytes of the
|
|
|
|
ISO image which lists this image as partition 1 and the given disk_paths as
|
|
|
|
partition 2 up to 8.
|
|
|
|
.br
|
|
|
|
The disk files should contain suitable boot images for SUN SPARC systems.
|
|
|
|
.br
|
|
|
|
The pseudo disk_path "..." causes that all empty partition entries become
|
2011-05-13 17:49:28 +00:00
|
|
|
copies of the last non\-empty entry. If no other disk_path is given before
|
2011-03-05 14:15:32 +00:00
|
|
|
"..." then all partitions describe the ISO image. In this case, the boot
|
2011-05-13 17:49:28 +00:00
|
|
|
loader code has to be imported by option \-G.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-sparc-boot\fR disk_path[,disk_path ...]
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-B.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-sparc-label\fR text
|
|
|
|
Set the ASCII label text of a SUN Disk Label.
|
|
|
|
.TP
|
2013-05-10 10:28:21 +00:00
|
|
|
\fB--grub2-sparc-core\fR iso_rr_path
|
2013-04-14 17:49:29 +00:00
|
|
|
Cause the content address and size of the given data file in the image
|
|
|
|
to be written after the SUN Disk Label. Both numbers are counted in bytes.
|
|
|
|
The address is written as 64 bit big\-endian number to byte 0x228.
|
|
|
|
The size is written as 32 bit big\-endian number to byte 0x230.
|
|
|
|
.TP
|
2014-04-09 07:31:47 +00:00
|
|
|
\fB\-hppa-cmdline\fR text
|
|
|
|
Set the PALO command line for HP\-PA. Up to 1023 characters are permitted
|
|
|
|
by default. With \-hppa\-hdrversion 4 the limit is 127.
|
|
|
|
.br
|
|
|
|
Note that the first five \-hppa options are mandatory, if any of the \-hppa
|
|
|
|
options is given. Only option \-hppa\-hdrversion is allowed to be missing.
|
|
|
|
.TP
|
|
|
|
\fB\-hppa-bootloader\fR iso_rr_path
|
|
|
|
Designate the given path as HP\-PA bootloader file.
|
|
|
|
.TP
|
|
|
|
\fB\-hppa-kernel-32\fR iso_rr_path
|
|
|
|
Designate the given path as HP\-PA 32 bit kernel file.
|
|
|
|
.TP
|
|
|
|
\fB\-hppa-kernel-64\fR iso_rr_path
|
|
|
|
Designate the given path as HP\-PA 64 bit kernel file.
|
|
|
|
.TP
|
|
|
|
\fB\-hppa-ramdisk\fR iso_rr_path
|
|
|
|
Designate the given path as HP\-PA RAM disk file.
|
|
|
|
.TP
|
|
|
|
\fB\-hppa-hdrversion\fR number
|
|
|
|
Choose between PALO header version 5 (default) and version 4.
|
|
|
|
For the appropriate value see in PALO source code: PALOHDRVERSION.
|
|
|
|
.TP
|
2015-02-28 14:31:04 +00:00
|
|
|
\fB\-alpha-boot\fR iso_rr_path
|
|
|
|
Declare a data file in the image to be the DEC Alpha SRM Secondary Bootstrap
|
|
|
|
Loader and cause production of a boot sector which points to it.
|
|
|
|
This is mutually exclusive with production of other boot blocks like MBR.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
.B Character sets:
|
|
|
|
.PP
|
|
|
|
Character sets should not matter as long as only english alphanumeric
|
|
|
|
characters are used for file names or as long as all writers and readers
|
2011-10-26 14:09:51 +00:00
|
|
|
of the medium use the same character set.
|
2011-03-05 14:15:32 +00:00
|
|
|
Outside these constraints it may be necessary to let xorriso convert byte
|
|
|
|
codes.
|
|
|
|
.br
|
|
|
|
A conversion from input character set to the output character set is
|
|
|
|
performed when an ISO image gets written.
|
|
|
|
Vice versa there is a conversion from output character set to the
|
|
|
|
input character set when an ISO image gets loaded.
|
2011-05-13 17:49:28 +00:00
|
|
|
The sets can be defined by options \-input\-charset and \-output\-charset,
|
2011-03-05 14:15:32 +00:00
|
|
|
if needed.
|
|
|
|
.br
|
|
|
|
.TP
|
|
|
|
\fB\-input-charset\fR character_set_name
|
|
|
|
Set the character set from which to convert disk file names when
|
|
|
|
inserting them into the ISO image.
|
|
|
|
.TP
|
|
|
|
\fB\-output-charset\fR character_set_name
|
|
|
|
Set the character set from which to convert names of loaded ISO images
|
|
|
|
and to which to convert names when writing ISO images.
|
|
|
|
.TP
|
|
|
|
.B Jigdo Template Extraction:
|
|
|
|
.PP
|
|
|
|
From man genisoimage:
|
|
|
|
"Jigdo is a tool to help in the distribution of large files like CD and
|
|
|
|
DVD images; see http://atterer.net/jigdo/ for more details. Debian CDs
|
|
|
|
and DVD ISO images are published on the web in jigdo format to allow
|
|
|
|
end users to download them more efficiently."
|
|
|
|
.br
|
|
|
|
If the use of libjte was enabled at compile time of xorriso, then
|
2011-05-17 09:42:51 +00:00
|
|
|
\fBxorrisofs\fR can produce a .jigdo and a .template file together with a
|
2011-05-13 17:49:28 +00:00
|
|
|
single\-session ISO image. If not, then Jigdo options will cause a
|
2011-03-05 14:15:32 +00:00
|
|
|
FAILURE event, which normally leads to program abort.
|
|
|
|
.br
|
|
|
|
One may determine the ability for Jigdo by:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs \-version 2>&1 | grep '^libjte' && echo YES
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.PP
|
|
|
|
The .jigdo file contains checksums and symbolic file addresses.
|
|
|
|
The .template file contains the compressed ISO image with reference tags
|
|
|
|
instead of the content bytes of the listed files.
|
|
|
|
.br
|
2011-05-17 09:42:51 +00:00
|
|
|
Input for this process are the normal arguments for a \fBxorrisofs\fR
|
2019-11-24 12:34:30 +00:00
|
|
|
session with no image loaded, and a checksum file which lists those
|
|
|
|
data files which may be
|
2011-03-05 14:15:32 +00:00
|
|
|
listed in the .jigdo file and externally referenced in the .template file.
|
2019-11-24 12:34:30 +00:00
|
|
|
Each designated file is represented in the checksum file by a single text line:
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2019-11-24 12:34:30 +00:00
|
|
|
Checksum as hex digits, 2 blanks, size as 12 decimal digits or blanks, 2 blanks,
|
2011-03-05 14:15:32 +00:00
|
|
|
symbolic file address
|
|
|
|
.br
|
2019-11-24 12:34:30 +00:00
|
|
|
The kind of checksum is chosen by \-jigdo "checksum_algorithm" with values "md5"
|
|
|
|
(32 hex digits) or "sha256" (64 hex digits).
|
|
|
|
It will also be used for the file address lines in the .jigdo file.
|
|
|
|
The default is "md5".
|
|
|
|
.br
|
|
|
|
The file address in a checksum file line has to bear the same basename as the
|
2011-03-05 14:15:32 +00:00
|
|
|
disk_path of the file which it shall match. The directory path of
|
|
|
|
the file address is decisive for To=From mapping, not for file recognition.
|
2011-06-17 14:39:24 +00:00
|
|
|
After To=From mapping, the file address gets written into the .jigdo
|
2011-03-05 14:15:32 +00:00
|
|
|
file. Jigdo restore tools will convert these addresses into really
|
|
|
|
reachable data source addresses from which they can read.
|
|
|
|
.br
|
2011-06-17 14:39:24 +00:00
|
|
|
If the list of jigdo parameters is not empty, then padding will be
|
2011-03-05 14:15:32 +00:00
|
|
|
counted as part of the ISO image.
|
|
|
|
.br
|
|
|
|
.TP
|
2019-11-24 12:34:30 +00:00
|
|
|
\fB\-jigdo-checksum-algorithm\fR "md5"|"sha256"
|
|
|
|
Set the checksum algorithm which shall be used for the data file entries
|
|
|
|
in the .jigdo file and is expected in the checksum file. Default is "md5".
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-jigdo-jigdo\fR disk_path
|
|
|
|
Set the disk_path for the .jigdo file with the checksums
|
|
|
|
and download addresses for filling the holes in .template.
|
|
|
|
.TP
|
|
|
|
\fB\-jigdo-template\fR disk_path
|
|
|
|
Set the disk_path for the .template file with the
|
|
|
|
holed and compressed ISO image copy.
|
|
|
|
.TP
|
|
|
|
\fB\-jigdo-min-file-size\fR size
|
|
|
|
Set the minimum size for a data file to be listed
|
|
|
|
in the .jigdo file and being a hole in the .template file.
|
|
|
|
size may be a plain number counting bytes, or a number with appended
|
|
|
|
letter "k", "m", "g" to count KiB (1024 bytes), MiB (1024 KiB), or
|
|
|
|
GiB (1024 MiB).
|
|
|
|
.TP
|
2019-11-24 12:34:30 +00:00
|
|
|
\fB\-jigdo-force-checksum\fR disk_path_pattern
|
2011-03-05 14:15:32 +00:00
|
|
|
adds a regular expression pattern which will get compared
|
2019-11-24 12:34:30 +00:00
|
|
|
with the absolute disk_path of any data file that was not found in the
|
|
|
|
checksum file.
|
|
|
|
A match causes a MISHAP event, which normally does not abort the
|
2011-05-13 17:49:28 +00:00
|
|
|
program run but finally causes a non\-zero exit value of the program.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
2019-11-24 12:34:30 +00:00
|
|
|
\fB\-jigdo-force-md5\fR disk_path_pattern
|
|
|
|
Outdated alias of \-jigdo\-force\-checksum.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-jigdo-exclude\fR disk_path_pattern
|
|
|
|
Add a regular expression pattern which will get compared
|
|
|
|
with the absolute disk_path of any data file. A match causes the file to
|
|
|
|
stay in .template in any case.
|
|
|
|
.TP
|
|
|
|
\fB\-jigdo-map\fR To=From
|
|
|
|
Add a string pair of the form To=From to the parameter list.
|
|
|
|
If a data file gets listed in the .jigdo file, then it is referred by the
|
2019-11-24 12:34:30 +00:00
|
|
|
file address from its line in the checksum file. This file address gets checked
|
2011-03-05 14:15:32 +00:00
|
|
|
whether it begins with the From string. If so, then this string will be
|
|
|
|
replaced by the To string and a ':' character, before it goes into the .jigdo
|
|
|
|
file. The From string should end by a '/' character.
|
|
|
|
.TP
|
2019-11-24 12:34:30 +00:00
|
|
|
\fB\-checksum-list\fR disk_path
|
|
|
|
Set the disk_path where to find the checksum file file with
|
|
|
|
symbolic file addresses and checksums according to \-jigdo\-checksum\-algorithm.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-md5-list\fR disk_path
|
2019-11-24 12:34:30 +00:00
|
|
|
Outdated alias of \-checksum\-list.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-jigdo-template-compress\fR "gzip"|"bzip2"
|
|
|
|
Choose one of "bzip2" or "gzip" for the compression of
|
|
|
|
the template file. The jigdo file is put out uncompressed.
|
|
|
|
.TP
|
|
|
|
\fB\-checksum_algorithm_iso\fR list_of_names
|
|
|
|
Choose one or more of "md5", "sha1", "sha256", "sha512"
|
|
|
|
for the auxiliary "# Image Hex" checksums in the .jigdo file. The list_of_names
|
|
|
|
may e.g. look like "md5,sha1,sha512". Value "all" chooses all available
|
|
|
|
algorithms.
|
|
|
|
Note that MD5 stays always enabled.
|
|
|
|
.TP
|
|
|
|
\fB\-checksum_algorithm_template\fR list_of_names
|
|
|
|
Choose the algorithms for the "# Template Hex" checksums in the .jigdo file.
|
2011-05-13 17:49:28 +00:00
|
|
|
The rules for list_of_names are the same as with \-checksum_algorithm_iso.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
.B Miscellaneous options:
|
|
|
|
.TP
|
|
|
|
\fB\-print-size\fR
|
|
|
|
Print to stdandard output the foreseeable number of 2048 byte blocks in
|
|
|
|
the emerging ISO image. Do not produce this image.
|
|
|
|
.br
|
|
|
|
The result depends on several settings.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
If option \-\-emul\-toc is given, then padding (see \-pad) is not
|
|
|
|
counted as part of the image size. In this case either use \-no\-pad or
|
2011-03-05 14:15:32 +00:00
|
|
|
add 150 (= 300 KiB) to the resulting number.
|
2013-05-13 12:40:48 +00:00
|
|
|
.br
|
|
|
|
If mkisofs emulation ends after option \-print\-size, then the properties of
|
|
|
|
the most recently specified boot image file cannot be edited by subsequent
|
|
|
|
xorriso commands.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB--no_rc\fR
|
|
|
|
Only if used as first argument this option
|
2011-06-17 14:39:24 +00:00
|
|
|
prevents reading and interpretation of startup files. See section FILES below.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-help\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
List supported options to stderr. Original mkisofs options bear their
|
|
|
|
original mkisofs description texts.
|
|
|
|
.TP
|
|
|
|
\fB\-quiet\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Suppress most messages of the program run, except those which indicate
|
|
|
|
problems or errors.
|
|
|
|
.TP
|
2013-06-02 11:27:44 +00:00
|
|
|
\fB\-gui\fR
|
|
|
|
.br
|
|
|
|
Increase the frequency of pacifier messages while writing an ISO image.
|
|
|
|
.TP
|
2012-04-11 16:32:21 +00:00
|
|
|
\fB\-log-file\fR disk_path
|
|
|
|
.br
|
|
|
|
Truncate file disk_path to 0 size and redirect to it all messages which would
|
|
|
|
normally appear on stderr. \-log\-file with empty text as disk_path re\-enables
|
|
|
|
output to stderr.
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
\fB\-v\fR
|
2011-03-10 07:15:51 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
Enable the output of informational program messages.
|
|
|
|
.TP
|
|
|
|
\fB\-verbose\fR
|
2011-05-13 17:49:28 +00:00
|
|
|
Alias of \-v.
|
2011-03-05 14:15:32 +00:00
|
|
|
.TP
|
|
|
|
\fB\-version\fR
|
|
|
|
Print to standard output a text that begins with
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
"mkisofs 2.01\-Emulation Copyright (C)"
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
and to standard error the version information of xorriso.
|
|
|
|
.br
|
|
|
|
.SH EXAMPLES
|
|
|
|
.SS
|
|
|
|
.B Overview of examples:
|
|
|
|
A simple image production run
|
|
|
|
.br
|
|
|
|
Set ISO image paths by -graft-points
|
|
|
|
.br
|
|
|
|
Perform multi-session runs
|
|
|
|
.br
|
|
|
|
Let xorrisofs work underneath growisofs
|
|
|
|
.br
|
|
|
|
Incremental backup of a few directory trees
|
|
|
|
.br
|
|
|
|
Incremental backup with accumulated trees
|
|
|
|
.br
|
2015-06-30 14:41:14 +00:00
|
|
|
Create bootable images for PC-BIOS and EFI
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.SS
|
|
|
|
.B A simple image production run
|
|
|
|
A prepared file tree in directory ./for_iso gets copied into the root
|
2011-05-13 17:49:28 +00:00
|
|
|
directory of the ISO image. File permissions get set to read\-only for
|
2011-03-05 14:15:32 +00:00
|
|
|
everybody.
|
|
|
|
Joliet attributes for Microsoft systems get added.
|
|
|
|
The resulting image gets written as data file ./image.iso on disk.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs \-r \-J \-o ./image.iso ./for_iso
|
2011-03-05 14:15:32 +00:00
|
|
|
.SS
|
|
|
|
.B Set ISO image paths by -graft-points
|
2011-05-13 17:49:28 +00:00
|
|
|
Without option \-graft\-points each given disk file is copied into the root
|
2011-03-05 14:15:32 +00:00
|
|
|
directory of the ISO image, maintaining its name. If a directory is given,
|
2011-05-13 17:49:28 +00:00
|
|
|
then its files and sub\-directories are copied into the root directory,
|
2011-03-05 14:15:32 +00:00
|
|
|
maintaining their names.
|
|
|
|
.br
|
|
|
|
$ xorrisofs ... /home/me/datafile /tmp/directory
|
|
|
|
.br
|
|
|
|
yields in the ISO image root directory:
|
|
|
|
.br
|
|
|
|
/datafile
|
|
|
|
.br
|
|
|
|
/file_1_from_directory
|
|
|
|
.br
|
|
|
|
...
|
|
|
|
.br
|
|
|
|
/file_N_from_directory
|
|
|
|
.br
|
|
|
|
.sp 1
|
2011-05-13 17:49:28 +00:00
|
|
|
With option \-graft\-points it is possible to put files and directories to
|
2011-03-05 14:15:32 +00:00
|
|
|
arbitrary paths in the ISO image.
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs ... \-graft\-points /home/me/datafile /dir=/tmp/directory
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
yields in the ISO image root directory:
|
|
|
|
.br
|
|
|
|
/datafile
|
|
|
|
.br
|
|
|
|
/dir
|
|
|
|
.br
|
|
|
|
Eventually needed parent directories in
|
|
|
|
the image will be created automatically:
|
|
|
|
.br
|
|
|
|
/datafiles/file1=/home/me/datafile
|
|
|
|
.br
|
2011-03-06 18:37:52 +00:00
|
|
|
yields in the ISO image:
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
/datafiles/file1
|
|
|
|
.br
|
|
|
|
The attributes of directory /datafiles get copied from /home/me on disk.
|
|
|
|
.br
|
|
|
|
.sp 1
|
|
|
|
Normally one should avoid = and \\ characters in the ISO part of a pathspec.
|
|
|
|
But if it must be, one may escape them:
|
|
|
|
.br
|
|
|
|
/with_\\=_and_\\\\/file=/tmp/directory/file
|
|
|
|
.br
|
2011-03-06 18:37:52 +00:00
|
|
|
yields in the ISO image:
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
/with_=_and_\\/file
|
|
|
|
.SS
|
|
|
|
.B Perform multi-session runs
|
2011-05-13 17:49:28 +00:00
|
|
|
This example works for multi\-session media only:
|
|
|
|
CD\-R[W], DVD\-R[W], DVD+R, BD\-R.
|
|
|
|
Add cdrskin option \-\-grow_overwriteable_iso
|
|
|
|
to all \-as cdrecord runs
|
2019-10-28 14:34:56 +00:00
|
|
|
in order to enable multi\-session emulation on overwritable media.
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
The first session is written like this:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs \-graft\-points \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
/tree1=prepared_for_iso/tree1 \\
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
| xorriso \-as cdrecord \-v dev=/dev/sr0 blank=fast \-multi \-eject \-
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2018-11-11 13:43:43 +00:00
|
|
|
Follow\-up sessions are written like this (the run of dd is only to give demons
|
|
|
|
a chance to spoil it):
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ m=$(xorriso \-as cdrecord dev=/dev/sr0 \-msinfo)
|
2018-11-11 13:43:43 +00:00
|
|
|
.br
|
|
|
|
$ dd if=/dev/sr0 count=1 >/dev/null 2>&1
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs \-M /dev/sr0 \-C $m \-graft\-points \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-03-09 12:48:21 +00:00
|
|
|
/tree2=prepared_for_iso/tree2 \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
| xorriso \-as cdrecord \-v dev=/dev/sr0 \-waiti \-multi \-eject \-
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2018-11-11 13:43:43 +00:00
|
|
|
Always eject the drive tray between sessions.
|
|
|
|
.br
|
|
|
|
The run of xorriso \-as mkisofs will read old sessions via the CD\-ROM
|
|
|
|
driver of /dev/sr0. This driver might not be aware of the changed content
|
|
|
|
as long as the medium is not loaded again. In this case the previous session
|
|
|
|
would not be properly assessed by xorriso and the new session would contain
|
|
|
|
only the newly added files.
|
|
|
|
.br
|
|
|
|
Some systems have not enough patience with automatic tray loading and some
|
|
|
|
demons may interfere with a first CD\-ROM driver read attempt from a freshly
|
|
|
|
loaded medium.
|
|
|
|
.br
|
|
|
|
When loading the tray manually, wait 10 seconds after the drive has stopped
|
|
|
|
blinking.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2018-11-11 13:43:43 +00:00
|
|
|
A safe automatic way seems to be a separate run of xorriso for loading
|
|
|
|
the tray with proper waiting, and a subsequent run of dd which shall offer
|
|
|
|
itself to any problems caused by demons assessing the changed drive status.
|
|
|
|
If this does not help, insert a run of "sleep 10" between xorriso and dd.
|
2011-03-05 14:15:32 +00:00
|
|
|
.SS
|
|
|
|
.B Let xorrisofs work underneath growisofs
|
2011-05-13 17:49:28 +00:00
|
|
|
growisofs expects an ISO formatter program which understands options \-C and
|
|
|
|
\-M. A variable is defined to override the hardcoded default name.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
$ export MKISOFS="xorrisofs"
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ growisofs \-Z /dev/dvd /some/files
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ growisofs \-M /dev/dvd /more/files
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
If no "xorrisofs" is available on your system, then you will have to create
|
|
|
|
a link pointing to the xorriso binary and tell growisofs to use it. E.g. by:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ ln \-s $(which xorriso) "$HOME/xorrisofs"
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
$ export MKISOFS="$HOME/xorrisofs"
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
One may quit mkisofs emulation by argument "\-\-" and make
|
2011-03-05 14:15:32 +00:00
|
|
|
use of all xorriso commands. growisofs dislikes options which
|
2011-05-13 17:49:28 +00:00
|
|
|
start with "\-o" but \-outdev must be set to "\-".
|
2011-03-05 14:15:32 +00:00
|
|
|
So use "outdev" instead:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ growisofs \-Z /dev/dvd \-\-for_backup \-\- \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
outdev \- \-update_r /my/files /files
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ growisofs \-M /dev/dvd \-\-for_backup \-\- \\
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
outdev \- \-update_r /my/files /files
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
Note that \-\-for_backup is given in the mkisofs emulation.
|
2011-03-09 12:48:21 +00:00
|
|
|
To preserve the recorded extra data it must already be in effect, when
|
|
|
|
the emulation loads the image.
|
2011-03-05 14:15:32 +00:00
|
|
|
.SS
|
|
|
|
.B Incremental backup of a few directory trees
|
|
|
|
This changes the directory trees /open_source_project and /personal_mail
|
|
|
|
in the ISO image so that they become exact copies of their disk counterparts.
|
|
|
|
ISO file objects get created, deleted or get their attributes adjusted
|
|
|
|
accordingly.
|
|
|
|
.br
|
|
|
|
ACL, xattr, hard links and MD5 checksums will be recorded.
|
|
|
|
It is expected that inode numbers in the disk filesystem are persistent
|
|
|
|
over cycles of mounting and booting.
|
|
|
|
Files with names matching *.o or *.swp get excluded explicitly.
|
|
|
|
.br
|
|
|
|
.sp 1
|
2011-10-26 14:09:51 +00:00
|
|
|
To be used several times on the same medium, whenever an update of
|
|
|
|
the two disk trees to the medium is desired. Begin with a blank medium and
|
|
|
|
update it until he run fails gracefully due to lack of remaining space on
|
2011-03-05 14:15:32 +00:00
|
|
|
the old one.
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2018-11-11 13:43:43 +00:00
|
|
|
Always eject the drive tray between sessions.
|
|
|
|
A run of dd shall give demons a chance to spoil the first read on freshly
|
|
|
|
loaded media.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ msinfo=$(xorriso \-as cdrecord dev=/dev/sr0 \-msinfo)
|
2018-11-11 13:43:43 +00:00
|
|
|
.br
|
|
|
|
$ dd if=/dev/sr0 count=1 >/dev/null 2>&1
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
$ load_opts=
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ test \-n "$msinfo" && load_opts="\-M /dev/sr0 \-C $msinfo"
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs $load_opts \-o \- \-\-for_backup \-m '*.o' \-m '*.swp' \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-V PROJ_MAIL_"$(date '+%Y_%m_%d_%H%M%S')" \-graft\-points \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-old\-root / \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
/projects=/home/thomas/projects \\
|
|
|
|
.br
|
|
|
|
/personal_mail=/home/thomas/personal_mail \\
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
| xorriso \-as cdrecord dev=/dev/sr0 \-v \-multi \-waiti \-eject \-
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.sp 1
|
|
|
|
This makes sense if the full backup leaves substantial remaining capacity
|
|
|
|
on media and if the expected changes are much smaller than the full backup.
|
|
|
|
.br
|
|
|
|
.sp 1
|
2011-05-13 17:49:28 +00:00
|
|
|
\fBBetter do not use your youngest backup for \-old\-root\fR.
|
2011-03-05 14:15:32 +00:00
|
|
|
Have at least two media which you use alternatingly. So only older backups
|
|
|
|
get endangered by the new write operation, while the newest backup is
|
2011-10-26 14:09:51 +00:00
|
|
|
stored safely on a different medium.
|
|
|
|
.br
|
|
|
|
Always have a blank medium ready to perform a full backup in case the update
|
|
|
|
attempt fails due to insufficient remaining capacity. This failure will
|
|
|
|
not spoil the old medium, of course.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.sp 1
|
|
|
|
If inode numbers on disk are not persistent, then use
|
2011-05-13 17:49:28 +00:00
|
|
|
option \-\-old\-root\-no\-ino .
|
2011-03-05 14:15:32 +00:00
|
|
|
In this case an update run will compare recorded MD5
|
|
|
|
sums against the current file content on hard disk.
|
|
|
|
.br
|
|
|
|
.sp 1
|
|
|
|
With \fBmount\fR option \fB\-o "sbsector="\fR on GNU/Linux
|
2015-07-31 17:12:51 +00:00
|
|
|
or \fB\-s\fR on FreeBSD or NetBSD
|
2011-03-05 14:15:32 +00:00
|
|
|
it is possible to access the session trees which represent the older backup
|
|
|
|
versions. With CD media, GNU/Linux mount accepts session numbers directly by
|
|
|
|
its option "session=".
|
|
|
|
.br
|
2019-10-28 14:34:56 +00:00
|
|
|
Multi\-session media and most overwritable media written by xorriso can tell
|
2011-05-13 17:49:28 +00:00
|
|
|
the sbsectors of their sessions by xorriso option \-toc:
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorriso \-dev /dev/sr0 \-toc
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
xorriso can print the matching mount command for a session number:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorriso \-mount_cmd /dev/sr0 session 12 /mnt
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
or for a volume id that matches a search expression:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorriso \-mount_cmd /dev/sr0 volid '*2008_12_05*' /mnt
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Both yield on standard output something like:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
mount \-t iso9660 \-o nodev,noexec,nosuid,ro,sbsector=1460256 '/dev/sr0' '/mnt'
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
The superuser may let xorriso execute the mount command directly:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
# osirrox \-mount /dev/sr0 "volid" '*2008_12_05*' /mnt
|
2011-03-05 14:15:32 +00:00
|
|
|
.SS
|
|
|
|
.B Incremental backup with accumulated trees
|
|
|
|
Solaris does not offer the option to mount older sessions.
|
|
|
|
In order to keep them accessible, one may map all files to a file tree under
|
|
|
|
a session directory and accumulate those directories from session to session.
|
2011-05-13 17:49:28 +00:00
|
|
|
The \-root tree is cloned from the \-old\-root tree before it gets
|
2011-03-05 14:15:32 +00:00
|
|
|
compared with the appropriate trees on disk.
|
|
|
|
.br
|
|
|
|
This demands to know the previously used session directory name.
|
|
|
|
.br
|
|
|
|
With the first session:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs \-root /session1 \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-o \- \-\-for_backup \-m '*.o' \-m '*.swp' \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-V PROJ_MAIL_"$(date '+%Y_%m_%d_%H%M%S')" \-graft\-points \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
/projects=/home/thomas/projects \\
|
|
|
|
.br
|
|
|
|
/personal_mail=/home/thomas/personal_mail \\
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
| xorriso \-as cdrecord dev=/dev/sr0 \-v blank=as_needed \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-multi \-waiti \-eject \-
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
.sp 1
|
2011-05-13 17:49:28 +00:00
|
|
|
With the second session, option \-old\-root refers to /session1 and the
|
|
|
|
new \-root is /session2.
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2018-11-11 13:43:43 +00:00
|
|
|
Always eject the drive tray between sessions.
|
|
|
|
A run of dd shall give demons a chance to spoil the first read on freshly
|
|
|
|
loaded media.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ msinfo=$(xorriso \-as cdrecord dev=/dev/sr0 \-msinfo)
|
2018-11-11 13:43:43 +00:00
|
|
|
.br
|
|
|
|
$ dd if=/dev/sr0 count=1 >/dev/null 2>&1
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
$ load_opts=
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ test \-n "$msinfo" && load_opts="\-M /dev/sr0 \-C $msinfo"
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs $load_opts \-root /session2 \-old\-root /session1 \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-o \- \-\-for_backup \-m '*.o' \-m '*.swp' \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-V PROJ_MAIL_"$(date '+%Y_%m_%d_%H%M%S')" \-graft\-points \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
/projects=/home/thomas/projects \\
|
|
|
|
.br
|
|
|
|
/personal_mail=/home/thomas/personal_mail \\
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
| xorriso \-as cdrecord dev=/dev/sr0 \-v \-multi \-waiti \-eject \-
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
With the third session, option \-old\-root refers to /session2.
|
|
|
|
The new \-root is /session3. And so on.
|
2011-03-05 14:15:32 +00:00
|
|
|
.SS
|
2015-06-30 14:41:14 +00:00
|
|
|
.B Create bootable images for PC-BIOS and EFI
|
|
|
|
The SYSLINUX/ISOLINUX boot loader suite is popular for booting PC\-BIOS.
|
2011-03-05 14:15:32 +00:00
|
|
|
The ISOLINUX wiki prescribes to create on disk a directory ./CD_root and
|
|
|
|
to copy all desired files underneath that directory. Especially file
|
|
|
|
isolinux.bin shall be copied to ./CD_root/isolinux/isolinux.bin .
|
|
|
|
This is the boot image file.
|
|
|
|
.br
|
2011-05-17 09:42:51 +00:00
|
|
|
The prescribed mkisofs options can be used unchanged with \fBxorrisofs\fR:
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs \-o output.iso \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-b isolinux/isolinux.bin \-c isolinux/boot.cat \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-no\-emul\-boot \-boot\-load\-size 4 \-boot\-info\-table \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
./CD_root
|
|
|
|
.br
|
2011-03-09 12:48:21 +00:00
|
|
|
Put it on CD by a burn program. E.g.:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorriso \-as cdrecord \-v dev=/dev/sr0 blank=as_needed output.iso
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
.sp 1
|
|
|
|
The image from above example will boot from CD, DVD or BD, but not from
|
2011-05-13 17:49:28 +00:00
|
|
|
USB stick or other hard\-disk\-like devices. This can be done by help of an
|
2011-03-05 14:15:32 +00:00
|
|
|
isohybrid MBR. Syslinux provides matching template files
|
|
|
|
as isohdp[fp]x*.bin . E.g. /usr/lib/syslinux/isohdpfx.bin .
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
If a few hundred KB of size do not matter, then option \-partition_offset
|
2011-03-05 14:15:32 +00:00
|
|
|
can be used to create a partition table where partition 1 starts not
|
|
|
|
at block 0. This facilitates later manipulations of the USB stick by
|
|
|
|
tools for partitioning and formatting.
|
|
|
|
.br
|
|
|
|
The image from the following example will be prepared for booting via MBR
|
2015-06-30 14:41:14 +00:00
|
|
|
and its first partition will start at hard disk block 64.
|
2011-03-09 12:48:21 +00:00
|
|
|
.br
|
|
|
|
It will also boot from optical media.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
$ xorrisofs \-o output.iso \\
|
2013-08-01 09:55:20 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-b isolinux/isolinux.bin \-c isolinux/boot.cat \\
|
2013-08-01 09:55:20 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-no\-emul\-boot \-boot\-load\-size 4 \-boot\-info\-table \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-isohybrid\-mbr /usr/lib/syslinux/isohdpfx.bin \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
\-partition_offset 16 \\
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
./CD_root
|
|
|
|
.br
|
|
|
|
Become superuser and copy the image to the unpartitioned base device file
|
|
|
|
of the USB stick. On GNU/Linux this is e.g. /dev/sdb, not /dev/sdb1.
|
|
|
|
.br
|
|
|
|
CAUTION:
|
2011-06-17 14:39:24 +00:00
|
|
|
This will overwrite any partitioning on the USB stick and make
|
2011-03-05 14:15:32 +00:00
|
|
|
remaining data unaccessible.
|
|
|
|
.br
|
|
|
|
So first make sure you got the correct address of the intended device.
|
|
|
|
E.g. by reading 100 MiB data from it and watching it blinking:
|
|
|
|
.br
|
|
|
|
# dd bs=2K if=/dev/sdb count=50K >/dev/null
|
|
|
|
.br
|
|
|
|
Now copy the image onto it
|
|
|
|
.br
|
|
|
|
# dd bs=2K if=output.iso of=/dev/sdb
|
|
|
|
.br
|
2015-06-30 14:41:14 +00:00
|
|
|
.sp 1
|
|
|
|
Now for EFI:
|
|
|
|
.br
|
|
|
|
The boot image file has to be the image of an EFI System Partition,
|
|
|
|
i.e. a FAT filesystem with directory /EFI/BOOT and boot files with
|
|
|
|
EFI prescribed names: BOOTIA32.EFI for 32 bit x86,
|
|
|
|
BOOTx64.EFI for 64 bit AMD/x86 (in UEFI\-2.4 there is indeed a lower case "x"),
|
|
|
|
BOOTAA64.EFI for 64 bit ARM. The software in the FAT filesystem should be
|
|
|
|
able to find and inspect the ISO filesystem for boot loader configuration and
|
|
|
|
start of operating system. GRUB2 program grub\-mkimage can produce such a
|
|
|
|
FAT filesystem with suitable content, which then uses further GRUB2
|
|
|
|
software from the ISO filesystem.
|
|
|
|
.br
|
|
|
|
EFI boot equipment may be combined with above ISOLINUX isohybrid for PC\-BIOS
|
|
|
|
in a not really UEFI\-2.4 compliant way, which obviously works well. It yields
|
|
|
|
MBR and GPT partition tables, both with nested partitions.
|
|
|
|
Assumed the EFI System Partition image is ready as ./CD_root/boot/grub/efi.img,
|
|
|
|
add the following options before the directory address ./CD_root:
|
|
|
|
.br
|
|
|
|
\-eltorito\-alt\-boot \-e 'boot/grub/efi.img' \-no\-emul\-boot \\
|
|
|
|
.br
|
|
|
|
\-isohybrid\-gpt\-basdat \\
|
|
|
|
.br
|
|
|
|
More compliant with UEFI\-2.4 is to decide for either MBR or GPT and to
|
|
|
|
append a copy of the EFI System Partition in order to avoid overlap of
|
|
|
|
ISO partition and EFI partition. Here for MBR:
|
|
|
|
.br
|
|
|
|
\-eltorito\-alt\-boot \-e 'boot/grub/efi.img' \-no\-emul\-boot \\
|
|
|
|
\-append_partition 2 0xef ./CD_root/boot/grub/efi.img \\
|
|
|
|
.br
|
|
|
|
The resulting ISOs are supposed to boot from optical media and USB stick.
|
|
|
|
One may omit option \-eltorito\-alt\-boot if no option \-b is used to make
|
|
|
|
the ISO bootable via PC\-BIOS.
|
|
|
|
.br
|
|
|
|
.sp 1
|
|
|
|
For ISOs with pure GRUB2 boot equipment consider to use GRUB2 tool
|
|
|
|
grub\-mkrescue as frontend to xorrisofs.
|
|
|
|
.br
|
|
|
|
.sp 1
|
|
|
|
If you have a bootable ISO filesystem and want to know its equipment plus
|
|
|
|
a proposal how to reproduce it, try:
|
|
|
|
.br
|
|
|
|
$ xorriso \-hfsplus on \-indev IMAGE.iso \\
|
|
|
|
\-report_el_torito plain \-report_system_area plain \\
|
|
|
|
\-print "" \-print "======= Proposal for xorrisofs options:" \\
|
|
|
|
\-report_el_torito as_mkisofs
|
|
|
|
.br
|
|
|
|
.br
|
2011-03-05 14:15:32 +00:00
|
|
|
.SH FILES
|
|
|
|
.SS
|
|
|
|
.B Startup files:
|
|
|
|
.br
|
2011-05-17 09:42:51 +00:00
|
|
|
If not \-\-no_rc is given as the first argument then \fBxorrisofs\fR
|
2011-03-05 14:15:32 +00:00
|
|
|
attempts on startup to read and execute lines from the following files:
|
|
|
|
.br
|
|
|
|
/etc/default/xorriso
|
|
|
|
.br
|
|
|
|
/etc/opt/xorriso/rc
|
|
|
|
.br
|
|
|
|
/etc/xorriso/xorriso.conf
|
|
|
|
.br
|
|
|
|
$HOME/.xorrisorc
|
|
|
|
.br
|
|
|
|
The files are read in the sequence given here, but none of them is required
|
2011-05-17 09:42:51 +00:00
|
|
|
to exist. The lines are not interpreted as \fBxorrisofs\fR options but
|
|
|
|
as generic xorriso commands. See man xorriso.
|
2011-03-05 14:15:32 +00:00
|
|
|
.PP
|
|
|
|
After the xorriso startup files, the program tries one by one to open for
|
|
|
|
reading:
|
|
|
|
.br
|
|
|
|
./.mkisofsrc
|
|
|
|
.br
|
|
|
|
$MKISOFSRC
|
|
|
|
.br
|
|
|
|
$HOME/.mkisofsrc
|
|
|
|
.br
|
|
|
|
$(dirname $0)/.mkisofsrc
|
|
|
|
.br
|
|
|
|
On success it interprets the file content and does not try further files.
|
2011-05-13 17:49:28 +00:00
|
|
|
The last address is used only if start argument 0 has a non\-trivial dirname.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
The reader currently interprets the following NAME=VALUE pairs:
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
APPI default for \-A
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
PUBL default for \-publisher
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
SYSI default for \-sysid
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
VOLI default for \-V
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
VOLS default for \-volset
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Any other lines will be silently ignored.
|
|
|
|
.br
|
2016-08-16 13:18:31 +00:00
|
|
|
.SH ENVIRONMENT
|
|
|
|
The following environment variables influence the program behavior:
|
|
|
|
.br
|
|
|
|
HOME is used to find xorriso and mkisofs startup files.
|
|
|
|
.br
|
|
|
|
MKISOFSRC may be used to point the program to a mkisofs startup file.
|
|
|
|
.br
|
|
|
|
SOURCE_DATE_EPOCH belongs to the specs of reproducible\-builds.org.
|
|
|
|
It is supposed to be either undefined or to contain a decimal number
|
|
|
|
which tells the seconds since january 1st 1970. If it contains a number,
|
2016-09-12 09:16:59 +00:00
|
|
|
then it is used as time value to set the default of
|
|
|
|
\-\-modification\-date=.
|
|
|
|
\-\-gpt_disk_guid defaults to "modification\-date".
|
|
|
|
The default of \-\-set_all_file_dates is then "set_to_mtime".
|
2019-04-18 09:28:35 +00:00
|
|
|
Further the "now" time for ISO nodes without disk source is then set to
|
|
|
|
the SOURCE_DATE_EPOCH value.
|
2016-09-12 09:16:59 +00:00
|
|
|
.br
|
2016-08-16 13:18:31 +00:00
|
|
|
Startup files and program options can override the effect of SOURCE_DATE_EPOCH.
|
|
|
|
.SS
|
2011-03-05 14:15:32 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.TP
|
|
|
|
For generic xorriso command mode
|
|
|
|
.BR xorriso(1)
|
|
|
|
.TP
|
2011-10-25 10:39:10 +00:00
|
|
|
For the cdrecord emulation of xorriso
|
|
|
|
.BR xorrecord(1)
|
|
|
|
.TP
|
2011-03-05 14:15:32 +00:00
|
|
|
For mounting xorriso generated ISO 9660 images (-t iso9660)
|
|
|
|
.BR mount(8)
|
|
|
|
.TP
|
|
|
|
Other programs which produce ISO 9660 images
|
|
|
|
.BR mkisofs(8),
|
|
|
|
.BR genisoimage(8)
|
|
|
|
.TP
|
|
|
|
Programs which burn sessions to optical media
|
|
|
|
.BR growisofs(1),
|
|
|
|
.BR cdrecord(1),
|
|
|
|
.BR wodim(1),
|
|
|
|
.BR cdrskin(1),
|
|
|
|
.BR xorriso(1)
|
|
|
|
.TP
|
|
|
|
ACL and xattr
|
|
|
|
.BR getfacl(1),
|
|
|
|
.BR setfacl(1),
|
|
|
|
.BR getfattr(1),
|
|
|
|
.BR setfattr(1)
|
|
|
|
.TP
|
|
|
|
MD5 checksums
|
|
|
|
.BR md5sum(1)
|
2011-08-23 10:42:01 +00:00
|
|
|
.TP
|
|
|
|
On FreeBSD the commands for xattr and MD5 differ
|
|
|
|
.BR getextattr(8),
|
|
|
|
.BR setextattr(8),
|
|
|
|
.BR md5(1)
|
2011-05-17 09:42:51 +00:00
|
|
|
.SH BUGS
|
2011-05-18 07:03:39 +00:00
|
|
|
To report bugs, request help, or suggest enhancements for \fBxorriso\fR,
|
|
|
|
please send electronic mail to the public list <bug\-xorriso@gnu.org>.
|
|
|
|
If more privacy is desired, mail to <scdbackup@gmx.net>.
|
2011-05-17 09:42:51 +00:00
|
|
|
.br
|
|
|
|
Please describe what you expect \fBxorriso\fR to do,
|
2015-07-31 17:12:51 +00:00
|
|
|
the program arguments or dialog commands by which you tried to achieve it,
|
2011-05-17 09:42:51 +00:00
|
|
|
the messages of \fBxorriso\fR, and the undesirable outcome of your
|
|
|
|
program run.
|
|
|
|
.br
|
|
|
|
Expect to get asked more questions before solutions can be proposed.
|
2011-03-05 14:15:32 +00:00
|
|
|
.SH AUTHOR
|
|
|
|
Thomas Schmitt <scdbackup@gmx.net>
|
|
|
|
.br
|
2011-05-13 17:49:28 +00:00
|
|
|
for libburnia\-project.org
|
2011-03-05 14:15:32 +00:00
|
|
|
.SH COPYRIGHT
|
2024-05-11 11:06:20 +00:00
|
|
|
Copyright (c) 2011 \- 2024 Thomas Schmitt
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Permission is granted to distribute this text freely. It shall only be
|
|
|
|
modified in sync with the technical properties of xorriso. If you make use
|
|
|
|
of the license to derive modified versions of xorriso then you are entitled
|
|
|
|
to modify this text under that same license.
|
|
|
|
.SH CREDITS
|
2011-05-17 09:42:51 +00:00
|
|
|
\fBxorrisofs\fR is in part based on work by Vreixo Formoso who provides
|
|
|
|
libisofs together with Mario Danic who also leads the libburnia team.
|
2012-06-06 18:48:26 +00:00
|
|
|
Vladimir Serbinenko contributed the HFS+ filesystem code and related knowledge.
|
2011-03-05 14:15:32 +00:00
|
|
|
.br
|
|
|
|
Compliments towards Joerg Schilling whose cdrtools served me for ten years.
|