Switching from CD-RW to CD without kernel reboot

Burn Alting burn at goldweb.com.au
Sat Nov 30 12:38:04 EST 2002

On Sat, 30 Nov 2002 12:24, Sam Couter wrote:
> Burn Alting <burn at goldweb.com.au> wrote:
> > What I want to do is to burn CD-RW's for backup or just read off the CD.
> > Is there a simple way to configure the kernel to be able to switch
> > between burning cd's (cdrecord etc) and just reading CD's WITHOUT having
> > to reboot the kernel (at present I boot a kernel - lilo.conf/grub.conf
> > with a parameter "hdc=ide-scsi" if I want to burn CD's or with this if I
> > just want to mount a CD)
> The option you mentioned here tells the kernel to pretend that the
> secondary master ATA device is really a SCSI device.
> So just mount the CD drive as if it were really a SCSI CDROM:
> mount -t iso9660 /dev/sda /mnt/cdrom
> [or /dev/scsi/host0/bus0/target0/lun0/cd if you're using devfs, or
> wherever else the pretend SCSI device appears on your system]

Thanks Sam, but unfortunately, mount requests come back with the devices not 
being a valid block device ie

# mount -t iso9660 -o ro /dev/scd0 /mnt/cdrom
mount: /dev/scd0 is not a valid block device

The relevent modules, I believe are loaded ...

# lsmod
ide-scsi                7744   0
ide-cd                 27392   0
cdrom                  27712   0  [ide-cd]
vfat                    9500   1  (autoclean)
fat                    30136   0  (autoclean) [vfat]
usb-uhci               21476   0  (unused)
usbcore                63232   1  [usb-uhci]
rtc                     6076   0  (autoclean)

So I may have to scan the howtos again :-(



More information about the linux mailing list