Insert a blank CD into the CD-RW device.
Create the ISO 9660 file system on the new CD.
| $ mkisofs -r /pathname > cd-file-system | 
| -r | Creates Rock Ridge information and resets file ownerships to zero. | 
| /pathname | Identifies the pathname used to create the ISO 9660 file system. | 
| > cd-file-system | Identifies the name of the file system to be put on the CD. | 
Copy the CD file system onto the CD.
| $ cdrw -i cd-file-system | 
| -i cd-file-system | Specifies the image file for creating a data CD. | 
The following example shows how to create a ISO 9660 file system for a data CD.
| $ mkisofs -r /home/dubs/ufs_dir > ufs_cd Total extents actually written = 56 Total translation table size: 0 Total rockridge attributes bytes: 329 Total directory bytes: 0 Path table size(bytes): 10 Max brk space used 8000 56 extents written (0 Mb) | 
Then copy the CD file system onto the CD. For example:
| $ cdrw -i ufs_cd Initializing device...done. Writing track 1...done. Finalizing (Can take several minutes)...done. |