2008-01-17 19:28:38 +00:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
libburnia-project.org scdbackup.sourceforge.net/xorriso_eng.html
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
xorriso. By Thomas Schmitt <scdbackup@gmx.net>
|
|
|
|
Integrated sub project of libburnia-project.org but also published via:
|
|
|
|
http://scdbackup.sourceforge.net/xorriso_eng.html
|
|
|
|
http://scdbackup.sourceforge.net/xorriso-0.1.0.tar.gz
|
|
|
|
Copyright (C) 2006-2008 Thomas Schmitt, provided under GPL version 2.
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
xorriso is a program which maps file objects from POSIX compliant
|
|
|
|
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.
|
|
|
|
|
|
|
|
Currently it is only supported on Linux with kernels >= 2.4.
|
|
|
|
|
|
|
|
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 .
|
|
|
|
|
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
|
|
|
|
|
|
|
|
The most simple way to get xorriso is the xorriso standalone tarball.
|
|
|
|
|
|
|
|
Prerequisites:
|
|
|
|
The tarball contains anything that is needed except libc and libpthread.
|
2008-01-19 13:49:17 +00:00
|
|
|
libreadline and the libreadline-dev headers will make dialog mode
|
|
|
|
more convenient, but are not mandatory.
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
Obtain xorriso-0.1.0.tar.gz, take it to a directory of your choice and do:
|
|
|
|
|
|
|
|
tar xzf xorriso-0.1.0.tar.gz
|
|
|
|
cd xorriso-0.1.0
|
|
|
|
|
|
|
|
Within that directory execute:
|
|
|
|
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
|
|
|
|
This will produce a binary named
|
|
|
|
./xorriso/xorriso
|
|
|
|
|
2008-01-18 10:19:36 +00:00
|
|
|
which you may strip to reduce it in size
|
|
|
|
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,
|
|
|
|
you may execute xorriso at the place where it was built, or you may execute
|
|
|
|
as superuser:
|
|
|
|
make install
|
|
|
|
|
2008-01-18 10:19:36 +00:00
|
|
|
For general concepts, options and usage examples see
|
|
|
|
man 1 xorriso
|
|
|
|
|
|
|
|
This man page is part of the tarball as
|
2008-01-17 19:28:38 +00:00
|
|
|
xorriso/xorriso.1
|
|
|
|
You may get a first glimpse by
|
|
|
|
man ./xorriso/xorriso.1
|
|
|
|
|
2008-01-19 13:49:17 +00:00
|
|
|
It gets installed with "make install" but may also be placed manually in the
|
|
|
|
./man1 directory below one of the directories mentioned in environment
|
|
|
|
variable $MANPATH.
|
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
|
2008-01-18 10:19:36 +00:00
|
|
|
Drives and Disk File Objects
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
The user of xorriso needs rw-permission for the CD burner device.
|
|
|
|
A list of rw-accessible drives can be obtained by
|
|
|
|
|
|
|
|
xorriso -devices
|
|
|
|
|
|
|
|
CD devices which offer no rw-permission are invisible to normal users.
|
|
|
|
The superuser should be able to see any usable drive and then set the
|
|
|
|
permissions as needed.
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
2008-01-18 10:19:36 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
I strongly discourage to run xorriso with setuid root or via sudo !
|
|
|
|
It is not checked for the necessary degree of hacker safety.
|
|
|
|
|
|
|
|
Consider to put all authorized users into group "floppy", to chgrp the
|
|
|
|
device file to that group and to disallow w-access to others.
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
If you cannot get rid of the automounter that easily, 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.
|
|
|
|
Better try to unmount an eventually mounted media before a write run.
|
|
|
|
|
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
Besides true optical drives, xorriso can also address disk files as input or
|
|
|
|
output drives. The addresses of the disk files have to be preceded by "stdio:".
|
|
|
|
Like:
|
|
|
|
xorriso -dev stdio:/tmp/pseudo_drive ...more arguments...
|
|
|
|
|
|
|
|
|
2008-02-08 10:22:08 +00:00
|
|
|
Testing
|
|
|
|
|
|
|
|
We are quite sure that libisofs produces accurate representations of the disk
|
|
|
|
files. This opinion is founded on a lot of tests burns and checks by a little
|
|
|
|
test program which compares files from the mounted image with the orignals
|
|
|
|
on disk. It uses the normal Linux filesystem calls, i.e. no libburnia stuff.
|
|
|
|
|
|
|
|
This program is not installed systemwide but stays in the installation
|
|
|
|
directory of the xorriso tarball as test/compare_file . Usually it is
|
|
|
|
run as -exec payload of a find command. It takes three arguments:
|
|
|
|
The file path of the first file to compare, the prefix1 to be cut off from path
|
|
|
|
and the prefix2 which gets prepended afterwards to obtain the path of the
|
|
|
|
second file to compare.
|
|
|
|
|
|
|
|
To compare tree /media/dvd and /original/dir :
|
|
|
|
find /original/dir -exec compare_file '{}' /original/dir /media/dvd ';' \
|
|
|
|
| less
|
|
|
|
and:
|
|
|
|
find /media/dvd -exec compare_file '{}' /media/dvd /original/dir ';' | less
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-01 19:59:12 +00:00
|
|
|
libisoburn
|
|
|
|
|
|
|
|
xorriso is based on libisofs which does ISO 9600 filesystem aspects and on
|
|
|
|
libburn which does the input and output aspects. Parts of this foundation
|
|
|
|
are accessed via libisoburn, which is closely related to xorriso.
|
|
|
|
|
|
|
|
libisoburn takes care for the emulation of ISO 9660 multi-session on
|
|
|
|
overwriteable media or random access files. It also encapsulates the
|
|
|
|
coordination between libisofs and libburn.
|
|
|
|
|
|
|
|
The sourcecode of all three libraries is included in the xorriso standalone
|
|
|
|
tarball.
|
|
|
|
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 a
|
|
|
|
dynamically linked xorriso binary. This binary is leaner but depends on
|
|
|
|
properly installed libraries of suitable revision.
|
|
|
|
|
|
|
|
Dynamic library requirements for libisoburn-0.1.0 :
|
|
|
|
- libburn.so.4 , version 0.4.2 or higher
|
|
|
|
- libisofs.so.6 , version 0.6.2 or higher
|
|
|
|
|
|
|
|
Standalone xorriso has less runtime dependencies and can be copied more freely.
|
|
|
|
|
2008-01-17 19:28:38 +00:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License version 2 as
|
|
|
|
published by the Free Software Foundation.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
Based on and sub project of:
|
|
|
|
libburnia-project.org
|
|
|
|
By Mario Danic <mario.danic@gmail.com>,
|
|
|
|
Vreixo Formoso <metalpain2002@yahoo.es>
|
|
|
|
Thomas Schmitt <scdbackup@gmx.net>
|
|
|
|
Copyright (C) 2006-2008 Mario Danic, Vreixo Formoso, Thomas Schmitt.
|
|
|
|
|
|
|
|
libburnia-project.org is inspired by and in other components still containing
|
|
|
|
parts of old
|
|
|
|
Libburn. By Derek Foreman <derek@signalmarketing.com> and
|
|
|
|
Ben Jansens <xor@orodu.net>
|
|
|
|
Copyright (C) 2002-2006 Derek Foreman and Ben Jansens
|
|
|
|
|