2008-01-17 19:28:38 +00:00
|
|
|
------------------------------------------------------------------------------
|
2010-02-12 15:27:10 +00:00
|
|
|
Contribution of libburnia-project.org to the GNU Operating System
|
2008-01-17 19:28:38 +00:00
|
|
|
------------------------------------------------------------------------------
|
2010-02-12 15:27:10 +00:00
|
|
|
GNU xorriso. By Thomas Schmitt <scdbackup@gmx.net>
|
|
|
|
Derived from and supported by libburnia-project.org, published via:
|
2010-02-22 16:40:16 +00:00
|
|
|
http://www.gnu.org/software/xorriso/xorriso_eng.html
|
2019-10-27 16:51:21 +00:00
|
|
|
http://www.gnu.org/software/xorriso/xorriso-1.5.3.tar.gz
|
2010-02-12 15:27:10 +00:00
|
|
|
Provided under GPL version 3 or later. No warranty.
|
2008-01-17 19:28:38 +00:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
2009-08-29 18:18:56 +00:00
|
|
|
xorriso is a program which copies file objects from POSIX compliant
|
2008-01-17 19:28:38 +00:00
|
|
|
filesystems into Rock Ridge enhanced ISO 9660 filesystems and allows
|
|
|
|
session-wise manipulation of such filesystems. It can load the management
|
|
|
|
information of existing ISO images and it writes the session results to
|
|
|
|
optical media or to filesystem objects.
|
2008-06-22 14:04:05 +00:00
|
|
|
Vice versa xorriso is able to restore file objects from ISO 9660 filesystems.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
A special property of xorriso is that it needs neither an external ISO 9660
|
|
|
|
formatter program nor an external burn program for CD or DVD but rather
|
|
|
|
incorporates the libraries of libburnia-project.org .
|
|
|
|
|
2010-06-07 18:13:52 +00:00
|
|
|
Currently it is fully supported on GNU/Linux with kernels >= 2.4,
|
|
|
|
on FreeBSD with ATAPI/CAM support enabled in the kernel, see atapicam(4),
|
2014-02-12 18:59:54 +00:00
|
|
|
on OpenSolaris (tested with kernel 5.11),
|
|
|
|
on NetBSD (tested with 6.1.2 and 6.1.3).
|
2009-03-16 12:07:24 +00:00
|
|
|
On other X/Open compliant systems there will only be POSIX i/o with disk
|
|
|
|
file objects, but no direct MMC operation on CD/DVD/BD drives.
|
|
|
|
|
2008-01-19 13:49:17 +00:00
|
|
|
By using this software you agree to the disclaimer at the end of this text:
|
|
|
|
"... without even the implied warranty ..."
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
Compilation, First Glimpse, Installation
|
|
|
|
|
2010-03-30 09:30:40 +00:00
|
|
|
The most simple way to get xorriso from source code is the GNU xorriso tarball.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
Prerequisites:
|
2009-12-08 14:52:25 +00:00
|
|
|
The tarball contains everything that is needed except the following system
|
2009-03-01 11:39:18 +00:00
|
|
|
components:
|
|
|
|
libc, libpthread
|
2014-12-21 22:26:33 +00:00
|
|
|
plus on Solaris: libvolmgt
|
2010-01-25 15:02:59 +00:00
|
|
|
plus on FreeBSD: libiconv, libcam, IDE and SATA drives need atapicam
|
2009-03-01 11:39:18 +00:00
|
|
|
Optional at compile time are:
|
2014-06-15 12:56:43 +00:00
|
|
|
libreadline and the readline-dev headers, or libedit and its header,
|
|
|
|
make dialog mode more convenient.
|
2009-04-14 09:19:37 +00:00
|
|
|
zlib and zlib-devel allow zisofs compression.
|
2010-06-10 18:15:56 +00:00
|
|
|
on GNU/Linux: libacl and libacl-devel allow getting and setting ACLs.
|
2009-03-01 11:39:18 +00:00
|
|
|
If they were present at compile time, then the optional libraries have to
|
|
|
|
be present at runtime, too.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
2019-10-27 16:51:21 +00:00
|
|
|
Obtain xorriso-1.5.3.tar.gz, take it to a directory of your choice and do:
|
2008-01-17 19:28:38 +00:00
|
|
|
|
2019-10-27 16:51:21 +00:00
|
|
|
tar xzf xorriso-1.5.3.tar.gz
|
|
|
|
cd xorriso-1.5.3
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
Within that directory execute:
|
|
|
|
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
|
|
|
|
This will produce a binary named
|
|
|
|
./xorriso/xorriso
|
|
|
|
|
2009-12-07 08:20:19 +00:00
|
|
|
If you want xorriso to report a "Build timestamp" with its option -version :
|
|
|
|
make buildstamped
|
|
|
|
|
|
|
|
You may strip the binary to reduce it in size
|
2008-01-18 10:19:36 +00:00
|
|
|
strip ./xorriso/xorriso
|
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
You may copy or move it to a directory where it can be found by the shell,
|
2008-12-01 20:48:49 +00:00
|
|
|
or you may execute xorriso at the place where it was built,
|
|
|
|
or you may execute as superuser:
|
2008-01-17 19:28:38 +00:00
|
|
|
make install
|
|
|
|
|
2008-01-18 10:19:36 +00:00
|
|
|
For general concepts, options and usage examples see
|
2010-03-30 09:30:40 +00:00
|
|
|
info xorriso
|
2011-03-10 07:15:51 +00:00
|
|
|
info xorrisofs
|
2011-10-25 10:39:10 +00:00
|
|
|
info xorrecord
|
2012-07-20 18:58:07 +00:00
|
|
|
or
|
2008-01-18 10:19:36 +00:00
|
|
|
man 1 xorriso
|
2011-03-10 07:15:51 +00:00
|
|
|
man 1 xorrisofs
|
2011-10-25 10:39:10 +00:00
|
|
|
man 1 xorrecord
|
2008-01-18 10:19:36 +00:00
|
|
|
|
2011-10-25 10:39:10 +00:00
|
|
|
You may get a first glimpse by e.g.
|
2010-03-30 09:30:40 +00:00
|
|
|
info ./xorriso/xorriso.info
|
2008-01-17 19:28:38 +00:00
|
|
|
man ./xorriso/xorriso.1
|
|
|
|
|
2008-07-10 16:43:42 +00:00
|
|
|
The installation creates several alias links pointing to the xorriso binary:
|
2008-07-08 09:27:05 +00:00
|
|
|
xorrisofs starts xorriso with -as mkisofs emulation already enabled
|
2008-07-10 16:43:42 +00:00
|
|
|
xorrecord starts xorriso with -as cdrecord emulation already enabled
|
2008-07-08 09:27:05 +00:00
|
|
|
osirrox starts with -osirrox image-to-disk copying already enabled
|
|
|
|
|
2010-03-30 09:30:40 +00:00
|
|
|
|
2014-06-15 12:56:43 +00:00
|
|
|
By default xorriso will depend on libreadline if the library and its
|
|
|
|
development header files are present at compile time. If not, then it will
|
|
|
|
try to depend on libedit and its header file.
|
|
|
|
Both conditional dependencies can be avoided by running
|
|
|
|
./configure --prefix=/usr --disable-libreadline
|
2008-10-02 10:55:28 +00:00
|
|
|
make clean ; make
|
2014-06-15 12:56:43 +00:00
|
|
|
Never omit the "make clean" command after switching enabling of libreadline.
|
2019-10-28 14:34:56 +00:00
|
|
|
If you want to explicitly allow only the use of libedit, then do
|
2014-06-15 12:56:43 +00:00
|
|
|
./configure --prefix=/usr --disable-libreadline --enable-libedit
|
|
|
|
|
2009-03-16 12:07:24 +00:00
|
|
|
Other deliberate dependency reduction options of ./configure are:
|
|
|
|
--disable-libacl avoid use of ACL functions like acl_to_text()
|
2011-09-21 13:44:03 +00:00
|
|
|
--disable-xattr avoid use of xattr functions like listxattr() on Linux
|
2015-07-31 17:12:51 +00:00
|
|
|
or extattr_list_file() on FreeBSD
|
2010-10-26 10:48:18 +00:00
|
|
|
--disable-zlib avoid use of zlib functions like compress2()
|
|
|
|
this also avoids the use of libjte and option -jigdo.
|
2008-10-02 10:55:28 +00:00
|
|
|
|
2010-02-12 15:27:10 +00:00
|
|
|
xorriso brings own system adapters which allow burning optical media on
|
2014-02-12 18:59:54 +00:00
|
|
|
GNU/Linux, FreeBSD, Solaris, NetBSD.
|
2010-06-14 09:33:43 +00:00
|
|
|
Alternatively it can use libcdio-0.83 or later for sending commands to
|
|
|
|
optical drives:
|
2010-01-25 15:02:59 +00:00
|
|
|
--enable-libcdio
|
|
|
|
|
2009-04-04 14:42:41 +00:00
|
|
|
xorriso allows to use external processes as file content filters. This is
|
|
|
|
a potential security risk which may be avoided by ./configure option
|
|
|
|
--disable-external-filters
|
|
|
|
|
|
|
|
By default the filter feature is disabled if effective user id and real
|
|
|
|
user id differ. This ban can be lifted by
|
|
|
|
--enable-external-filters-setuid
|
|
|
|
|
2010-02-12 15:27:10 +00:00
|
|
|
Sometimes xorriso will yield better write performance on GNU/Linux if 64 KB are
|
2009-12-07 08:20:19 +00:00
|
|
|
transmitted in each write operation rather than 32 KB. See option -dvd_obs .
|
|
|
|
64k can be made default at configure time by:
|
|
|
|
--enable-dvd-obs-64k
|
|
|
|
|
|
|
|
For xorriso -as cdrecord emulation only:
|
2010-02-12 15:27:10 +00:00
|
|
|
In some situations GNU/Linux may deliver a better write performance to drives
|
|
|
|
if the track input is read with O_DIRECT (see man 2 open). The included libburn
|
2009-11-28 12:41:16 +00:00
|
|
|
and the cdrecord emulation of xorriso can be told to use this peculiar read
|
|
|
|
mode by:
|
2009-12-07 08:20:19 +00:00
|
|
|
--enable-track-src-odirect
|
2008-12-01 20:48:49 +00:00
|
|
|
|
2011-09-21 13:44:03 +00:00
|
|
|
Linux only:
|
|
|
|
libburn tries to avoid a collision with udev's drive examination by waiting
|
|
|
|
0.1 seconds before opening the device file for a longer time, after udev
|
|
|
|
might have been alarmed by drive scanning activities.
|
|
|
|
The waiting time can be set at ./configure time with microsecond granularity.
|
|
|
|
E.g. 2 seconds:
|
|
|
|
CFLAGS="$CFLAGS -DLibburn_udev_wait_useC=2000000"
|
|
|
|
./configure ...options...
|
|
|
|
Waiting can be disabled by zero waiting time:
|
|
|
|
CFLAGS="$CFLAGS -DLibburn_udev_wait_useC=0"
|
|
|
|
Alternatively, libburn can try to be nice by opening the device file,
|
|
|
|
closing it immediately, waiting, and only then opening it for real:
|
|
|
|
CFLAGS="$CFLAGS -DLibburn_udev_extra_open_cyclE -DLibburn_udev_wait_useC=500000"
|
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
|
2012-12-27 09:53:59 +00:00
|
|
|
xorriso under control of a (GUI) frontend process
|
|
|
|
|
|
|
|
The dialog mode allows frontend programs to connect via pipes to the standard
|
|
|
|
input and output of xorriso. Several commands of xorriso help with receiving
|
|
|
|
and parsing of reply messages.
|
|
|
|
|
|
|
|
As a proof of concept, there is the Tcl/Tk script xorriso-tcltk which can
|
2012-12-28 09:02:15 +00:00
|
|
|
be launched by this shell command:
|
2012-12-27 09:53:59 +00:00
|
|
|
|
2012-12-28 09:02:15 +00:00
|
|
|
xorriso-tcltk
|
2012-12-27 09:53:59 +00:00
|
|
|
|
2012-12-28 09:02:15 +00:00
|
|
|
Or in the xorriso build directory, without installation of xorriso:
|
2012-12-27 09:53:59 +00:00
|
|
|
|
2012-12-28 09:02:15 +00:00
|
|
|
xorriso/xorriso -launch_frontend frontend/xorriso-tcltk --stdio --
|
2012-12-27 09:53:59 +00:00
|
|
|
|
2012-12-28 09:02:15 +00:00
|
|
|
In the running GUI, click with the rightmost mouse button on any GUI element
|
2013-01-08 15:23:31 +00:00
|
|
|
to get its particular help text. The "Help" button at the upper right corner
|
|
|
|
gives a short introduction and instructions for some common use cases.
|
|
|
|
See also file frontend/README-tcltk.
|
2012-12-27 09:53:59 +00:00
|
|
|
See its Tcl code for getting an idea how this gets achieved.
|
|
|
|
|
2013-01-08 15:23:31 +00:00
|
|
|
The script is part of the tarball and gets installed by make install. If a
|
|
|
|
xorriso distro package does not install it, you may get it directly from
|
2017-05-09 08:20:04 +00:00
|
|
|
https://dev.lovelyhq.com/libburnia/libisoburn/blob/master/frontend/xorriso-tcltk
|
2013-01-08 15:23:31 +00:00
|
|
|
|
2012-12-27 09:53:59 +00:00
|
|
|
Further there is the C program frontend/frontend_pipes_xorriso.c which
|
|
|
|
forks a xorriso process and shows the same communication gestures as
|
|
|
|
xorriso-tcltk.
|
|
|
|
In particular it connects to xorriso via two pipes, sends commands, waits
|
|
|
|
for all replies of a command, picks info out of the xorriso message sieve,
|
|
|
|
and parses reply message lines into words.
|
|
|
|
|
2015-11-21 08:34:03 +00:00
|
|
|
The bash script frontend/sh_on_named_pipes.sh forks a xorriso process
|
|
|
|
connected to two pipes. It then runs a dialog loop, sends commands to xorriso,
|
|
|
|
and displays the replies.
|
|
|
|
|
|
|
|
The sh script frontend/xorriso_broker.sh is intended to execute xorriso
|
|
|
|
commands on a permanently running xorriso process.
|
|
|
|
It gets an id_string by which it looks for named pipes with a running xorriso
|
|
|
|
process. If no such pipe is found, then it starts a xorriso connected to
|
|
|
|
newly created pipes.
|
|
|
|
After this is done, the optionally given xorriso arguments are written into
|
|
|
|
the stdin pipe from where xorriso will read and execute them. The script will
|
|
|
|
end but the xorriso process will go on and wait for more commands.
|
2013-07-04 10:47:26 +00:00
|
|
|
|
2012-12-27 09:53:59 +00:00
|
|
|
|
2008-01-18 10:19:36 +00:00
|
|
|
Drives and Disk File Objects
|
2008-01-17 19:28:38 +00:00
|
|
|
|
2009-08-29 18:18:56 +00:00
|
|
|
The user of libisoburn applications needs rw-permission for the CD/DVD/BD
|
|
|
|
drives which shall be used, even if only reading is intended.
|
2008-01-17 19:28:38 +00:00
|
|
|
A list of rw-accessible drives can be obtained by
|
|
|
|
|
|
|
|
xorriso -devices
|
|
|
|
|
2010-06-10 18:15:56 +00:00
|
|
|
CD devices which offer not enough permission are invisible to normal users.
|
2008-01-17 19:28:38 +00:00
|
|
|
The superuser should be able to see any usable drive and then set the
|
|
|
|
permissions as needed.
|
2014-02-12 18:59:54 +00:00
|
|
|
On Linux, FreeBSD, and NetBSD, rw-permissions are needed.
|
2010-06-10 18:15:56 +00:00
|
|
|
On Solaris, the privilege "sys_devices" and r-permission are needed.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
The output of xorriso -devices might look like
|
|
|
|
|
|
|
|
0 -dev '/dev/sr0' rwrw-- : 'TSSTcorp' 'CDDVDW SH-S203B'
|
|
|
|
1 -dev '/dev/hda' rwrw-- : 'HL-DT-ST' 'DVD-ROM GDR8162B'
|
|
|
|
|
2010-06-10 18:15:56 +00:00
|
|
|
On Linux, full and insecure enabling of both for everybody would look like
|
2008-01-17 19:28:38 +00:00
|
|
|
chmod a+rw /dev/sr0 /dev/hda
|
|
|
|
This is equivalent to the traditional setup chmod a+x,u+s cdrecord.
|
|
|
|
|
2010-06-10 18:15:56 +00:00
|
|
|
On FreeBSD, device permissions are to be set in /etc/devfs.rules.
|
2010-06-14 09:33:43 +00:00
|
|
|
On Solaris, pfexec privileges may be restricted to "basic,sys_devices".
|
2014-02-12 18:59:54 +00:00
|
|
|
On NetBSD, rw-permission may be granted by chmod a+rw /dev/rcd?d.
|
2012-12-02 07:33:39 +00:00
|
|
|
See below "System Dependent Drive Permission Examples".
|
2010-06-10 18:15:56 +00:00
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
I strongly discourage to run xorriso with setuid root or via sudo !
|
|
|
|
It is not checked for the necessary degree of hacker safety.
|
2010-06-10 18:15:56 +00:00
|
|
|
Better consider to grant the necessary permissions to group "floppy"
|
|
|
|
and to add users to it.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
|
2008-01-18 10:19:36 +00:00
|
|
|
A possible source of problems are hald or other automounters.
|
|
|
|
If you can spot a process "hald-addon-storage" with the address of
|
|
|
|
your desired drive, then consider to kill it.
|
2011-09-23 09:35:29 +00:00
|
|
|
A similar process "udisks-daemon: polling ..." can be seen on newer Linuxes.
|
|
|
|
|
|
|
|
On Debian GNU/Linux 6.0.2 amd64 there is
|
|
|
|
/lib/udev/rules.d/80-udisks.rules
|
|
|
|
where one can remove all CD drives ("sr*") from the list of automountable
|
|
|
|
devices:
|
|
|
|
KERNEL=="sd*|hd*|mmcblk*|mspblk*", ENV{UDISKS_PRESENTATION_NOPOLICY}="0"
|
|
|
|
# KERNEL=="sd*|hd*|sr*|mmcblk*|mspblk*", ENV{UDISKS_PRESENTATION_NOPOLICY}="0"
|
|
|
|
Copying the recognition criterion from
|
|
|
|
/etc/udev/rules.d/70-persistent-cd.rules
|
|
|
|
one can prevent automounting a single drive, too:
|
|
|
|
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:11.0-scsi-2:0:0:0", ENV{UDISKS_PRESENTATION_NOPOLICY}:="1"
|
|
|
|
|
|
|
|
If you cannot get rid of the automounter, try whether it helps to always load
|
|
|
|
the drive tray manually before starting a write run of xorriso. Wait until the
|
|
|
|
drive light is off and the mounted media appears.
|
|
|
|
Then try to unmount the mounted media before a write run.
|
2008-01-18 10:19:36 +00:00
|
|
|
|
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
Besides true optical drives, xorriso can also address disk files as input or
|
2008-12-16 16:37:49 +00:00
|
|
|
output drives. By default paths to files under /dev are accepted only if the
|
|
|
|
device represents a real optical drive. Other device files may be addressed
|
|
|
|
by prepending "stdio:" to the path.
|
2008-01-17 19:28:38 +00:00
|
|
|
Like:
|
2008-12-16 16:37:49 +00:00
|
|
|
xorriso -dev stdio:/dev/sdb ...more arguments...
|
|
|
|
This rule may be changed by xorriso option -drive_class.
|
2009-03-16 12:07:24 +00:00
|
|
|
Prefix "mmc:" causes a path to be accepted only if it is a real optical drive
|
|
|
|
which is accessible by generic SCSI/MMC commands.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
|
2019-12-07 17:58:44 +00:00
|
|
|
xorriso-dd-target
|
|
|
|
|
|
|
|
GNU xorriso comes with a script named
|
|
|
|
xorriso-dd-target/xorriso-dd-target
|
|
|
|
which uses the util-linux program lsblk to find suitable hard-disk-like
|
|
|
|
target devices for copying hard-disk bootable ISO images onto them. Such images
|
|
|
|
are offered by GNU/Linux distributions for installing their system.
|
|
|
|
|
|
|
|
xorriso-dd-target gets installed only if ./configure detects to run on a
|
|
|
|
GNU/Linux system. It refuses to start on non-Linux kernels or if program lsblk
|
|
|
|
is not found in /usr/sbin, /sbin, /usr/bin, /bin.
|
|
|
|
|
|
|
|
For introduction, examples, and details see in the build directory
|
|
|
|
man xorriso-dd-target/xorriso-dd-target.1
|
|
|
|
info xorriso-dd-target/xorriso-dd-target.info
|
|
|
|
|
|
|
|
|
2008-02-08 10:22:08 +00:00
|
|
|
Testing
|
|
|
|
|
2012-10-03 12:34:13 +00:00
|
|
|
For automated and manual tests of xorriso's functionality see file
|
|
|
|
releng/README
|
|
|
|
|
|
|
|
|
|
|
|
Result comparison with self produced ISO images
|
|
|
|
|
2008-02-08 10:22:08 +00:00
|
|
|
We are quite sure that libisofs produces accurate representations of the disk
|
2008-02-10 12:10:59 +00:00
|
|
|
files. This opinion is founded on a lot of test burns and checks by a little
|
2008-02-08 10:22:08 +00:00
|
|
|
test program which compares files from the mounted image with the orignals
|
2008-02-10 12:10:59 +00:00
|
|
|
on disk. It uses the normal POSIX filesystem calls, i.e. no libburnia stuff.
|
2008-02-08 10:22:08 +00:00
|
|
|
|
|
|
|
This program is not installed systemwide but stays in the installation
|
|
|
|
directory of the xorriso tarball as test/compare_file . Usually it is
|
2008-02-11 15:17:03 +00:00
|
|
|
run as -exec payload of a find command. It demands at least three arguments:
|
2008-02-10 12:10:59 +00:00
|
|
|
The path of the first file to compare, the prefix1 to be cut off from path
|
2008-02-08 10:22:08 +00:00
|
|
|
and the prefix2 which gets prepended afterwards to obtain the path of the
|
|
|
|
second file to compare.
|
2008-02-11 15:17:03 +00:00
|
|
|
As further argument there can be -no_ctime which suppresses the comparison
|
|
|
|
of ctime date stamps.
|
|
|
|
The exit value is 0 if no difference was detected, non-0 else.
|
2008-02-08 10:22:08 +00:00
|
|
|
|
2008-02-10 12:10:59 +00:00
|
|
|
Example: After
|
2008-03-20 19:22:32 +00:00
|
|
|
xorriso ... -pathspecs on -add /=/original/dir -- -commit_eject all
|
2008-02-10 12:10:59 +00:00
|
|
|
mount /media/dvd
|
2008-02-10 18:09:36 +00:00
|
|
|
cd test
|
2008-02-10 12:10:59 +00:00
|
|
|
compare tree /media/dvd with tree /original/dir :
|
2008-02-10 18:09:36 +00:00
|
|
|
find /original/dir -exec ./compare_file '{}' /original/dir /media/dvd ';' \
|
2008-02-08 10:22:08 +00:00
|
|
|
| less
|
2008-02-10 12:10:59 +00:00
|
|
|
and vice versa:
|
2008-02-10 18:09:36 +00:00
|
|
|
find /media/dvd -exec ./compare_file '{}' /media/dvd /original/dir ';' \
|
2008-02-10 12:10:59 +00:00
|
|
|
| less
|
2008-02-08 10:22:08 +00:00
|
|
|
|
|
|
|
|
2008-08-18 13:42:44 +00:00
|
|
|
File Formats
|
|
|
|
|
2009-08-29 18:18:56 +00:00
|
|
|
Sector Maps
|
|
|
|
|
|
|
|
Sector maps describe the valid and invalid blocks on a media or a disk copy of
|
2008-08-18 13:42:44 +00:00
|
|
|
a media. xorriso creates and reads these file with its option -check_media.
|
|
|
|
|
|
|
|
The file begins with 32 bytes of cleartext of which the last one is a
|
|
|
|
newline character. The first 25 say "xorriso sector bitmap v2 ", the
|
|
|
|
remaining six characters give the size of the info text as decimal number.
|
|
|
|
This number of bytes follows the first 32 and will not be interpreted
|
|
|
|
by xorriso. They are rather to inform a human reader about the media type
|
|
|
|
and its track layout.
|
|
|
|
After the info text there are two 4 byte signed integers, most significant
|
|
|
|
byte first. The first one, N, gives the number of bits in the following bitmap
|
|
|
|
and the second number S gives the number of 2 KiB blocks governed by a single
|
|
|
|
bit in the map. Then come the bits in form of 8-bit bytes.
|
2008-08-24 17:53:12 +00:00
|
|
|
Data block M is covered by bit B=M/S in the map, bit number B is stored in
|
2008-08-18 13:42:44 +00:00
|
|
|
byte B/8 as bit B%8. A valid readable data block has its bit set to 1.
|
|
|
|
|
2009-08-29 18:18:56 +00:00
|
|
|
Checksum Tags
|
|
|
|
|
|
|
|
Checksum tags are data blocks inside an ISO 9660 image which do not belong to
|
|
|
|
any file but rather tell the MD5 of a certain range of data blocks.
|
|
|
|
|
|
|
|
The superblock checksum tag is written after the ECMA-119 volume descriptors.
|
|
|
|
The tree checksum tag is written after the ECMA-119 directory entries.
|
|
|
|
The session checksum tag is written after all payload including the checksum
|
2011-06-17 14:39:24 +00:00
|
|
|
array. (Then follows padding.)
|
2009-08-29 18:18:56 +00:00
|
|
|
|
|
|
|
The tags are single lines of printable text, padded by 0 bytes. They have
|
|
|
|
the following format:
|
|
|
|
|
|
|
|
Tag_id pos=# range_start=# range_size=# [session_start|next=#] md5=# self=#\n
|
|
|
|
|
|
|
|
Parameters md5= and self= are 32 digit hex, the others are decimal numbers.
|
|
|
|
|
|
|
|
Tag_id distinguishes the following tag types
|
|
|
|
"libisofs_rlsb32_checksum_tag_v1" Relocated 64 kB superblock tag
|
|
|
|
"libisofs_sb_checksum_tag_v1" Superblock tag
|
|
|
|
"libisofs_tree_checksum_tag_v1" Directory tree tag
|
2009-10-27 20:56:57 +00:00
|
|
|
"libisofs_checksum_tag_v1" Session end tag
|
2009-08-29 18:18:56 +00:00
|
|
|
|
|
|
|
A relocated superblock may appear at LBA 0 of an image which was produced for
|
2019-10-28 14:34:56 +00:00
|
|
|
being stored in a disk file or on overwritable media (e.g. DVD+RW, BD-RE).
|
2011-06-17 14:39:24 +00:00
|
|
|
xorriso records the first session at LBA 32. A follow-up session
|
2009-10-27 20:56:57 +00:00
|
|
|
begins at the next block address which is divisible by 32 and higher than the
|
|
|
|
address of the previous session's end tag. Normally no session starts after the
|
|
|
|
address given by relocated superblock parameter session_start=.
|
2011-03-24 11:52:22 +00:00
|
|
|
Session oriented media like CD-R[W], DVD-R, DVD+R, BD-R will have no relocated
|
2009-08-29 18:18:56 +00:00
|
|
|
superblock but rather bear a table-of-content on media level.
|
|
|
|
|
|
|
|
A tag is valid if pos= tells its own block address and self= tells its own MD5
|
|
|
|
up to the last hex digit of md5=. range_start= tells the first block that is
|
|
|
|
covered by md5=, range_size= tells the number of blocks covered by md5=.
|
|
|
|
Relocated superblocks tell the block address of their session by session_start=.
|
|
|
|
Superblock and tree tag tell the block address of the next tag by next=.
|
|
|
|
The newline character at the end is mandatory.
|
|
|
|
|
2008-08-18 13:42:44 +00:00
|
|
|
|
2008-02-01 19:59:12 +00:00
|
|
|
libisoburn
|
|
|
|
|
2011-03-24 11:52:22 +00:00
|
|
|
xorriso is based on libisofs which does ISO 9660 filesystem aspects and on
|
2008-02-01 19:59:12 +00:00
|
|
|
libburn which does the input and output aspects. Parts of this foundation
|
|
|
|
are accessed via libisoburn, which is closely related to xorriso.
|
|
|
|
|
2010-06-14 09:33:43 +00:00
|
|
|
libisoburn provides several services:
|
2008-02-10 18:09:36 +00:00
|
|
|
- Encapsulation of coordination between libisofs and libburn.
|
2019-10-28 14:34:56 +00:00
|
|
|
- Emulation of ISO 9660 multi-session on overwritable media
|
2008-02-10 18:09:36 +00:00
|
|
|
or random access files.
|
2010-06-14 09:33:43 +00:00
|
|
|
- Implementation of the xorriso API.
|
2008-02-01 19:59:12 +00:00
|
|
|
|
2017-09-12 15:22:48 +00:00
|
|
|
The sourcecode of all three libraries is included in the GNU xorriso tarball.
|
|
|
|
It is compiled with xorriso and linked statically.
|
2008-02-10 18:09:36 +00:00
|
|
|
But you may as well get and install releases of libburn and libisofs, in order
|
|
|
|
to be able to install a release of libisoburn which produces libisoburn.so.1
|
|
|
|
and a matching dynamically linked xorriso binary.
|
2010-06-14 09:33:43 +00:00
|
|
|
This binary is very lean but depends on properly installed libraries of
|
|
|
|
suitable revision.
|
2008-02-10 18:09:36 +00:00
|
|
|
|
2019-10-26 18:19:25 +00:00
|
|
|
Dynamic library and compile time header requirements for libisoburn-1.5.2 :
|
|
|
|
- libburn.so.4 , version libburn-1.5.2 or higher
|
|
|
|
- libisofs.so.6 , version libisofs-1.5.2 or higher
|
2008-02-10 18:09:36 +00:00
|
|
|
libisoburn and xorriso will not start with libraries which are older than their
|
|
|
|
headers seen at compile time. So compile in the oldest possible installation
|
|
|
|
setup unless you have reason to enforce a newer bug fix level.
|
2008-02-01 19:59:12 +00:00
|
|
|
|
2010-03-30 09:30:40 +00:00
|
|
|
GNU xorriso has less runtime dependencies and can be moved more freely.
|
2008-02-01 19:59:12 +00:00
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
|
2012-12-02 07:33:39 +00:00
|
|
|
System Dependent Drive Permission Examples
|
2010-06-10 18:15:56 +00:00
|
|
|
|
|
|
|
Accessing the optical drives requires privileges which usually are granted
|
2014-02-12 18:59:54 +00:00
|
|
|
only to the superuser. GNU/Linux, FreeBSD, Solaris, and NetBSD offer quite
|
|
|
|
different approaches for avoiding the need for unrestricted privileges.
|
2010-06-10 18:15:56 +00:00
|
|
|
|
|
|
|
First check whether some friendly system setting already allows you to
|
|
|
|
access the drives as normal user:
|
|
|
|
xorriso -devices
|
|
|
|
Those drives of which you see address and type strings are already usable.
|
|
|
|
|
|
|
|
If there remain drives invisible which the superuser can see by the same
|
|
|
|
command, then the following examples might help:
|
|
|
|
|
2014-02-12 18:59:54 +00:00
|
|
|
---------------
|
|
|
|
On all systems:
|
|
|
|
---------------
|
2010-06-10 18:15:56 +00:00
|
|
|
Add the authorized users of CD drives to group "floppy" in /etc/group.
|
|
|
|
If missing: create this group.
|
|
|
|
Changes to /etc/group often only affect new login sessions. So log out and in
|
|
|
|
before making the first tests.
|
|
|
|
|
|
|
|
-------------
|
|
|
|
On GNU/Linux:
|
|
|
|
-------------
|
|
|
|
Allow rw-access to the drives
|
|
|
|
chgrp floppy /dev/sr0 /dev/sr1
|
|
|
|
chmod g+rw /dev/sr0 /dev/sr1
|
|
|
|
It might be necessary to perform chgrp and chmod after each reboot or to
|
|
|
|
edit distro dependent device configuration files for permanent settings.
|
|
|
|
|
|
|
|
-----------
|
|
|
|
On FreeBSD:
|
|
|
|
-----------
|
|
|
|
Edit /etc/devfs.rules and make sure to have these lines
|
|
|
|
[localrules=10]
|
|
|
|
add path 'acd*' mode 0664 group floppy
|
|
|
|
add path 'cd*' mode 0664 group floppy
|
|
|
|
add path 'pass*' mode 0664 group floppy
|
|
|
|
add path 'xpt*' mode 0664 group floppy
|
|
|
|
[localrules=5]
|
|
|
|
add path 'pass*' mode 0664 group floppy
|
|
|
|
add path 'cd*' mode 0664 group floppy
|
|
|
|
add path 'xpt*' mode 0664 group floppy
|
|
|
|
add path 'acd*' mode 0664 group floppy
|
|
|
|
|
|
|
|
Edit /etc/rc.conf and add the following line if missing
|
|
|
|
devfs_system_ruleset="localrules"
|
|
|
|
|
|
|
|
This gets into effect by reboot or by command
|
|
|
|
/etc/rc.d/devfs start
|
|
|
|
|
|
|
|
-----------
|
|
|
|
On Solaris:
|
|
|
|
-----------
|
|
|
|
Run xorriso by
|
|
|
|
pfexec xorriso ...arguments...
|
|
|
|
|
|
|
|
The following settings will make pfexec keep original UID and EUID and prevent
|
|
|
|
most superuser powers. Be aware that you still can manipulate all device files
|
|
|
|
if you have the file permissions for that.
|
2012-03-05 14:42:46 +00:00
|
|
|
Full root privileges for xorriso can then be acquired only by command su.
|
2010-06-10 18:15:56 +00:00
|
|
|
|
|
|
|
Edit /etc/security/exec_attr and add this line to the other "Media Backup"
|
|
|
|
lines:
|
|
|
|
Media Backup:solaris:cmd:::/usr/local/bin/xorriso:privs=basic,sys_devices
|
|
|
|
Edit /etc/user_attr and add profile "Media Backup" to the user's line:
|
|
|
|
thomas::::profiles=Media Backup,Primary Administrator;roles=root
|
|
|
|
See also man privileges, man exec_attr, man user_attr.
|
|
|
|
|
|
|
|
Then allow the group r-access to the drives
|
|
|
|
pfexec chgrp floppy /dev/rdsk/c3t0d0s2 /dev/rdsk/c4t0d0s2
|
|
|
|
pfexec chmod g+r /dev/rdsk/c3t0d0s2 /dev/rdsk/c4t0d0s2
|
|
|
|
The last two commands have to be executed after each boot. I do not know
|
|
|
|
the relevant device configuration files yet.
|
|
|
|
|
2014-02-12 18:59:54 +00:00
|
|
|
----------
|
|
|
|
On NetBSD:
|
|
|
|
----------
|
|
|
|
Allow rw-access to the drives
|
|
|
|
chgrp floppy /dev/rcd[01]d
|
|
|
|
chmod g+rw /dev/rcd[01]d
|
2010-06-10 18:15:56 +00:00
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
2010-02-12 15:27:10 +00:00
|
|
|
it under the terms of the GNU General Public License version 3 or later
|
2010-01-25 15:02:59 +00:00
|
|
|
as published by the Free Software Foundation.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
2010-02-12 15:27:10 +00:00
|
|
|
|
|
|
|
GNU xorriso is feature-wise equivalent to the dynamic compilation of
|
|
|
|
libburnia libraries and libburnia program xorriso.
|
|
|
|
It restricts itself to a technical form where the legal commitments of the
|
|
|
|
libburnia project and the legal intentions of FSF match completely.
|
|
|
|
|
2010-02-22 16:40:16 +00:00
|
|
|
Libburnia project is committed to provide support for this copy in the same
|
2010-02-12 15:27:10 +00:00
|
|
|
way as for its own software releases. It is further committed to keep its
|
|
|
|
own licenses open for obtaining future copies under GPLv2+.
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
libburnia program xorriso is based on and sub project of:
|
2008-01-17 19:28:38 +00:00
|
|
|
libburnia-project.org
|
2010-02-12 15:27:10 +00:00
|
|
|
By Mario Danic <mario.danic@gmail.com>, libburn, libisofs
|
|
|
|
Vreixo Formoso <metalpain2002@yahoo.es>, libisofs, libisoburn
|
|
|
|
Thomas Schmitt <scdbackup@gmx.net>, libburn, libisofs,
|
|
|
|
libisoburn, xorriso
|
2019-10-26 18:19:25 +00:00
|
|
|
Copyright (C) 2006-2019 Mario Danic, Vreixo Formoso, Thomas Schmitt.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
2010-02-12 15:27:10 +00:00
|
|
|
libburnia-project.org is inspired by and in libburn still containing parts
|
|
|
|
of old
|
2008-01-17 19:28:38 +00:00
|
|
|
Libburn. By Derek Foreman <derek@signalmarketing.com> and
|
|
|
|
Ben Jansens <xor@orodu.net>
|
|
|
|
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
|
2010-10-15 12:16:12 +00:00
|
|
|
|
2011-04-03 09:42:56 +00:00
|
|
|
GNU xorriso contains libjte out of source package jigit >= 1.17
|
2010-10-15 12:16:12 +00:00
|
|
|
Copyright (C) 2000-2007 Free Software Foundation, Inc.
|
2011-04-03 09:42:56 +00:00
|
|
|
2004-2011 Steve McIntyre
|
2011-01-17 09:25:21 +00:00
|
|
|
2010-2011 George Danchev, Thomas Schmitt
|
2010-10-15 12:16:12 +00:00
|
|
|
|
2010-02-22 16:40:16 +00:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
This text itself is
|
2019-10-26 18:19:25 +00:00
|
|
|
Copyright (c) 2007 - 2019 Thomas Schmitt <scdbackup@gmx.net>
|
2010-02-22 16:40:16 +00:00
|
|
|
and is freely distributable.
|
2010-02-23 09:53:17 +00:00
|
|
|
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
|
2010-02-22 16:40:16 +00:00
|
|
|
then you are entitled to modify this text under that same license.
|
2008-01-17 19:28:38 +00:00
|
|
|
|