Tonic for your Backup Woes: CD Backups In Linux (Part One) - Page 2

By Carla Schroder | Posted Jan 8, 2003
Page 2 of 3   |  Back to Page 1
Print ArticleEmail Article
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn


SCSI Emulation

ATAPI drives need to use the ide-scsi pseudo device driver. Most modern Linux distributions have this compiled into the kernel. Search your system for the ide-scsi kernel module:

$ locate ide-scsi.o
/lib/modules/2.4.19/kernel/drivers/scsi/ide-scsi.o

If it is not present, the kernel needs to be recompiled. See Resources for more information.

Your particular flavor of Linux may have nice graphical config tools to set up ide-scsi. All that is necessary is a minor edit of two files: /etc/modules.conf (in Debian /etc/modules) and your bootloader, GRUB or LILO. These two lines appear in my /etc/modules:

ide-cd ignore=\"hdb hdc\"
ide-scsi

By default, the IDE subsystem claims all ATA devices for its own. The "ignore" line enables the SCSI subsystem to grab both my CD-RW and CD-ROM. If you want to copy CDs, both drives will need to use the ide-scsi pseudo device driver. If you don't want to enable SCSI emulation on your CD-ROM, another way to copy a CD is to mount the drive and copy all the files,

Add the following to the end of lilo.conf:

append="hdb=ide-scsi"
append="hdc=ide-scsi"

Next, add this line to /etc/grub.conf or to the "kernel" line in Debian /boot/grub/menu.lst:

hdb=scsi hdc=scsi

Be sure to use the correct hdn designation for your drives.


GUI/ No GUI

There are many GUI programs for CD writing in Linux: X-CD-Roast, gcombust, KonCD, Gnome Toaster, and eroaster, just to name a few. All are graphical front ends for the three core CD writing programs: cdroaster, mkisofs, and cdrdao (and sometimes cdparanoia as well for ripping music tracks). cdrdao, "disk-at-once", is primarily for writing audio tracks. It also enables copying-on-the-fly and writing mixed mode disks. We'll stick to data recording in this article.

Understanding cdroaster and mkisofs has three benefits: the GUI programs will be more understandable, you'll have the option of burning disks without running X, and you'll find these tools have more options than most of the GUI front-ends.

Page 3: Burning Disks


Comment and Contribute
(Maximum characters: 1200). You have
characters left.
Get the Latest Scoop with Enterprise Networking Planet Newsletter