Hi Folks,
I installed Debian 3.0 on my PC ages ago and have been happily using it ever since. However, a few minutes ago, I upgraded my CD drive from a standard CD drive to a CDRW drive and I can now no longer access any CDs. If I try to mount a CD then I get an error message saying it is not a valid block device:
giraffe:~# mount /dev/hdd /mnt2 mount: /dev/hdd is not a valid block device
If however I scan through the output of dmesg I can see it listed:
hdd: ATAPI CD-RW 16/12/40X, ATAPI CD/DVD-ROM drive
What do I need to tweak in order to be able to access CDs using this new CD drive?
Thanks, Ian.
On Saturday 10 July 2004 7:20 am, I wrote:
If however I scan through the output of dmesg I can see it listed:
hdd: ATAPI CD-RW 16/12/40X, ATAPI CD/DVD-ROM drive
I have just looked at the output of dmesg in more detail and notice that, towards the end, there is the error message:
hdd: driver not present
This looks a good clue to my problem but what do I need to do?
Thanks, Ian.
On 2004-07-10 07:47:37 +0100 Ian Douglas alug@k1ngph1cher.com wrote:
hdd: driver not present
This looks a good clue to my problem but what do I need to do?
What ide-cdrom line is in your /proc/ide/drivers file?
; cat /proc/ide/drivers ide-cdrom version 4.61 ide-disk version 1.18
What is in your /proc/scsi/scsi file, if any?
I wonder whether something is expecting ide-scsi to claim it, because it's a cdrw. I am probably wrong. I hate misbehaving drives.
On Saturday 10 July 2004 12:50 pm, you wrote:
On 2004-07-10 07:47:37 +0100 Ian Douglas alug@k1ngph1cher.com wrote:
hdd: driver not present
This looks a good clue to my problem but what do I need to do?
What ide-cdrom line is in your /proc/ide/drivers file?
; cat /proc/ide/drivers ide-cdrom version 4.61 ide-disk version 1.18
I have:
giraffe:~# cat /proc/ide/drivers ide-floppy version 0.97.sv ide-cdrom version 4.59 ide-disk version 1.10
What is in your /proc/scsi/scsi file, if any?
I have:
giraffe:~# cat /proc/scsi/scsi Attached devices: none
I wonder whether something is expecting ide-scsi to claim it, because it's a cdrw. I am probably wrong. I hate misbehaving drives.
I have a:
append="hdd=ide-scsi"
line in my /etc/lilo.conf file. Is this correct?
Thanks for your help.
Ian.
On 2004-07-10 13:10:59 +0100 Ian Douglas alug@k1ngph1cher.com wrote:
I have a: append="hdd=ide-scsi" line in my /etc/lilo.conf file. Is this correct?
I think so, if you are sticking to debian stable. This means that the drive won't appear as hdd (which is IDE) but as an emulated SCSI drive instead. That was needed because cdrecord is used for burning CDs and it only spoke SCSI to Linux while most burners are IDE. You need to figure out why the drive isn't appearing as /dev/scd0 instead (and being listed in /proc/scsi/scsi).
However: you've not got ide-scsi in /proc/ide/drivers, so something is wrong with the drivers and that dmesg report was accurate. Where did your kernel and its modules come from? (dpkg -l kernel* might tell you, if you don't know otherwise.)
Other checks: Does lsmod show sd-mod as loaded? (Actually, I can't remember if it should...) Does dmesg contain anything about SCSI startup?
For later systems: you don't need that with kernel 2.6. You can access the drive as hdd and use cdrecord's ATAPI burning driver. (I still wish there was something nicer than cdrecord to use, like growisofs for DVDs.)
Thanks for your help.
No worries. Hope it helps you to make it work.
On Saturday 10 July 2004 12:50 pm, you wrote:
On 2004-07-10 07:47:37 +0100 Ian Douglas alug@k1ngph1cher.com wrote:
hdd: driver not present
This looks a good clue to my problem but what do I need to do?
What ide-cdrom line is in your /proc/ide/drivers file?
; cat /proc/ide/drivers ide-cdrom version 4.61 ide-disk version 1.18
I have:
giraffe:~# cat /proc/ide/drivers ide-floppy version 0.97.sv ide-cdrom version 4.59 ide-disk version 1.10
What is in your /proc/scsi/scsi file, if any?
I have:
giraffe:~# cat /proc/scsi/scsi Attached devices: none
I wonder whether something is expecting ide-scsi to claim it, because it's a cdrw. I am probably wrong. I hate misbehaving drives.
I have a:
append="hdd=ide-scsi"
line in my /etc/lilo.conf file. Is this correct?
Thanks for your help.
Ian.
Ian Douglas wrote:
I have a:
append="hdd=ide-scsi"
line in my /etc/lilo.conf file. Is this correct?
What kernel version have you got? If it's 2.4.* then try an lsmod to see if ide-scsi is loaded. If not modprobe it and try mounting /dev/sr0. If you have a 2.6 kernel, just try mounting /dev/sr0.
It's worth a shot ;-)
BenE
On Saturday 10 July 2004 1:34 pm, BenEBoy wrote:
What kernel version have you got?
I have:
Linux giraffe 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown
If it's 2.4.* then try an lsmod to see if ide-scsi is loaded.
I have:
giraffe:~# lsmod Module Size Used by Not tainted keybdev 1664 0 (unused) usbkbd 2848 0 (unused) input 3072 0 [keybdev usbkbd] usb-uhci 20708 0 (unused) usbcore 48032 0 [usbkbd usb-uhci]
If not modprobe it and try mounting /dev/sr0.
giraffe:~# modprobe ide-scsi giraffe:~# mount /dev/sr0 /mnt2 mount: block device /dev/sr0 is write-protected, mounting read-only giraffe:~# ls /mnt2 README.html README.non-US debian install pics README.mirrors.html README.txt dists isolinux pool README.mirrors.txt TRANS.TBL doc md5sum.txt tools
Excellent!!!!! Well done lads!
Ian.
On Saturday 10 July 2004 1:34 pm, BenEBoy wrote:
What kernel version have you got?
I have:
Linux giraffe 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown
If it's 2.4.* then try an lsmod to see if ide-scsi is loaded.
I have:
giraffe:~# lsmod Module Size Used by Not tainted keybdev 1664 0 (unused) usbkbd 2848 0 (unused) input 3072 0 [keybdev usbkbd] usb-uhci 20708 0 (unused) usbcore 48032 0 [usbkbd usb-uhci]
If not modprobe it and try mounting /dev/sr0.
giraffe:~# modprobe ide-scsi giraffe:~# mount /dev/sr0 /mnt2 mount: block device /dev/sr0 is write-protected, mounting read-only giraffe:~# ls /mnt2 README.html README.non-US debian install pics README.mirrors.html README.txt dists isolinux pool README.mirrors.txt TRANS.TBL doc md5sum.txt tools
Excellent!!!!! Well done lads!
Ian.
On Saturday 10 July 2004 12:50 pm, you wrote:
On 2004-07-10 07:47:37 +0100 Ian Douglas alug@k1ngph1cher.com wrote:
hdd: driver not present
This looks a good clue to my problem but what do I need to do?
What ide-cdrom line is in your /proc/ide/drivers file?
; cat /proc/ide/drivers ide-cdrom version 4.61 ide-disk version 1.18
I have:
giraffe:~# cat /proc/ide/drivers ide-floppy version 0.97.sv ide-cdrom version 4.59 ide-disk version 1.10
What is in your /proc/scsi/scsi file, if any?
I have:
giraffe:~# cat /proc/scsi/scsi Attached devices: none
I wonder whether something is expecting ide-scsi to claim it, because it's a cdrw. I am probably wrong. I hate misbehaving drives.
I have a:
append="hdd=ide-scsi"
line in my /etc/lilo.conf file. Is this correct?
Thanks for your help.
Ian.