aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cdrom/packet-writing.txt
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /Documentation/cdrom/packet-writing.txt
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'Documentation/cdrom/packet-writing.txt')
-rw-r--r--Documentation/cdrom/packet-writing.txt97
1 files changed, 97 insertions, 0 deletions
diff --git a/Documentation/cdrom/packet-writing.txt b/Documentation/cdrom/packet-writing.txt
new file mode 100644
index 000000000000..3d44c561fe6d
--- /dev/null
+++ b/Documentation/cdrom/packet-writing.txt
@@ -0,0 +1,97 @@
1Getting started quick
2---------------------
3
4- Select packet support in the block device section and UDF support in
5 the file system section.
6
7- Compile and install kernel and modules, reboot.
8
9- You need the udftools package (pktsetup, mkudffs, cdrwtool).
10 Download from http://sourceforge.net/projects/linux-udf/
11
12- Grab a new CD-RW disc and format it (assuming CD-RW is hdc, substitute
13 as appropriate):
14 # cdrwtool -d /dev/hdc -q
15
16- Setup your writer
17 # pktsetup dev_name /dev/hdc
18
19- Now you can mount /dev/pktcdvd/dev_name and copy files to it. Enjoy!
20 # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
21
22
23Packet writing for DVD-RW media
24-------------------------------
25
26DVD-RW discs can be written to much like CD-RW discs if they are in
27the so called "restricted overwrite" mode. To put a disc in restricted
28overwrite mode, run:
29
30 # dvd+rw-format /dev/hdc
31
32You can then use the disc the same way you would use a CD-RW disc:
33
34 # pktsetup dev_name /dev/hdc
35 # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
36
37
38Packet writing for DVD+RW media
39-------------------------------
40
41According to the DVD+RW specification, a drive supporting DVD+RW discs
42shall implement "true random writes with 2KB granularity", which means
43that it should be possible to put any filesystem with a block size >=
442KB on such a disc. For example, it should be possible to do:
45
46 # dvd+rw-format /dev/hdc (only needed if the disc has never
47 been formatted)
48 # mkudffs /dev/hdc
49 # mount /dev/hdc /cdrom -t udf -o rw,noatime
50
51However, some drives don't follow the specification and expect the
52host to perform aligned writes at 32KB boundaries. Other drives do
53follow the specification, but suffer bad performance problems if the
54writes are not 32KB aligned.
55
56Both problems can be solved by using the pktcdvd driver, which always
57generates aligned writes.
58
59 # dvd+rw-format /dev/hdc
60 # pktsetup dev_name /dev/hdc
61 # mkudffs /dev/pktcdvd/dev_name
62 # mount /dev/pktcdvd/dev_name /cdrom -t udf -o rw,noatime
63
64
65Packet writing for DVD-RAM media
66--------------------------------
67
68DVD-RAM discs are random writable, so using the pktcdvd driver is not
69necessary. However, using the pktcdvd driver can improve performance
70in the same way it does for DVD+RW media.
71
72
73Notes
74-----
75
76- CD-RW media can usually not be overwritten more than about 1000
77 times, so to avoid unnecessary wear on the media, you should always
78 use the noatime mount option.
79
80- Defect management (ie automatic remapping of bad sectors) has not
81 been implemented yet, so you are likely to get at least some
82 filesystem corruption if the disc wears out.
83
84- Since the pktcdvd driver makes the disc appear as a regular block
85 device with a 2KB block size, you can put any filesystem you like on
86 the disc. For example, run:
87
88 # /sbin/mke2fs /dev/pktcdvd/dev_name
89
90 to create an ext2 filesystem on the disc.
91
92
93Links
94-----
95
96See http://fy.chalmers.se/~appro/linux/DVD+RW/ for more information
97about DVD writing.