ORC Owl Logo 2  

Owl River Company

 
  Your IP is: 38.107.191.112

cAos-1 CD Burner setup

Two files are in play: /etc/modules.conf and /etc/grub.conf.

The first, /etc/grub.conf, (which is actually a symlink to /boot/grub/grub.conf), is used by the grub bootloader tool, to determine the options to pass through to the kernel. It took some experimentation to get the options straight. After all that, it turns out that the scattered 'How-To's' around the net are trying too hard. cinch, the cAos installer, gets it right enough that all that needed to be edited was /etc/modules.conf.

# grub.conf created by cinch (cAos installer) # # options ide-cd ignore=hdc # alias char-major-21 sg # pre-install sg modprobe -s -k ide-scsi # # - tried without luck # kernel /vmlinuz-2.4.23-3.caos ro root=/dev/hda3 ide-cd ignore=hdc # kernel /vmlinuz-2.4.23-3.caos ro root=/dev/hda3 options " hdc=ide-scsi " # # - test candidates - first works, with a modules.conf addition # # # http://www.tldp.org/HOWTO/SCSI-2.4-HOWTO/sr.html # default=1 timeout=10 splashimage=(hd0,0)/grub/caos-splash.xpm.gz root (hd0,0) title cAos: Community Linux release 1.0 (Yoda) 2004.02.10 (2.4.25-6.caos) kernel /vmlinuz-2.4.25-6.caos ro root=/dev/hda3 initrd /initrd-2.4.25-6.caos.img title cAos: Community Linux release BETA-1 (2004.01.10) (2.4.23-3.caos) kernel /vmlinuz-2.4.23-3.caos ro root=/dev/hda3 initrd /initrd-2.4.23-3.caos.img

In our test system, the CD burner is an IDE one, jumpered to the Master position on the Secondary IDE channel. Also in the system is a video capture card, and a no-name NIC.

The second file in play, /etc/modules.conf

# /etc/modules.conf # alias eth0 ne2k-pci alias sound-slot-0 ymfpci post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || : pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || : alias char-major-81 bttv alias usb-controller usb-uhci # # cdrecord stuff # - needed with options ide-cd ignore=hdc variant options ide-cd ignore=hdc alias char-major-21 sg pre-install sg modprobe -s -k ide-scsi # Note: for use under 2.6, changes must also be made to modprobe.conf!



Manually run:
$ sudo depmod -A which causes the system to rebuild the inter-module dependencies without a reboot. Optionally, also run:
$ sudo modprobe ide-scsi and then use cdrecord to scan for the LUN at which the CD-burner appears:

bash-2.05b$ sudo cdrecord --scanbus Password: Cdrecord-Clone 2.01a19 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling Linux sg driver version: 3.1.25 Using libscg version 'schily-0.7' cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling'). scsibus0: 0,0,0 0) 'PHILIPS ' 'PCRW804 ' ' 1.1' 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) * bash-2.05b$



It is possible to set up a configuration file for cdrecord, but let's make it easier and write a helper script:

bash-2.05b$ cat /usr/local/bin/cdburn #!/bin/sh # # /usr/local/bin/cdburn # MYNAME=` basename $0 ` DEVICE=" dev=0,0,0 " # SPEED=" -speed=4 " EJECT=" -eject " [ "x$1" = "x" ] && { echo "Usage: $MYNAME (isoname)" 1>&2 exit 1 } [ ! -s $1 ] && { echo "Error: $MYNAME: (isoname) is missing or null" 1>&2 exit 1 } /usr/bin/cdrecord -v $DEVICE $SPEED $EJECT $1 # # bash-2.05b$

so that burning a CD from an ISO image is a simple as moving to the directory holding the .iso and typing:

$ cd /home/herrold/caos/cinch-1.7 $ sudo cdburn cinch.iso

All done.

We welcome comment on this document. Please send such to: info+caosCD@owlriver.com
       

Back to Top Page
[legal] [ no spam policy ] [ Copyright] © 2008 Owl River Company
All rights reserved.

Last modified: Mon, 05 Apr 2004 20:50:25 -0400
http://www.owlriver.com/projects/caos/cd-burning/index.php