<html><head> <link rel="shortcut icon" href="http://www.pond-weed.com/dvd/disk-cd.ico"><title>DVD and CDRW packet writing patch</title></head> <body> <h1>Packet writing to CDRWs and DVDs</h1> <p> You need to apply the following patches in the following order: </p><ul> <li> The CDRW packet writing patch from <a href="http://w1.894.telia.com/%7Eu89404340/patches/packet/2.4/packet-2.4.23-pre8.patch.bz2">here</a>. <br> <b>Note</b> The previous version of this patch destroyed some LG CDROM drives which had a firmware bug. This updated version is safe. </li><li> A modified DVD+RW patch from <a href="http://w1.894.telia.com/%7Eu89404340/patches/packet/2.4/dvd-packet-2.4.20.patch.bz2">here</a>. </li><li> My patch from <a href="http://www.pond-weed.com/dvd/dvd+cdrw-2.4.22.patch">here</a>. </li><li> Finally, a patch <a href="http://www.pond-weed.com/dvd/dvd-minus-rw-2.4.22.patch">here</a> to make it work with DVD-RW; this patch was published by Dyson on the Suse packet-writing mailing list. </li></ul> This has been tested for kernel version 2.4.22; it should work with 2.4.21 and 2.4.23 also, but I haven't tried it. <p></p> <p> What does this do? </p><ul> <li> The CDRW packet writing patch allows you to mount a CDRW and treat it just like any other disk - you can copy files to it, delete them, rename them,... and so on. Of course the performance is slow. Read the instructions on how to do this <a href="http://homepage.dtn.ntl.com/richard.downing/CD-RW_UDF_Filesystem.html">here</a>. </li><li> The DVD+RW patch allows you to do the same thing with DVD+RW disks. The instructions (with a link to the original version of this patch) are <a href="http://fy.chalmers.se/%7Eappro/linux/DVD+RW/">here</a>. The above link is to a modified version of the DVD+RW patch which is source-compatible with the CDRW patch. </li><li> My patch fixes two problems with the previous two patches: <ul> <li> The DVD+RW patch causes the CDRW patch to stop working. </li><li> The DVD+RW patch only works with some DVD writers. In particular, it doesn't work with my NEC ND1300 writer. If you have this problem, apply all three patches, follow the instructions for making the /dev/pktcdvd0 device and running the pktsetup program, and then use /dev/pktcdvd0 instead of /dev/scd0 for mounting your dvd+rw disk. </li></ul> </li><li> Finally, Dyson's patch makes it all work with DVD-RW disks. </li></ul> The big problem at the moment is performance. Copying a lot of small files onto a packet-written CDRW or DVD is <i>very</i> slow. If you've got enough patience, you'll find that it <i>does</i> work, but it is certainly not usable. Copying a few large files is fine, though. <p></p> <p> You might also like to look at the links below, especially if you're using the 2.4.23 kernel. It looks like the more recent versions of the CDRW and DVD+RW patches incorporate my changes, so that they now work together nicely. The instructions below on how to format and mount disks are still relevent, though. </p> <p> </p><h2>Instructions</h2> <ol> <li> Once you've applied the first patch, you can write to CDRWs as though they were very large, slow floppy disks. You format the disk and make a file system on it with the command <pre>cdrwtool -d /dev/scd0 -q</pre> and then mount it with <pre>mount /dev/pktcdvd0 /mnt/cdrom -t udf -o noatime</pre> </li><li> The second patch allows you to do the same sort of thing with DVD+RWs, but it only works with some DVD writers (Sony but not NEC). Once you've applied this patch, you can make a file system on the DVD+RW with the command <pre>mkudffs /dev/scd0</pre> and mount the disk with <pre>mount /dev/scd0 /mnt/cdrom -t udf -o noatime</pre> </li><li> When you apply the second patch, the first (CDRW) patch stops working. The third patch repairs this; once you've applied the third patch, you can use both CDRWs and DVD+RWs as described above. </li><li> If you've got a DVD writer for which the second patch does not work (such as an NEC ND1300) all is not lost. Just apply the third patch. Then format the disk with the command <pre>dvd+rw-format /dev/scd0</pre> and make a file system with the command <pre>mkudffs /dev/pktcdvd0</pre> and mount the disk with <pre>mount /dev/pktcdvd0 /mnt/cdrom -t udf -o noatime</pre> </li><li> Finally, if you want to use a DVD-RW disk, you need to apply all four patches. Then you need to put the disk into restricted-overwrite mode by typing <pre>dvd+rw-format /dev/scd0</pre> and then fill the disk with binary zeros <pre>growisofs -Z /dev/scd0=/dev/null</pre> and make a file system on it <pre>mkudffs /dev/pktcdvd0</pre> and finally mount it with <pre>mount /dev/pktcdvd0 /mnt/cdrom -t udf -o noatime</pre> </li></ol> <p></p> <p> </p><h4>Links:</h4> <a href="http://w1.894.telia.com/%7Eu89404340/packet.html">Linux CDRW packet writing</a> <br> <a href="http://fy.chalmers.se/%7Eappro/linux/DVD+RW/">DVD+RW/+R/-R[W] for Linux</a> <br> <a href="http://dyson.kristenscatbeds.com/">Another collection of DVD and CDRW patches, more recent than mine</a> <br> <a href="http://packet-cd.sourceforge.net/maillist.php3">suse packet-writing mailing list</a> <br> <a href="http://lists.debian.org/cdwrite/">cdwrite mailing list</a> <br> <a href="mailto:john%20AT%20pond-weed%20DOT%20com">The author</a> <p></p> </body></html>