The Caboteria / Tech Web / CdWriter (revision 3)
HP 9350i 10x4x32 IDE, slave on ide0

Read CD-writing HOWTO at LDP ( http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO.html ).

In a nutshell you need to configure the ide-scsi module so that the cdrecord tool thinks it's writing to a scsi burner. Note that the device shows up as /dev/scd0, not /dev/hdd.

poohpa:~# cdrecord -scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
Using libscg version 'schily-0.1'
scsibus0:
		  0,0,0	  0) 'HP		' 'CD-Writer+ 9300 ' '1.0b' Removable CD-ROM
		  0,1,0	  1) *
		  0,2,0	  2) *
		  0,3,0	  3) *
		  0,4,0	  4) *
		  0,5,0	  5) *
		  0,6,0	  6) *
		  0,7,0	  7) *
poohpa:~# 

You use mkisofs to make the iso 9660 filesystem image and then cdrecord to write it to the disk (both packages can be dselected). For example, this will build a filesystem image called /mnt/test/cd_image with /home/cvs as /cvs, /home/www as /www, and /home/postgres as /postgres:

# cd /home
# mkisofs -r -o /mnt/test/cd_image cvs/=cvs www/=www postgres/=postgres

You can mount the image via loopback to see if it's what you want:

# mount -t iso9660 -o ro,loop=/dev/loop0 /mnt/test/cd_image /mnt/cdrom

Then you can burn a CD with the image (note that the blank=fast flag tells cdrecord to erase the media first - this only works with cd/rw media, also note that the "0,0,0" matches what cdrecord -scanbus output above):

# cdrecord -v speed=4 dev=0,0,0 blank=fast -data /mnt/test/cd_image 

Alternatively you can pipe the output of mkisofs into cdrecord. This doesn't chew up a lot of temporary disk storage, but you don't get to look at the results before you burn them. This is probably OK if you're using cd/rw media or if you're running the same script over and over (e.g. backups):

# cd /home
# mkisofs -r cvs/=cvs www/=www postgres/=postgres | cdrecord -v speed=4 dev=0,0,0 blank=fast -data -

The HOWTO talks about having to do a pro-forma mkisofs run to find out how big the image will be but it appears that the HP 9350i doesn't require this.

-- TobyCabot - 03 Jan 2001

Edit | Attach | Print version | History: r14 | r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback