Using a DVD writer

Before you can start using your DVD writer with a Linux operating system, there are a couple of installation steps to be performed. If you are using an internal DVD writer, then you will need to make a small modification to the boot configuration of your system, described immediately below. If you are using an external USB or FireWire DVD writer, skip this installation process and proceed to the end of this section.

Installation

Once you have physically installed the DVD writer into your computer, switch on the PC. Type dmesg and a lot of information will appear on the screen. Scroll back through this information until you find the line identifying your DVD writer — it will look similar to the following:

hdc: Hewlett-Packard DVD Writer 300, ATAPI CD/DVD-ROM drive

This line identifies your DVD writer as well as the device it is located on, in this case hdc. Next, if your system boots with Grub, open /boot/grub/grub.conf using a text editor. Modify the line prefixed with “kernel” to include “hdc=ide-scsi” at the end. For example:

kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdc=ide-scsi

If your system boots with LILO, open /etc/lilo.conf using a text editor and modify the line prefixed with “append” to include “hdc=ide-scsi” as below:

append=”root=LABEL=/ hdc=ide-scsi”

Run /sbin/lilo to make the changes to LILO permanent. Reboot your computer once you have modified Grub or LILO. If you have an external USB or FireWire DVD writer there is no need to make any changes to your system configuration; simply plug in the drive and turn it on. Typing dmesg in a shell should return some information that indicates the writer has been detected, similar to this:

scsi0: SCSI emulation for USB Mass Storage devices
Vendor: PIONEER Model: DVD-RW DVR-106D Rev: 1.05
Type: CD-ROM ANSI SCSI revision: 02

To use a DVD writer with Linux you must install the cdrecord-ProDVD tool. You can download the latest version from ftp://ftp.berlios.de/pub/cdrecord/ProDVD/. Make sure you download the file with the highest version number that ends in “i586-pc-linux-gnu”. Also download cdrecord-wrapper.sh. To install cdrecord-ProDVD, type the following in a shell while logged in as root:

$ chmod 755 cdrecord-wrapper.sh
$ mv /usr/bin/cdrecord-ProDVD
$ mv cdrecord-wrapper.sh /usr/bin

Replace with the name of the file you downloaded. To test cdrecord-ProDVD and receive a report on your DVD writer’s capabilities, type the following in a shell:

$ cdrecord-wrapper.sh -prcap dev=/dev/sg0

Burning and copying DVDs

To back up a directory on your hard disk to DVD, type the following two lines in a shell:

$ mkisofs -R -J -split-output -o imagefile .
$ cdrecord-wrapper.sh dev=/dev/sg0 speed= -v imagefile*

The first line creates an image containing all of the files and directories in the current directory and stores it in a file named imagefile. The second line calls cdrecord-ProDVD and writes the image file to the blank DVD. Set the value of max_writer_speed to your DVD writer’s maximum speed. If you want to back up a number of directories located in different parts of your hard disk to a single DVD, create a temporary directory and build a collection of symbolic links to each directory you wish to include. For example:

$ mkdir cdlayout
$ cd cdlayout
$ ln -s /some/where/dir1 dir1
$ ln -s /else/where/dir2 dir2

Burning the DVD from the ‘cdlayout’ directory will now include the directories dir1 and dir2, located on different parts of your hard drive. Copying a DVD (or CD) is almost as easy. You will need to download the readcd tool from the cdrecord-ProDVD ftp site. Once downloaded, install it by typing in a shell as root:

$ chmod 755
$ mv /usr/bin/readcd

Once readcd is installed, you can use it to make an image of the DVD in your drive by typing:

$ readcd dev=/dev/sg0 f=imagefile

The image, stored in imagefile, can then be burned to DVD by typing:

$ cdrecord-wrapper.sh dev=/dev/sg0 speed= -v imagefile

This command is almost identical to the previous command used to burn a directory tree to DVD.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Alastair Cousins

PC World
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Kurt Hegetschweiler

Brother PocketJet PJ-773 A4 Portable Thermal Printer

It’s perfect for mobile workers. Just take it out — it’s small enough to sit anywhere — turn it on, load a sheet of paper, and start printing.

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?