On 09/06/10 18:55, alain.didierj...@free.fr wrote:
> For some unknown reason, my DVD r/w device is not detected as such by udev:
> I can mount /dev/hda and read a data CD, but /dev/cdrom is not created at boot
> time and k3b returns
> " No optical drive found.
> K3b did not find any optical device in your system.
> Solution : Make sure HAL daemon is running, it is used by K3b for finding
> devices."
> Well, hald IS running on my hardened amd64 system and /etc/udev/rules.d 
> contains
>  70-persistent-cd.rules. Where should I look now to fix the problem ?
>
> --
> ~adj~
What's the contents of 70-persistent-cd.rules?  I recently had the same
problem on a HP laptop; the DVD drive worked in most things, but not in
K3B, and I tracked the root down to the fact that while I could see
/dev/sr0, the symlinks for /dev/[cdrom,cdrw,dvd,dvdrw] weren't there.  I
could mount /dev/sr0 and the drive worked, but K3B never found the
drive.  I believe I fixed it by editing that rules file somehow.  I
can't remember while laptop it was on, but here's the two
70-persistent-cd.rules files I have:

(I think this one was the one that worked)

# This file was automatically generated by the /lib/udev/write_cd_rules
# program, run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and set the $GENERATED variable.

# CDDVDW_TS-L633N (pci-0000:00:1f.2-scsi-1:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrom",
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrw",
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvd",
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="dvdrw",
ENV{GENERATED}="1"

(I think this one was the one that I had to rewrite myself)

SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="cdrom", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="cdrw", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="dvd", GROUP="cdrom"
SUBSYSTEM=="block", KERNEL=="hdb", SYMLINK+="dvdrw", GROUP="cdrom"

HTH,

Jake Moe

Reply via email to