PDA

View Full Version : ROM drives not working.



rrfish72
01-10-2005, 08:26 PM
After doing a kernel upgrade to 2.6.10-4, my cdrom and dvd drive do not show up any more and I cannot use them. At least not in the info center or dmesg. They use to show up as scsi0-->cdrom and scsi1-->dvd, now my external zip drive shows up as scsi1. I tried to symlink them with ln -sf /dev/scd# /dev/my device, but that did not seem to work, and why would it if the computer does not see them. So how do I go about getting them recognized as scsi drives again? I edited menu.lst and added the hda=scsi....and that had no effect on it. This is the error I get when trying to mount either drive:

Could not mount device.
The reported error was:
mount: /dev/dvd is not a valid block device

During boot I see that the drives now show up as hdc and hdd. Should I change the fstab to reflect this? How do I change the entry if that is what I do? I didn't do anything else but upgrade the kernel. I would like to avoid doing a reinstall. Please help.

Markus
01-10-2005, 09:07 PM
Find them in dmesg with:
markus@fujibox:~$ dmesg |grep CD
hdc: TDK CDRW241040B, ATAPI CD/DVD-ROM drive
hdd: LG DVD-ROM DRD-8160B, ATAPI CD/DVD-ROM drive
hdc: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20

And set up fstab correspondingly:
/dev/cdrom /cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,users,noexec,noauto 0 0

Correct symlinks with "ln -s /dev/cdrom /dev/hdc"
Set permissions: chgrp cdrom /dev/cdrom /dev/hdc
markus@fujibox:~$ ll /dev/cdrom /dev/dvd
lrwxrwxrwx 1 root cdrom 8 Sep 21 23:06 /dev/cdrom -> /dev/hdc
lrwxrwxrwx 1 root cdrom 8 Sep 21 23:07 /dev/dvd -> /dev/hdd

rrfish72
01-10-2005, 09:43 PM
Looks like its not finding a driver:

root@rrfish72:~# dmesg |grep CD
hdc: Hewlett-Packard CD-Writer cd16f, ATAPI CD/DVD-ROM drive
hdd: HL-DT-STDVD-ROM GDR8160B, ATAPI CD/DVD-ROM drive
Sony CDU-535: probing base address 340
Did not find a Sony CDU-535 drive
Sony CDU-535: probing base address 340
Did not find a Sony CDU-535 drive
Sony CDU-535: probing base address 340
Did not find a Sony CDU-535 drive
Sony CDU-535: probing base address 340
Did not find a Sony CDU-535 drive
root@rrfish72:~#

Did all and still get:

root@rrfish72:~# ll /dev/cdrom /dev/dvd
lrwxrwxrwx 1 root cdrom 9 Jan 10 13:10 /dev/cdrom -> /dev/scd0
lrwxrwxrwx 1 root root 9 Jan 10 12:28 /dev/dvd -> /dev/scd1

Which is the same as before. I used root@rrfish72:~# ln -sf /dev/cdrom /dev/hdc. I never had to do anything but symlink the drives to get them work before. I found module with modconf and tried to install it but the installation failed. sonycd535 - Sony CDU535 CD-ROM support. The drive is not a sony and never showed up as a sony anything, what the hell happened? I am doing this as root.

Markus
01-10-2005, 09:59 PM
Oops, got the symlink order mixed up.

su
rm /dev/cdrom
ln -s /dev/hdc /dev/cdrom
chgrp cdrom /dev/cdrom

As for the Sony driver, I would rather remove it with modconf than try to install it if you don't have the drive.

rrfish72
01-10-2005, 10:20 PM
When I try the cdrom:

Could not mount device.
The reported error was:
mount: Too many levels of symbolic links

When I try the dvd:

Could not mount device.
The reported error was:
mount: /dev/dvd is not a valid block device

rfish72@rrfish72:~$ ll /dev/cdrom /dev/dvd
lrwxrwxrwx 1 root cdrom 8 Jan 10 15:06 /dev/cdrom -> /dev/hdc
lrwxrwxrwx 1 root root 8 Jan 10 15:08 /dev/dvd -> /dev/hdd
rrfish72@rrfish72:~$

Why did it change anyway?

Markus
01-10-2005, 11:15 PM
Do you have /dev/hdc pointing somewhere or is it just:
markus@fujibox:~$ ll /dev/hdc
brw-rw---- 1 root cdrom 22, 0 Nov 14 2003 /dev/hdc

Something must have changed with your kernel or lilo.conf or menu.lst , that is, you used to have scsi emulation and now you don't.
If you're running kanotix kernel you might want to ask in #kanotix

rrfish72
01-10-2005, 11:19 PM
Pointing here:

root@rrfish72:~# ll /dev/hd?
brw-rw---- 1 root disk 3, 0 Dec 10 17:13 /dev/hda
brw-rw---- 1 root cdrom 3, 64 Dec 10 17:13 /dev/hdb
lrwxrwxrwx 1 root cdrom 10 Jan 10 14:39 /dev/hdc -> /dev/cdrom
brw-rw---- 1 root cdrom 22, 64 Dec 10 17:13 /dev/hdd
brw-rw---- 1 root disk 33, 0 Dec 10 17:13 /dev/hde
brw-rw---- 1 root disk 33, 64 Dec 10 17:13 /dev/hdf
brw-rw---- 1 root disk 34, 0 Dec 10 17:13 /dev/hdg
brw-rw---- 1 root disk 34, 64 Dec 10 17:13 /dev/hdh
root@rrfish72:~#


So how is that fixed?

Markus
01-10-2005, 11:24 PM
Umm, severin seems to have answered that in kanotix forum:

su
rm /dev/hdc
mknod /dev/hdc b 22 0
chmod +w /dev/hdc
chgrp cdrom /dev/hdc

rrfish72
01-10-2005, 11:33 PM
I guess that was it. After updating to the even newest kernel 2.6.10-5 (2 new updates in the same day, 4 and 5) and logged in it then the dvd worked. I will try 4 now and see if it works too. The cdrom still seems to give this message:

Could not mount device.
The reported error was:
mount: Too many levels of symbolic links

rrfish72
01-11-2005, 05:19 AM
Thanks for your help Markus. As you probably see from kanotix forum, Kano directed me to the end. Are you maku in kanotix forum?

Markus
01-11-2005, 08:18 AM
Are you maku in kanotix forum? Yep. Some german guy had already reserved Markus. Should have used something more obscure, but that would require imagination and I'm an engineer :)

OErjan
01-11-2005, 09:04 PM
HEEEEY! being an engineer requires Imagination.
hmm, ok, not in the "coming up with new aliases" type. more in the "visualizing how this could be done" way.
even creativity is required, but must be canalized down narow and finely tuned paths.

Markus
01-11-2005, 10:20 PM
Hmm, I see that I should have been more specific or used a few more smileys ;););)
*cough* *hint* joking *cough*

OErjan
01-12-2005, 07:13 PM
so should I, there should have been a quite a few smiles in that posting. sorry :D :D

Markus
01-12-2005, 09:08 PM
heh, feelin' stuupid :)