TAMS

Home | Products | Support | How to Order | Contact Us | Search  

  
TAMS CDwriter Command Line Examples

1. Creating a CD from the HP-UX file system:
2. Creating a CD from another CD:
3. Creating an Image File:
4. Creating a CD from an Image File:
5. Creating an Image File from a CD:
6. Erasing a CD-RW disk:
7. Creating Multiple Copies:

1. Creating a CD from the HP-UX file system:

mkisofs -a -f -R -X -s -d -D -N -L /tmp/Cddata | cdrecord -v -speed=2 -dev=0,2,0 -eject -fs=4096K -

Creates a CD image of /tmp/Cddata. To include globs exclusions when running mkisofs from a shell, it is important to place wildcards inside quotation marks; e.g. -m ?*.o?.

2. Creating a CD from another CD:

dd if=/dev/rdsk/c0t5d0 bs=1024 | cdrecord -v -speed=2 -dev=0,2,0 -eject -fs=4096K -

Creates a CD image of the CD in a drive at SCSI id five. This should be run as root as read permission is needed on the raw device file.

3. Creating an Image File:

mkisofs -o imagefile.name -a -f -R -X -s -d -D -N -L /tmp/Cddata

Creates an ISO9660 image of the directory /tmp/Cddata.

4. Creating a CD from an Image File:

cdrecord -v -speed=2 -dev=0,2,0 -eject -fs=4096K imagefile.name

Writes an image file to the CDR (W).

5. Creating an Image File from a CD:

dd if=/dev/rdsk/c0t5d0 of=imagefile.name bs=1024

Reads the filesystem image from a raw device to a file. As above, this command needs to be run as root.

6. Erasing a CD-RW disk:

cdrecord -v -speed=2 -dev=0,2,0 -blank=fast

Performs a fast erase of the CDRW disk in the device at SCSI id two.

7. Creating Multiple Copies

Included with the CDwriter package is a shell script called cdcopy. This script automates the procedure of making multiple copies of a CD. You must have enough disk space available to hold the whole CD image. To run cdcopy, place the CD to be copied in the CDR (W) drive and type:

cdcopy scsi-bus scsi-id scsi-lun <filename>

Where; scsi-bus, scsi-id and scsi-lun, correspond to the address of the CDR (W) device. You will be prompted to remove the source CD and to insert blank disks. After you have finished you should remove the file <filename>.

   

 Home | Products | Distributors | Support | Company Info | How to Order | Contact Us | Search

 
All referenced prices are United States Dollars.
Copyright © 1997-2005 Test & Measurement Systems Inc.
Other products and companies referred to herein are trademarks or registered trademarks of their respective companies or mark holders.  Specifications are subject to change without notice.

Test & Measurement Systems Inc.
750 14th Street SW
Loveland, CO 80537

Tel:  + 970-669-6553
Fax: + 970-669-3090
info@tamsinc.com

 

Last Updated: 18 October, 2005