Re: udev: /dev/hdc fehlt Kein cdrom/dvd nach kernel und dist-upgrade

2005-01-09 Diskussionsfäden Dirk Salva
On Sun, Jan 09, 2005 at 01:07:51AM +0100, gerhard wrote:
 Ich habe das Problem, dass nach einem dist-upgrade und einem Kernel 
 update von 2.6.8 - 2.6.10 meine udev Konfiguration kein cdrom 
 device /dev/hdc mehr erstellt (/dev/dvd und /dev/cdrom fehlen deshalb 
 ebenso).

Das Problem hatte ich auch, mit dem Debian-2.6er Kernel. Schau mal
nach, ob bei Dir /etc/udev/cd-aliases.rules existiert. Auf diese
Datei muß von /etc/udev/rules.d ein Symlink erstellt werden, ebenso
wie von dort ein Symlink auf /etc/udev/udev.rules existieren muß. Am
fehlenden cd-aliases.rules-Symlink lag es bei mir.

ciao, Dirk
-- 
|  Akkuschrauber Kaufberatung and AEG GSM stuff   |
|   Visit my homepage:   http://www.nutrimatic.ping.de/   |
| FIDO: Dirk Salva 2:244/6305.10 Internet: dsalvaATgmx.de |
|The Ruhrgebiet, best place to live in Germany! |


-- 
Haeufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)



udev: /dev/hdc fehlt Kein cdrom/dvd nach kernel und dist-upgrade

2005-01-08 Diskussionsfäden gerhard
Hallo Liste,

Ich habe das Problem, dass nach einem dist-upgrade und einem Kernel 
update von 2.6.8 - 2.6.10 meine udev Konfiguration kein cdrom 
device /dev/hdc mehr erstellt (/dev/dvd und /dev/cdrom fehlen deshalb 
ebenso).

Linux debian 2.6.10-rc3.20041218n #1 Sat Dec 18 21:35:28 CET 2004 i686 
GNU/Linux

udev/unstable uptodate 0.050-4
hal/unstable uptodate 0.4.4-1
gnome-volume-manager/testing uptodate 1.1.2-5

$ grep CONFIG_BLK_DEV_IDECD /usr/src/linux/.config
CONFIG_BLK_DEV_IDECD=y

$ grep hd /var/log/boot
Sun Jan  9 00:22:27 2005: /dev/hdc: No such file or directory
Sun Jan  9 00:22:27 2005: /dev/hdd: No such file or directory

$ grep ide /etc/udev/udev.rules
# of the different fields. They provide the following subsitutions:
BUS=ide, KERNEL=hd[a-z], SYSFS{removable}=1, 
PROGRAM=/bin/cat /proc/ide/%k/media, RESULT=cdrom*, NAME=%k, 
MODE=0660, GROUP=cdrom
BUS=ide, KERNEL=hd[a-z], SYSFS{removable}=1, 
PROGRAM=/bin/cat /proc/ide/%k/media, RESULT=floppy*, NAME=%k, 
MODE=0660, GROUP=floppy
[...video]

$ grep ide /etc/udev/permissions.d/udev.permissions
ide/*/cd:root:cdrom:0660
ide/*:root:disk:0660

$ ls /dev/hd[a-d]
/dev/hda  /dev/hdb

Unter kanotix 0.7 ist das cdrom ansprechbar.

Wie kann ich den Fehler finden?

Google und Liste war nicht sehr erfolgreich, da das Problem dort meist 
nur die fehlenden symlinks waren. Hier fehlt das device selbst

$ udevinfo -a -p /sys/block/hdc
couldn't get the class device

Vor dem upgrade ging alles :-(

Ich lade gerade den patch auf den stabilen 2.6.10 herunter, und gehe 
dann wohl nochmals die Konfiguration durch. Falls jemand eine andere 
Idee hat, wäre es hilfreich sie mitzuteilen.

I already read this by Jim McCloskey [EMAIL PROTECTED] 28.12.2004 
debian.user

Two suggestions:

[1] Maybe this is related to the problem reported as Bug #287225 
against udev at http://bugs.debian.org 
If your problem is (in part) the same, you'll find a workaround in 
that correspondence.

[2] For udev to function properly, it is often important that the   
 relevant kernel module be loaded at boot time, by being listed 
 in /etc/modules. For a 2.6 series kernel, you will not want
 ide-scsi. The relevant kernel configuration option is 
 CONFIG_BLK_DEV_IDECD. If that option is configured
 as a module, it will be called ide-cd. If that is how your kernel 
 is configured, maybe you should include ide-cd as a line 
in /etc/modules?

zu [1]  dort geht es um symlinks, so weit ich das sehe 
zu [2]  CONFIG_BLK_DEV_IDECD ist nicht als modul sondern fest in den 
  Kernel kompiliert.

Gruß

Gerhard