Switching from CD-RW to CD without kernel reboot

Sam Couter sam at couter.dropbear.id.au
Sat Nov 30 12:24:42 EST 2002


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]
-- 
Sam "Eddie" Couter  |  mailto:sam at couter.dropbear.id.au
Debian Developer    |  mailto:eddie at debian.org
                    |  jabber:sam at jabber.topic.com.au
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20021130/8e95427d/attachment.bin


More information about the linux mailing list