| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|---|
| 2 | <html>
|
|---|
| 3 | <head>
|
|---|
| 4 | <meta http-equiv="content-type"
|
|---|
| 5 | content="text/html; charset=ISO-8859-1">
|
|---|
| 6 | <title>udftools</title>
|
|---|
| 7 | <meta name="author" content="Richard A Downing FBCS">
|
|---|
| 8 | </head>
|
|---|
| 9 | <body>
|
|---|
| 10 | <div class="sect1">
|
|---|
| 11 | <h1 class="sect1"><a name="cdrtools">Udftools-1.0.0b2</a></h1>
|
|---|
| 12 | <div class="sect2">
|
|---|
| 13 | <h2 class="sect2"><a name="AEN13759">Introduction to udftools</a></h2>
|
|---|
| 14 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 15 | <tbody>
|
|---|
| 16 | <tr>
|
|---|
| 17 | <td>
|
|---|
| 18 | <pre class="screen">Download location (HTTP): http://prdownloads.sourceforge.net/linux-udf/udftools-1.0.0b2.tar.gz?download<br>Version used: 1.0.0b2<br>Package size: 179 KB<br>Estimated Disk space required: ??<br></pre>
|
|---|
| 19 | </td>
|
|---|
| 20 | </tr>
|
|---|
| 21 | </tbody>
|
|---|
| 22 | </table>
|
|---|
| 23 | <p>The udftools package contains utilities for creating and mounting
|
|---|
| 24 | CD-RW disks with udf filesystems for both reading and writing.
|
|---|
| 25 | Udf filesystems are used on both CD-RW media and on DVD. For more
|
|---|
| 26 | details of the udf filesystem standard see: http://www.osta.org
|
|---|
| 27 | and http://www.ecma.org</p>
|
|---|
| 28 | <p>[Note: these instructions have only been tested for CD-RW media]<br>
|
|---|
| 29 | </p>
|
|---|
| 30 | <p>The kernels in 2.4 series include the drivers for reading udf
|
|---|
| 31 | filesystems on CD-RW media, but packet-writing is not fully functional,
|
|---|
| 32 | so a patch must be installed on the kernel to update the packet-writing
|
|---|
| 33 | subsystem. The patch for linux-2.4.20 can be downloaded from:
|
|---|
| 34 | http://w1.894.telia.com/~u89404340/patches/packet/2.4/packet-2.4.20.patch.bz2</p>
|
|---|
| 35 | <div class="sect2">
|
|---|
| 36 | <h2 class="sect2"><a name="AEN13765">Installation of the kernel patch<br>
|
|---|
| 37 | </a></h2>
|
|---|
| 38 | <p>Download and unpack the patch, and change to the kernel source
|
|---|
| 39 | directory to patch the kernel with the following command:<br>
|
|---|
| 40 | </p>
|
|---|
| 41 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 42 | <tbody>
|
|---|
| 43 | <tr>
|
|---|
| 44 | <td>
|
|---|
| 45 | <pre class="screen"><kbd class="userinput">patch -Np1 -i packet-2.4.20.patch</kbd></pre>
|
|---|
| 46 | </td>
|
|---|
| 47 | </tr>
|
|---|
| 48 | </tbody>
|
|---|
| 49 | </table>
|
|---|
| 50 | <br>
|
|---|
| 51 | In the kernel configuration, check your settings with those listed here:<br>
|
|---|
| 52 | <br>
|
|---|
| 53 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 54 | <tbody>
|
|---|
| 55 | <tr>
|
|---|
| 56 | <td>
|
|---|
| 57 | <pre class="screen"><kbd class="userinput">Block devices<br> Packet writing on CD/DVD media: Y or M<br>File Systems<br> UDF file systems support (read only) Y<br> UDF write support (DANGEROUs) Y<br></kbd></pre>
|
|---|
| 58 | </td>
|
|---|
| 59 | </tr>
|
|---|
| 60 | </tbody>
|
|---|
| 61 | </table>
|
|---|
| 62 | <br>
|
|---|
| 63 | Now recompile the kernel<br>
|
|---|
| 64 | <br>
|
|---|
| 65 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 66 | <tbody>
|
|---|
| 67 | <tr>
|
|---|
| 68 | <td>make dep &&<br>
|
|---|
| 69 | make bzImage&&<br>
|
|---|
| 70 | make modules &&<br>
|
|---|
| 71 | make modules_install<br>
|
|---|
| 72 | </td>
|
|---|
| 73 | </tr>
|
|---|
| 74 | </tbody>
|
|---|
| 75 | </table>
|
|---|
| 76 | <br>
|
|---|
| 77 | Copy /usr/src/linux/arch/i386/boot/bzImage and
|
|---|
| 78 | /usr/src/linux/System.map to /boot, edit /etc/lilo.conf appropriately
|
|---|
| 79 | and run lilo.<br>
|
|---|
| 80 | If you build the packet writer as a module, add the following to
|
|---|
| 81 | /etc/modules.conf:<br>
|
|---|
| 82 | <br>
|
|---|
| 83 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 84 | <tbody>
|
|---|
| 85 | <tr>
|
|---|
| 86 | <td>alias block-major-97 pktcdvd<br>
|
|---|
| 87 | </td>
|
|---|
| 88 | </tr>
|
|---|
| 89 | </tbody>
|
|---|
| 90 | </table>
|
|---|
| 91 | <br>
|
|---|
| 92 | Finally, create the packet driver device nodes in /dev, add one node
|
|---|
| 93 | for every CD-RW drive you want to support:<br>
|
|---|
| 94 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 95 | <tbody>
|
|---|
| 96 | <tr>
|
|---|
| 97 | <td>mknod /dev/pktcdvd0 b 97 0<br>
|
|---|
| 98 | mknod /dev/pktcdvd1 b 97 1<br>
|
|---|
| 99 | ...</td>
|
|---|
| 100 | </tr>
|
|---|
| 101 | </tbody>
|
|---|
| 102 | </table>
|
|---|
| 103 | <pre></pre>
|
|---|
| 104 | </div>
|
|---|
| 105 | </div>
|
|---|
| 106 | <div class="sect2">
|
|---|
| 107 | <h2 class="sect2"><a name="AEN13765">Installation of udftools</a></h2>
|
|---|
| 108 | <p>Install udftools by running the following commands:</p>
|
|---|
| 109 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 110 | <tbody>
|
|---|
| 111 | <tr>
|
|---|
| 112 | <td> ./configure --prefix=/usr &&<br>
|
|---|
| 113 | make &&<br>
|
|---|
| 114 | make install<br>
|
|---|
| 115 | </td>
|
|---|
| 116 | </tr>
|
|---|
| 117 | </tbody>
|
|---|
| 118 | </table>
|
|---|
| 119 | </div>
|
|---|
| 120 | <div class="sect2">
|
|---|
| 121 | <h2 class="sect2"><a name="AEN13779">Contents</a></h2>
|
|---|
| 122 | <p>The udftools package contains the utility needed to set up and break
|
|---|
| 123 | down connections between a kernel packet driver and a CD-RW disk drive,
|
|---|
| 124 | the udf filesystem tool, and a utility to manage CD-RW drives.
|
|---|
| 125 | Man pages are included.<br>
|
|---|
| 126 | <kbd class="userinput"></kbd></p>
|
|---|
| 127 | </div>
|
|---|
| 128 | <div class="sect2">
|
|---|
| 129 | <h2 class="sect2"><a name="AEN13792">Description</a></h2>
|
|---|
| 130 | <div class="sect3">
|
|---|
| 131 | <h3 class="sect3"><a name="AEN13794"></a>pktsetup</h3>
|
|---|
| 132 | <p>pktsetup is used to establish and break down associations between
|
|---|
| 133 | the kernel packet driver and a physical drive.<br>
|
|---|
| 134 | </p>
|
|---|
| 135 | </div>
|
|---|
| 136 | <div class="sect3">
|
|---|
| 137 | <h3 class="sect3"><a name="AEN13797">cdrwtool</a></h3>
|
|---|
| 138 | <p>cdrwtool provides facilities to manage CD-RW drives, including
|
|---|
| 139 | formatting new disks, setting the read and write speeds etc..<br>
|
|---|
| 140 | </p>
|
|---|
| 141 | </div>
|
|---|
| 142 | <div class="sect3">
|
|---|
| 143 | <h3 class="sect3"><a name="AEN13800">mkudffs</a></h3>
|
|---|
| 144 | <p>mkudffs is used to create new udf filesystems, it can be used on
|
|---|
| 145 | hard disks and CD-R as well as CD-RW.<br>
|
|---|
| 146 | </p>
|
|---|
| 147 | </div>
|
|---|
| 148 | <div class="sect3">
|
|---|
| 149 | <div class="sect2">
|
|---|
| 150 | <h2 class="sect2"><a name="AEN13765">Configuring udftools</a></h2>
|
|---|
| 151 | <p>There is additional material, including details of usage and a
|
|---|
| 152 | sample bootscript in the LFS hint:<br>
|
|---|
| 153 | </p>
|
|---|
| 154 | <p> http://hints.linuxfromscratch.org/hints/cdrw-hint.txt<br>
|
|---|
| 155 | </p>
|
|---|
| 156 | <p>However, the following commands illustrate the usage of the tools:<br>
|
|---|
| 157 | </p>
|
|---|
| 158 | <table border="0" bgcolor="#e0e0e0" width="100%">
|
|---|
| 159 | <tbody>
|
|---|
| 160 | <tr>
|
|---|
| 161 | <td>
|
|---|
| 162 | <pre><br>cdrwtool -d /dev/scd0 -q<br><br>pktsetup /dev/pktcdvd0 /dev/scd0<br><br>mount /dev/pktcdvd0 /mnt/cdrom -t udf -o rw,noatime<br></pre>
|
|---|
| 163 | </td>
|
|---|
| 164 | </tr>
|
|---|
| 165 | </tbody>
|
|---|
| 166 | </table>
|
|---|
| 167 | <br>
|
|---|
| 168 | <h2>Command explanations</h2>
|
|---|
| 169 | cdrwtool -d /dev/scd0 -q: prepares a new CD-RW for use and formats it
|
|---|
| 170 | with a udf filesystem.<br>
|
|---|
| 171 | pktsetup /dev/pktcdvd0 /dev/scd0: associates the physical device
|
|---|
| 172 | /dev/scd0 with the kernel packet driver /dev/pktcdvd0.<br>
|
|---|
| 173 | mount /dev/pktcdvd0 /mnt/cdrom -t udf -o rw,noatime: mounts a udf
|
|---|
| 174 | formatted CD-RW for read/write access. See man mount for details of the
|
|---|
| 175 | switches available for udf filesystems.<br>
|
|---|
| 176 | <br>
|
|---|
| 177 | </div>
|
|---|
| 178 | <div class="sect2"></div>
|
|---|
| 179 | </div>
|
|---|
| 180 | </div>
|
|---|
| 181 | </div>
|
|---|
| 182 | </body>
|
|---|
| 183 | </html>
|
|---|
| 184 |
|
|---|