Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

Burn CDs with the Solaris™ 8 Operating Environment

  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss
Solaris 8 Essential Reference

Like this article? We recommend
Solaris 8 Essential Reference

CD-ROM drives are commonly used for duplicating existing CDs, and for making CD data backups of hard disk files. This article demonstrates how both tasks can be accomplished using cdrecord on the Solaris™ Operating Environment.

A simple command-line program, cdrecord, makes burning CDs with Solaris software quick, simple, and cost-effective. The cdrecord program, which works for both SPARC™ and Intel architecture systems, is included on the Solaris Software Companion CD (Update 2 and higher), and is also available for free download from http://www.sun.com/software/solaris/freeware/download.html.

While optional, configuring a cdrecord startup file, /etc/default/cdrecord, will save time in the future. This startup configuration file can hold information that cdrecord will need every time it's used, such as the CD recorder's speed, device name, the preferred buffer size, and so on. Alternatively, these options can be entered into the command line before every use.

The first step is to identify the CD recorder device name, which can be found by scanning the device buses. In order to scan the devices, however, the volume management must be turned off.

  1. Log in as root.

  2. Turn off volume management by typing /etc/init.d/volmgt stop.

  3. Discover the CD recorder and CD-ROM drive device names by typing cdrecord -scanbus at the root prompt. The command output should be similar to this:

    # cdrecord -scanbus
    cdrecord 1.9 (i386-pc-solaris2.8) Copyright (C) 1995-2000
    1,0,0 100) 'CREATIVE' 'CD5233E ' '1.00' Removable 
      CD-ROM
    2,4,0 204) 'PLEXTOR' 'CD-R PX-R820T' '1.05' Removable 
      CD-ROM

The device ID is the first three numbers listed in each entry—in this case, device 2,4,0 is the CD recorder. The configuration file can also include a recording speed (for example, 8 times), and a buffer size (for example, 8 megabytes) to help avoid under runs. To create the configuration file, located in /etc/default/cdrecord, type the following:

# cat /etc/default/cdrecord
CDR_FIFOSIZE=8m
CDR_SPEED=8
CDR_DEVICE=USCSI:2,4,0

The cdrecord program startup configuration file is now set up for the future!

CD to CD

To duplicate an existing CD, insert the CD into the CD-ROM drive. (Remember, duplicating CDs might require certain copyright and license permissions!) Then follow these steps:

  1. Determine the controller and target numbers. These are listed in the cdrecord -scanbus output (from the previous steps):

  2. 1,0,0 100) 'CREATIVE' 'CD5233E ' '1.00' Removable CD-ROM

    The first number is the controller number and the second number is the target number. In this case, they're set at 1 and 0, respectively. Also note that in the Solaris 8 platform, the IDE CD-ROM drive device names are very similar to SCSI device names—both contain target numbers.

    Choose an output file with sufficient free hard disk space (at least 700MB recommended). For this example, the free space is located in the /local filesystem.

  3. Capture an ISO image file of the CD by typing the following (at the root prompt):

  4. # dd if=/dev/dsk/c1t0d0p0 of=/local/mycdromfile.iso

    It will take about 5–10 minutes to copy the entire CD image file to disk.

  5. After inserting a blank CD into the CD-ROM drive, burn the image from disk onto a second CD by typing this:

  6. # cdrecord -v /local/mycdromfile.iso

This should take about 15–30 minutes, depending on the speed of the CD burner. In the above command, -v displays each step with extra information, just in case something isn't successful.

  • Share ThisShare This
  • Your Account

Discussions

Make a New Comment

You must log in in order to post a comment.

Related Resources

Jennifer  BortelWin FREE iPhone Developer Books and Videos- Introducing @InformIT Giveaways
By Jennifer Bortel on February 5, 2010 No Comments

Apples’s recent iPad announcement made our hearts flutter so we couldn’t resist making an announcement of our own!

Today marks the first ever @InformIT Giveaway!

We’ll regularly post a video like this one profiling spectacular prizes we’re giving away—from books and videos to T-shirts and other exciting stuff. Check out the video below to see the giveaways for today, and then scroll down for more prize details and instructions on how to win them!

So Far So Good
By John Traenkenschuh on February 2, 2010 No Comments

So far, Win 7 is making a thoroughbred of what has been a plough mule laptop

Dustin Sullivan"Every OSX developer should have this book on their desk."
By Dustin Sullivan on February 1, 2010 No Comments

That was the sentence Mike Riley ended his recent Dr Dobb's CodeTalk review of Cocoa Programming Developer's Handbook with.

See All Related Blogs

Informit Network