2008-02-14 08:44:29 +00:00
|
|
|
------------------------------------------------------------------------------
|
2008-04-28 12:34:39 +00:00
|
|
|
http:libburnia-project.org
|
2008-02-14 08:44:29 +00:00
|
|
|
------------------------------------------------------------------------------
|
2010-02-14 15:09:05 +00:00
|
|
|
libisoburn and xorriso. By Vreixo Formoso <metalpain2002@yahoo.es>
|
|
|
|
and Thomas Schmitt <scdbackup@gmx.net>
|
2008-02-14 08:44:29 +00:00
|
|
|
Integrated sub project of libburnia-project.org.
|
2011-04-09 10:57:10 +00:00
|
|
|
http://files.libburnia-project.org/releases/libisoburn-1.0.6.pl00.tar.gz
|
2011-01-17 09:25:21 +00:00
|
|
|
Copyright (C) 2006-2011 Vreixo Formoso, Thomas Schmitt.
|
2010-01-25 15:02:59 +00:00
|
|
|
Provided under GPL version 2 or later.
|
2008-02-14 08:44:29 +00:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
libisoburn is a frontend for libraries libburn and libisofs which enables
|
2008-09-20 09:43:55 +00:00
|
|
|
creation and expansion of ISO-9660 filesystems on all CD/DVD/BD media supported
|
2008-02-14 08:44:29 +00:00
|
|
|
by libburn. This includes media like DVD+RW, which do not support multi-session
|
|
|
|
management on media level and even plain disk files or block devices.
|
|
|
|
|
|
|
|
The price for that is thorough specialization on data files in ISO-9660
|
|
|
|
filesystem images. So libisoburn is not suitable for audio (CD-DA) or any
|
|
|
|
other CD layout which does not entirely consist of ISO-9660 sessions.
|
|
|
|
|
2010-06-13 11:04:08 +00:00
|
|
|
xorriso is an application of libisoburn, libisofs, and libburn, which reads
|
|
|
|
commands from program arguments, files, stdin, or readline.
|
|
|
|
Its features are also available via a C language API of libisoburn.
|
2010-02-14 15:09:05 +00:00
|
|
|
|
2010-06-07 18:13:52 +00:00
|
|
|
Currently they are fully supported on Linux with kernels >= 2.4,
|
|
|
|
on FreeBSD with ATAPI/CAM support enabled in the kernel, see atapicam(4),
|
|
|
|
and on OpenSolaris (tested with kernel 5.11).
|
2009-03-16 12:07:24 +00:00
|
|
|
On other X/Open compliant systems libburn will only offer POSIX i/o with disk
|
|
|
|
file objects, but no direct MMC operation on CD/DVD/BD drives.
|
2008-02-14 08:44:29 +00:00
|
|
|
|
|
|
|
By using this software you agree to the disclaimer at the end of this text:
|
|
|
|
"... without even the implied warranty ..."
|
|
|
|
|
|
|
|
|
|
|
|
Compilation, First Glimpse, Installation
|
|
|
|
|
2011-04-09 10:57:10 +00:00
|
|
|
Dynamic library and compile time header requirements for libisoburn-1.0.6 :
|
|
|
|
- libburn.so.4 , version libburn-1.0.6 or higher
|
|
|
|
- libisofs.so.6 , version libisofs-1.0.6 or higher
|
2008-02-14 08:44:29 +00:00
|
|
|
libisoburn and xorriso will not start with libraries which are older than their
|
2010-09-19 13:53:42 +00:00
|
|
|
include headers seen at compile time.
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2011-04-09 10:57:10 +00:00
|
|
|
Obtain libisoburn-1.0.6.pl00.tar.gz, take it to a directory of your choice
|
2008-04-28 12:34:39 +00:00
|
|
|
and do:
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2011-04-09 10:57:10 +00:00
|
|
|
tar xzf libisoburn-1.0.6.pl00.tar.gz
|
|
|
|
cd libisoburn-1.0.6
|
2008-02-14 08:44:29 +00:00
|
|
|
|
|
|
|
Within that directory execute:
|
|
|
|
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
|
|
|
|
Then become superuser and execute
|
|
|
|
make install
|
2009-06-28 11:17:25 +00:00
|
|
|
which will make available libisoburn.so.1 and the program xorriso.
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2010-09-22 10:56:52 +00:00
|
|
|
On GNU/Linux it will try to run program ldconfig with the library installation
|
|
|
|
directory as only argument. Failure to do so will not abort installation.
|
|
|
|
One may disable ldconfig by ./configure option --disable-ldconfig-at-install .
|
|
|
|
|
2010-07-05 12:29:50 +00:00
|
|
|
|
|
|
|
By use of a version script, the libisoburn.so library exposes no other function
|
2010-09-22 10:56:52 +00:00
|
|
|
names but those of the API definitions in <libisoburn/libisoburn.h> and
|
2010-07-05 12:29:50 +00:00
|
|
|
<libisoburn/xorriso.h>.
|
|
|
|
If -Wl,--version-script=... makes problems with the local compiler, then
|
|
|
|
disable this encapsulation feature by
|
|
|
|
./configure --disable-versioned-libs
|
|
|
|
make clean ; make
|
2008-02-14 08:44:29 +00:00
|
|
|
|
|
|
|
|
2008-02-15 21:19:24 +00:00
|
|
|
xorriso
|
|
|
|
|
2008-09-20 09:43:55 +00:00
|
|
|
libisoburn comes with a command line and dialog application named xorriso,
|
2008-02-14 08:44:29 +00:00
|
|
|
which offers a substantial part of libisoburn features to shell scripts and
|
2010-02-14 15:09:05 +00:00
|
|
|
users. Its file xorriso/README_gnu_xorriso describes the tarball of the
|
|
|
|
derived package GNU xorriso as first preference for a statically linked
|
|
|
|
xorriso installation.
|
2008-05-18 08:48:07 +00:00
|
|
|
The libisoburn installation described above produces a dynamically linked
|
|
|
|
xorriso binary depending on libburn.so, libisofs.so, libisoburn.so.
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2008-02-15 21:19:24 +00:00
|
|
|
After installation documentation is available via
|
|
|
|
man xorriso
|
2011-03-10 13:55:27 +00:00
|
|
|
man xorrisofs
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2008-07-10 16:43:42 +00:00
|
|
|
Several alias links point 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
|
|
|
|
|
2008-10-09 15:00:11 +00:00
|
|
|
By default xorriso will depend on libreadline if the readline-dev headers
|
|
|
|
are present. This dependcy can be avoided by running
|
|
|
|
./configure --prefix=/usr --disable-libreadline
|
|
|
|
make clean ; make
|
|
|
|
Never omit the "make clean" command after switching libreadline enabling.
|
2009-04-04 14:42:41 +00:00
|
|
|
Other deliberate dependency reduction options of ./configure are:
|
|
|
|
--disable-libacl avoid use of ACL functions like acl_to_text()
|
|
|
|
--disable-xattr avoid use of xattr functions like listxattr()
|
2009-04-14 09:19:37 +00:00
|
|
|
--disable-zlib avoid use of zlib functions like compress2()
|
2010-10-26 10:48:18 +00:00
|
|
|
--disable-libjte avoid use of libjte for -jigdo command
|
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
|
2008-10-09 15:00:11 +00:00
|
|
|
|
2009-11-28 12:41:16 +00:00
|
|
|
In some situations Linux may deliver a better write performance to DVD drives
|
|
|
|
if 64 KB rather than 32 KB are transmitted in each write operation.
|
|
|
|
64k can be made default at configure time by:
|
|
|
|
--enable-dvd-obs-64k
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2010-07-05 12:29:50 +00:00
|
|
|
libisoburn, libisofs, and libburn C language API
|
|
|
|
|
|
|
|
For the lower API concepts and calls see
|
|
|
|
./libisoburn/libisoburn.h
|
|
|
|
as well as
|
|
|
|
/usr/include/libisofs/libisofs.h
|
|
|
|
/usr/include/libburn/libburn.h
|
|
|
|
|
|
|
|
|
2010-06-13 11:04:08 +00:00
|
|
|
xorriso C language API
|
|
|
|
|
|
|
|
Actually the dynamically linked xorriso binary is only a small start program
|
|
|
|
for the xorriso API that is implemented inside libisoburn.
|
|
|
|
There are API calls for command readers and interpreters, and there are
|
|
|
|
API calls for each single command of xorriso.
|
|
|
|
|
|
|
|
Interested programmers should have a look into the API definition at
|
|
|
|
xorriso/xorriso.h
|
|
|
|
and the start program
|
|
|
|
xorriso/xorriso_main.c
|
|
|
|
|
|
|
|
The header file xorriso.h gets installed suitable for
|
|
|
|
#include <libisoburn/xorriso.h>
|
|
|
|
|
|
|
|
So after installation of a binary libisoburn package you may find it e.g. as
|
2010-07-05 12:29:50 +00:00
|
|
|
/usr/include/libisoburn/xorriso.h
|
2010-06-13 11:04:08 +00:00
|
|
|
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
Drives and Disk File Objects
|
|
|
|
|
2010-06-14 09:33:43 +00:00
|
|
|
The user of libisoburn applications needs operating system dependent
|
|
|
|
permissions for the CD/DVD/BD drives which shall be used.
|
|
|
|
On Linux and FreeBSD this means -rw-permissions, even if only reading is
|
|
|
|
intended. On Solaris one needs privileges "basic,sys_devices" and r-permission,
|
|
|
|
even if writing is intended.
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
A list of rw-accessible drives can be obtained by
|
|
|
|
xorriso -devices
|
2010-06-13 11:04:08 +00:00
|
|
|
resp. by xorriso API call
|
|
|
|
Xorriso_option_devices()
|
2008-02-14 08:44:29 +00:00
|
|
|
resp. by libburn API call
|
|
|
|
burn_drive_scan()
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
Besides true optical drives, libisoburn can also address disk files as input or
|
|
|
|
output drives. The addresses of the disk files have to be preceded by "stdio:".
|
|
|
|
Like:
|
|
|
|
"stdio:/tmp/pseudo_drive"
|
|
|
|
|
2009-03-16 12:07:24 +00:00
|
|
|
Note: xorriso by default prefixes "stdio:" to addresses outside the /dev tree
|
|
|
|
if they do not lead to an optical drive device file.
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
|
|
|
|
Testing
|
|
|
|
|
|
|
|
We are quite sure that libisofs produces accurate representations of the disk
|
|
|
|
files. This opinion is founded on a lot of test burns and checks by a little
|
|
|
|
test program which compares files from the mounted image with the orignals
|
|
|
|
on disk. It uses the normal POSIX filesystem calls, i.e. no libburnia stuff.
|
|
|
|
|
|
|
|
This program is not installed systemwide but stays in the installation
|
2010-03-30 09:30:40 +00:00
|
|
|
directory of the libisoburn tarball as test/compare_file . Usually it is
|
2008-02-14 08:44:29 +00:00
|
|
|
run as -exec payload of a find command. It demands at least three arguments:
|
2008-06-02 15:29:46 +00:00
|
|
|
The path of the file to compare, the prefix1 to be cut off from path
|
2008-02-14 08:44:29 +00:00
|
|
|
and the prefix2 which gets prepended afterwards to obtain the path of the
|
|
|
|
second file to compare.
|
|
|
|
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.
|
|
|
|
|
|
|
|
Example: After
|
|
|
|
xorriso ... -pathspecs on -add /=/original/dir --
|
|
|
|
mount /media/dvd
|
|
|
|
cd test
|
|
|
|
compare tree /media/dvd with tree /original/dir :
|
|
|
|
find /original/dir -exec ./compare_file '{}' /original/dir /media/dvd ';' \
|
|
|
|
| less
|
|
|
|
and vice versa:
|
|
|
|
find /media/dvd -exec ./compare_file '{}' /media/dvd /original/dir ';' \
|
|
|
|
| less
|
|
|
|
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
2010-01-27 14:06:56 +00:00
|
|
|
it under the terms of the GNU General Public License version 2 or later
|
|
|
|
as published by the Free Software Foundation.
|
2008-02-14 08:44:29 +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
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
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>
|
2011-01-17 09:25:21 +00:00
|
|
|
Copyright (C) 2006-2011 Mario Danic, Vreixo Formoso, Thomas Schmitt.
|
2008-02-14 08:44:29 +00:00
|
|
|
|
2010-02-10 15:02:11 +00:00
|
|
|
We will not raise any legal protest to dynamic linking of our libraries
|
|
|
|
with applications that are not under GPL, as long as they fulfill
|
2010-01-25 15:02:59 +00:00
|
|
|
the condition of offering the library source code used, whether
|
2010-02-10 15:02:11 +00:00
|
|
|
altered or unaltered, under the GPLv2+, along with the application.
|
2010-01-25 15:02:59 +00:00
|
|
|
Nevertheless, the safest legal position is not to link libburn with
|
|
|
|
non-GPL compatible programs.
|
|
|
|
|
2008-02-14 08:44:29 +00:00
|
|
|
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
|
2010-01-25 15:02:59 +00:00
|
|
|
libisoburn does not stem from their code.
|
2008-02-14 08:44:29 +00:00
|
|
|
|