Well done Douglas
Derek Broughton
news at pointerstop.ca
Tue Sep 2 18:44:22 UTC 2008
Silent Ph03nix wrote:
> Here are mine from my server. I have a Creative Labs DVD rom drive
> and a DVD writer in the same box. Here are my files.
>
>
> ph03nix at server:~$ ls -l /dev/dvd*
> lrwxrwxrwx 1 root root 4 2008-09-01 12:14 /dev/dvd2 -> scd0
> lrwxrwxrwx 1 root root 4 2008-09-01 12:14 /dev/dvd3 -> scd1
> lrwxrwxrwx 1 root root 4 2008-09-01 12:14 /dev/dvdrw3 -> scd1
> ph03nix at server:~$ ls -l /dev/cdrom*
> lrwxrwxrwx 1 root root 4 2008-09-01 12:14 /dev/cdrom2 -> scd0
> lrwxrwxrwx 1 root root 4 2008-09-01 12:14 /dev/cdrom3 -> scd1
>
> ph03nix at server:~$ cat /etc/udev/rules.d/70-persistent-cd.rules
> # This file maintains persistent names for CD/DVD reader and writer
> # devices. See udev(7) for syntax.
> #
> # Entries are automatically added by the 75-persistent-cd-generator.rules
> # file; however you are also free to add your own entries provided you
> # add the ENV{GENERATED}=1 flag to your own rules as well.
> # HL-DT-ST_DVDRAM_GSA-H10L (pci-0000:00:09.0-ide-1:0)
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:09.0-ide-1:0",
> SYMLINK+="cdrom", ENV{GENERATED}="1"
...
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:09.0-scsi-0:0:1:0",
> SYMLINK+="cdrom2", ENV{GENERATED}="1"
>
> So, as you can see, mine end up being dvd2 & 3 and cdrom 2 & 3 as
> opposed to 0 and 1 as I would assume they would be. I'd love to know
> what I need to change to get them fixed.
So this is the heart of the problem. I should have asked for:
ls -l /dev/disk/by-path
too, but I think I know what it would show.
When your system identified your CD/DVDs as IDE, the hardware "path" was
pci-0000:00:09.0-ide-1:0. Now that they're being id'd as SCSI, the path is
pci-0000:00:09.0-scsi-0:0:1:0. When the new symlinks were generated, it
didn't delete the old & obsolete rules.
I believe that if you simply
deleted /etc/udev/rules.d/70-persistent-cd.rules, on the next reboot it
would be built correctly. BUT I HAVEN'T TESTED THAT! So, you might want
to rename the file (to anything that doesn't end with .rules - or into
another directory), reboot, and see what you have. If a new one isn't
generated, just rename the old one and reboot.
--
derek
More information about the kubuntu-users
mailing list