~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/cdrom/packet-writing.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/cdrom/packet-writing.rst (Version linux-6.12-rc7) and /Documentation/cdrom/packet-writing.rst (Version linux-2.4.37.11)


  1 ==============                                    
  2 Packet writing                                    
  3 ==============                                    
  4                                                   
  5 Getting started quick                             
  6 ---------------------                             
  7                                                   
  8 - Select packet support in the block device se    
  9   the file system section.                        
 10                                                   
 11 - Compile and install kernel and modules, rebo    
 12                                                   
 13 - You need the udftools package (pktsetup, mku    
 14   Download from https://github.com/pali/udftoo    
 15                                                   
 16 - Grab a new CD-RW disc and format it (assumin    
 17   as appropriate)::                               
 18                                                   
 19         # cdrwtool -d /dev/hdc -q                 
 20                                                   
 21 - Setup your writer::                             
 22                                                   
 23         # pktsetup dev_name /dev/hdc              
 24                                                   
 25 - Now you can mount /dev/pktcdvd/dev_name and     
 26                                                   
 27         # mount /dev/pktcdvd/dev_name /cdrom -    
 28                                                   
 29                                                   
 30 Packet writing for DVD-RW media                   
 31 -------------------------------                   
 32                                                   
 33 DVD-RW discs can be written to much like CD-RW    
 34 the so called "restricted overwrite" mode. To     
 35 overwrite mode, run::                             
 36                                                   
 37         # dvd+rw-format /dev/hdc                  
 38                                                   
 39 You can then use the disc the same way you wou    
 40                                                   
 41         # pktsetup dev_name /dev/hdc              
 42         # mount /dev/pktcdvd/dev_name /cdrom -    
 43                                                   
 44                                                   
 45 Packet writing for DVD+RW media                   
 46 -------------------------------                   
 47                                                   
 48 According to the DVD+RW specification, a drive    
 49 shall implement "true random writes with 2KB g    
 50 that it should be possible to put any filesyst    
 51 2KB on such a disc. For example, it should be     
 52                                                   
 53         # dvd+rw-format /dev/hdc   (only neede    
 54                                     been forma    
 55         # mkudffs /dev/hdc                        
 56         # mount /dev/hdc /cdrom -t udf -o rw,n    
 57                                                   
 58 However, some drives don't follow the specific    
 59 host to perform aligned writes at 32KB boundar    
 60 follow the specification, but suffer bad perfo    
 61 writes are not 32KB aligned.                      
 62                                                   
 63 Both problems can be solved by using the pktcd    
 64 generates aligned writes::                        
 65                                                   
 66         # dvd+rw-format /dev/hdc                  
 67         # pktsetup dev_name /dev/hdc              
 68         # mkudffs /dev/pktcdvd/dev_name           
 69         # mount /dev/pktcdvd/dev_name /cdrom -    
 70                                                   
 71                                                   
 72 Packet writing for DVD-RAM media                  
 73 --------------------------------                  
 74                                                   
 75 DVD-RAM discs are random writable, so using th    
 76 necessary. However, using the pktcdvd driver c    
 77 in the same way it does for DVD+RW media.         
 78                                                   
 79                                                   
 80 Notes                                             
 81 -----                                             
 82                                                   
 83 - CD-RW media can usually not be overwritten m    
 84   times, so to avoid unnecessary wear on the m    
 85   use the noatime mount option.                   
 86                                                   
 87 - Defect management (ie automatic remapping of    
 88   been implemented yet, so you are likely to g    
 89   filesystem corruption if the disc wears out.    
 90                                                   
 91 - Since the pktcdvd driver makes the disc appe    
 92   device with a 2KB block size, you can put an    
 93   the disc. For example, run::                    
 94                                                   
 95         # /sbin/mke2fs /dev/pktcdvd/dev_name      
 96                                                   
 97   to create an ext2 filesystem on the disc.       
 98                                                   
 99                                                   
100 Using the pktcdvd sysfs interface                 
101 ---------------------------------                 
102                                                   
103 Since Linux 2.6.20, the pktcdvd module has a s    
104 and can be controlled by it. For example the "    
105 this interface. (see http://tom.ist-im-web.de/    
106                                                   
107 "pktcdvd" works similar to "pktsetup", e.g.::     
108                                                   
109         # pktcdvd -a dev_name /dev/hdc            
110         # mkudffs /dev/pktcdvd/dev_name           
111         # mount -t udf -o rw,noatime /dev/pktc    
112         # cp files /dvdram                        
113         # umount /dvdram                          
114         # pktcdvd -r dev_name                     
115                                                   
116                                                   
117 For a description of the sysfs interface look     
118                                                   
119   Documentation/ABI/testing/sysfs-class-pktcdv    
120                                                   
121                                                   
122 Using the pktcdvd debugfs interface               
123 -----------------------------------               
124                                                   
125 To read pktcdvd device infos in human readable    
126                                                   
127         # cat /sys/kernel/debug/pktcdvd/pktcdv    
128                                                   
129 For a description of the debugfs interface loo    
130                                                   
131   Documentation/ABI/testing/debugfs-pktcdvd       
132                                                   
133                                                   
134                                                   
135 Links                                             
136 -----                                             
137                                                   
138 See http://fy.chalmers.se/~appro/linux/DVD+RW/    
139 about DVD writing.                                
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php