This procedure describes how to put more than one session on a CD. This procedure includes an example of copying the infoA and infoB directories onto the CD.
$ mkisofs -o infoA -r -V my_infoA /data/infoA Total translation table size: 0 Total rockridge attributes bytes: 24507 Total directory bytes: 34816 Path table size(bytes): 98 Max brk space used 2e000 8929 extents written (17 Mb)
Identifies the name of the ISO file system.
Creates Rock Ridge information and resets file ownerships to zero.
Identifies a volume label to be used as the mount point by removable media services.
Identifies the ISO image directory to create.
$ cdrw -iO infoA Initializing device...done. Writing track 1...done. done. Finalizing (Can take several minutes)...done.
Identifies the name of the image file to write to the CD.
Keeps the CD open for writing.
$ eject -n . . . cdrom0 -> /vol/dev/rdsk/c2t4d0/my_infoA
Note the /vol/dev/... path name.
% cdrw -M /cdrom Device : YAMAHA CRW8424S Firmware : Rev. 1.0d (06/10/99) Track No. |Type |Start address ----------+--------+------------- 1 |Audio |0 2 |Audio |33057 3 |Data |60887 4 |Data |68087 5 |Data |75287 Leadout |Data |84218 Last session start address: 75287 Next writable address: 91118
Note the address in the Next writable address output so that you can provide this address when you write the next session.
$ mkisofs -o infoB -r -C 0,91118 -M /vol/dev/rdsk/c2t4d0/my_infoA /data/infoB Total translation table size: 0 Total rockridge attributes bytes: 16602 Total directory bytes: 22528 Path table size(bytes): 86 Max brk space used 20000 97196 extents written (189 Mb)
Identifies the name of the ISO file system.
Creates Rock Ridge information and resets file ownerships to zero.
Identifies the starting address of the first session and the next writable address.
Specifies the path of the existing ISO image to be merged.
Identifies the ISO image directory to create.