Using a CD writer under Linux

CD writer drives have become an almost standard feature of a modern PC. To help you get the most from this useful piece of hardware, this column looks at using a CD writer with Linux.

There are three required packages: cdrecord, mkisofs and X-CD-Roast. Each of these applications needs to be installed before you can begin burning CDs under Linux.


If you are using a recent distribution of Linux, you may be able to use your CD writer immediately. To test this, run the X-CD-Roast program by typing:

$ xcdroast

in a shell while running X11. As this is the first time X-CD-Roast has been run, it will need to be configured through the setup menu.

The first setup screen will list all of the drives in your system. If you can see your CD writer in this list, it can be used straight away and you can skip ahead to the next section. If the drive is not in the list, you will need to take the following steps:

1. Identify the device for your CD writer. The primary master IDE drive is called "hda", the primary slave IDE drive "hdb", the secondary master IDE drive "hdc". In my case, my CD writer is hdc. If you are unsure, device information for each drive is displayed as Linux boots.

2. If you use LILO to boot Linux, add the following to the end of /etc/lilo.conf:


substituting your device for hdc. After saving the changes, reinstall lilo by typing:

$ lilo

3. If you use GRUB to boot Linux, edit /boot/grub/grub.conf or /etc/grub.conf and add to the line similar to kernel /vmlinuz ro root=/dev/hda1 the following:


again substituting your device for hdc.

4. Add the following to /etc/modules.conf:

options ide-cd ignore=hdc

pre-install sg modprobe ide-scsi

Reboot your computer and the drive should appear in the list presented by X-CD-Roast. If it is still not there, you may be able to add it by typing in a shell:

$ modprobe ide-scsi

and restarting X-CD-Roast.

To configure X-CD-Roast, step through each menu and adjust the settings to suit your hardware. You will need to add a temporary image directory under the menu "HD Settings". This directory should be on a drive with a large amount of free space.

To add the directory, type the full path in the box labelled "Path" and click Add. When complete, click Save configuration to make the settings permanent.

Burning CDs

X-CD-Roast can burn CDs from disk or images (such as an ISO), and perform CD-to-CD copies.

To burn a CD from data on your hard disk, click Create CD in the main menu. The next screen has many tools for burning different types of CDs; we want to master and burn a CD from disk, so click Master Tracks.

The Master Tracks menu displays the current layout of the CD to be recorded on the left, and a listing of directories on the right. Adding directories to the CD layout is as easy as selecting each directory and clicking Add. Each time you add a directory you will be asked where you want it to appear on the CD. Select an appropriate path. Most of the time you will want to select "Add with last path component".

Once you have added all the directories you want to burn, click on the ISO9660 Options tab. Select Rock Ridge + Joliet for the predefined image type to ensure maximum compatibility. You can skip the "Boot options" tab unless you want to make the CD bootable. If you want to record some information on the CD, add it under the "ISO9660 header" tab.

To burn the image, select the Create session/image tab. First click the Calculate size button, then select the length of media and check the burning options. Finally, to burn the CD, click Master and write on-the-fly. If you are using CD-RW media you can also blank a CD-RW at this menu, i.e. remove any existing data.

To perform a CD-to-CD copy, select Duplicate CD from the main menu. On the next menu, click the Write CD button on the left. Place the CD to be copied in a drive and select this drive in the Read Device menu. To begin the copy, place a blank CD in your CD writer and click the Write CD button at the bottom of the screen.

Join the PC World newsletter!

Error: Please check your email address.

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Alastair Cousins

PC World
Show Comments

Cool Tech

Crucial Ballistix Elite 32GB Kit (4 x 8GB) DDR4-3000 UDIMM

Learn more >

Gadgets & Things

Lexar® Professional 1000x microSDHC™/microSDXC™ UHS-II cards

Learn more >

Family Friendly

Lexar® JumpDrive® S57 USB 3.0 flash drive 

Learn more >

Stocking Stuffer

Plox Star Wars Death Star Levitating Bluetooth Speaker

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest News Articles


GGG Evaluation Team

Kathy Cassidy


First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni


For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Steph Mundell


The Fujitsu LifeBook UH574 allowed for great mobility without being obnoxiously heavy or clunky. Its twelve hours of battery life did not disappoint.

Andrew Mitsi


The screen was particularly good. It is bright and visible from most angles, however heat is an issue, particularly around the Windows button on the front, and on the back where the battery housing is located.

Simon Harriott


My first impression after unboxing the Q702 is that it is a nice looking unit. Styling is somewhat minimalist but very effective. The tablet part, once detached, has a nice weight, and no buttons or switches are located in awkward or intrusive positions.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?