Udftools-1.0.0b2

Introduction to udftools

Download location (HTTP):        http://prdownloads.sourceforge.net/linux-udf/udftools-1.0.0b2.tar.gz?download
Version used: 1.0.0b2
Package size: 179 KB
Estimated Disk space required: ??

The udftools package contains utilities for creating and mounting CD-RW disks with udf filesystems for both reading and writing.  Udf filesystems are used on both CD-RW media and on DVD.  For more details of the udf filesystem standard see:  http://www.osta.org and http://www.ecma.org

[Note: these instructions have only been tested for CD-RW media]

The kernels in 2.4 series include the drivers for reading udf filesystems on CD-RW media, but packet-writing is not fully functional, so a patch must be installed on the kernel to update the packet-writing subsystem.  The patch for linux-2.4.20 can be downloaded from: http://w1.894.telia.com/~u89404340/patches/packet/2.4/packet-2.4.20.patch.bz2

Installation of the kernel patch

Download and unpack the patch, and change to the kernel source directory to patch the kernel with the following command:

patch -Np1 -i packet-2.4.20.patch

In the kernel configuration, check your settings with those listed here:

Block devices
Packet writing on CD/DVD media: Y or M
File Systems
UDF file systems support (read only) Y
UDF write support (DANGEROUs) Y

Now recompile the kernel

make dep &&
make bzImage&&
make modules &&
make modules_install

Copy /usr/src/linux/arch/i386/boot/bzImage and /usr/src/linux/System.map to /boot, edit /etc/lilo.conf appropriately and run lilo.
If you build the packet writer as a module, add the following to /etc/modules.conf:

alias block-major-97 pktcdvd

Finally, create the packet driver device nodes in /dev, add one node for every CD-RW drive you want to support:
mknod /dev/pktcdvd0 b 97 0
mknod /dev/pktcdvd1 b 97 1
...

Installation of udftools

Install udftools by running the following commands:

./configure --prefix=/usr &&
make &&
make install

Contents

The udftools package contains the utility needed to set up and break down connections between a kernel packet driver and a CD-RW disk drive, the udf filesystem tool, and a utility to manage CD-RW drives.  Man pages are included.

Description

pktsetup

pktsetup is used to establish and break down associations between the kernel packet driver and a physical drive.

cdrwtool

cdrwtool provides facilities to manage CD-RW drives, including formatting new disks, setting the read and write speeds etc..

mkudffs

mkudffs is used to create new udf filesystems, it can be used on hard disks and CD-R as well as CD-RW.

Configuring udftools

There is additional material, including details of usage and a sample bootscript in the LFS hint:

 http://hints.linuxfromscratch.org/hints/cdrw-hint.txt

However, the following commands illustrate the usage of the tools:


cdrwtool -d /dev/scd0 -q

pktsetup /dev/pktcdvd0 /dev/scd0

mount /dev/pktcdvd0 /mnt/cdrom -t udf -o rw,noatime

Command explanations

cdrwtool -d /dev/scd0 -q: prepares a new CD-RW for use and formats it with a udf filesystem.
pktsetup  /dev/pktcdvd0 /dev/scd0: associates the physical device /dev/scd0 with the kernel packet driver /dev/pktcdvd0.
mount /dev/pktcdvd0 /mnt/cdrom -t udf -o rw,noatime: mounts a udf formatted CD-RW for read/write access. See man mount for details of the switches available for udf filesystems.