Skip to contentSkip to conversation

cdrom devices missing

DISCUSSION Sam Liddicott 3 participants 5 messages Jan 3, 2005

lore
Share & tools
lore
#0 lore raw

udev makes my hard disk nodes device and partition nodes OK, but does not create my cdrom device nodes at all.

I have a debian testing/unstable install that is a de-mepis-ized latest-MEPIS installation.

I have debian udev_0.050 build from source (apt-get -b source)

My cdrom is on hdc, I even tried adding to rules.d

KERNEL="hdc" SYMLINK="dvd cdrom dvdrecorder cdrecorder"

but no joy

If I make device nodes by hand then mplayer et al work fine.

I had similar problems with my sound card until I listed my sound card driver explicitly in /etc/modules - is this the correct procedure for all hardware support with udev? I expected hotplug/udev to "discover" the soundcard hardware and do all the right tricks with it like it does for removable device, perhaps I am wrong?

However as the kernel already recognizes my cdrom and manually making the device nodes is enough for things to work I can't see that adding anything to /etc/modules would work here.

Sam

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

These are problems, that happen when not all udev.rules files for all distributions are updated. We even use different ways to solve the same problems ..
It is made at the beginning of the gentoo rules file:

# cdrom symlinks and other good cdrom naming
BUS="ide",  KERNEL="hd[a-z]", 
PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2}
%c{3} %c{4} %c{5} %c{6}"
BUS="scsi", KERNEL="sr[0-9]*", 
PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2}
%c{3} %c{4} %c{5} %c{6}"
BUS="scsi", KERNEL="scd[a-z]",
PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2}
%c{3} %c{4} %c{5} %c{6}"
# devfs-names for ide-devices (uncomment only one)
#  /dev/ide/.../{disc,cd} and /dev/{cdroms,discs}/* type names
BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b
%n", NAME="%k", SYMLINK="%c{1} %c{2}"

Maybe you could just try to use the gentoo rules file? (make sure you have the necessary scripts)
or change your rules similar to the above one.

Kind regards,
Stefan

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Sam Liddicott
Quoted 2 lines · Sam Liddicott

udev makes my hard disk nodes device and partition nodes OK, but does not create my cdrom device nodes at all.

Does running udevstart create the device node, instead of creating it manually? Is ide-cd loaded, before your system runs udevstart?

Kay

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Sam Liddicott
Quoted 8 lines · Kay Sievers
Quoted 2 lines · Sam Liddicott

udev makes my hard disk nodes device and partition nodes OK, but does not create my cdrom device nodes at all.

Does running udevstart create the device node, instead of creating it manually? Is ide-cd loaded, before your system runs udevstart?

modprobe ide-cd

makes it work. Thankyou.

This is now added to my /etc/modules

I did:
find /lib/modules* -name 'cd*'
before, but now I see why this didn't work.

To complete my education, what is it that I no longer have that would have loaded all these modules before?

Was it something that loaded the module whgen I access the device node, or was it just something that loaded the modules anyway?

Thanks Kay and also Stefan

Sam

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw
In reply to Sam Liddicott
Quoted 7 lines · Sam Liddicott
Quoted 6 lines · Kay Sievers
Quoted 2 lines · Sam Liddicott

udev makes my hard disk nodes device and partition nodes OK, but does not create my cdrom device nodes at all.

Quoted 5 lines
Quoted 2 lines

Does running udevstart create the device node, instead of creating it manually? Is ide-cd loaded, before your system runs udevstart?

Was it something that loaded the module whgen I access the device node, or was it just something that loaded the modules anyway?

Greg explains that here:
http://www.kroah.com/log/linux/kmod_part1.html

Kay

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel