PDA

View Full Version : Replacing an exisiting DVD drive with a CD-RW


simcon
12th March 2004, 09:02 PM
Hi, I installed Fedora onto a machine with 2 DVD drives, hdc and hdd. I removed the slave drive and replaced it with a CD-RW. I do have kudzu running but it doesn't seem to have set the SCSI part of the drive up (as the writer part of the drive is normally on the SCSI bus). To force it to discover the drive I edited the kudzu conf file /etc/sysconfig/hwconf and removed the entry for the slave CD hdd and rebooted. When I checked the file a new entry was added and here it is:-

class: CDROM
bus: IDE
detached: 0
device: hdd
driver: ignore
desc: "HL-DT-ST RW/DVD GCC-4120B"

Now I was expecting kudzu to set this up properly, so my question is, is kudzu not functioning correctly or do I need to do something manually?

Here's what 'cdrecord -scanbus' says:-

[root@localhost simcon]# cdrecord -scanbus
Cdrecord-Clone 2.01a19 (i686-redhat-linux-gnu) Copyright (C) 1995-2003 Jrg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

I've Googled for this information and I would have thought it was quite a common thing to do, add/replace CD drives, but I have found nothing.

Regards,
simcon

simcon
13th March 2004, 12:04 AM
I got it working using some info I found whilst trawling Google (spent the evening doing this):-

I'm using kernel 2.4.22 and my cd-rw is the slave on secondary IDE - hdd.

1. As root edit /boot/grub/grub.conf and add 'hdd=ide-scsi' to the end of the kernel line e.g.

kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb hdd=ide-scsi

2. As root in a console type '/sbin/insmod ide-scsi'

3. As root edit the /etc/fstab and modify the existing entry for hdd to this:-

/dev/scd0 /mnt/cdrom1 iso9660 noauto,owner,kudzu 0 0

4. Reboot.

Open /etc/sysconfig/hwconf and you should see an entry now like this:-

class: CDROM
bus: SCSI
detached: 0
device: scd0
driver: ignore
desc: "Hl-dt-st RW/DVD GCC-4120B"
host: 0
id: 0
channel: 0
lun: 0
generic: sg0

As root in a console type 'cdrecord -scanbus' and you should see something like this;-

[root@localhost simcon]# cdrecord -scanbus
Cdrecord-Clone 2.01a19 (i686-redhat-linux-gnu) Copyright (C) 1995-2003 Jrg 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) 'HL-DT-ST' 'RW/DVD GCC-4120B' '2.00' 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) *

I've burnt to it and it works :)

I'll post the link I got this information from when I next visit as it's on my winXP partition and I'm going to bed in a moment.

BTW can somebody who has a CD-R or RW installed post up their fstab entry so I can get an idea if mine is right please?

Cheers.