When I rebooted I did a 'ls /dev', noticed the proper symlinks and
though all was well.  I inserted a dvd to check things out and low and
behold the symlinks disappeared.  A quick 'ls /etc/udev/rules.d' showed
no 70-persistent-cd.rules file.

I grabbed the file from my laptop and edited it to match my desktop
setup.

# This file maintains persistent names for CD/DVD reader and writer devices.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-cd-aliases-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.
# TSSTcorp_CDDVDW_SH-222BB (pci-0000:00:11.0-scsi-2:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", 
ENV{ID_PATH}=="pci-0000:00:11.0-scsi-2:0:0:0", SYMLINK+="cdrom", 
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", 
ENV{ID_PATH}=="pci-0000:00:11.0-scsi-2:0:0:0", SYMLINK+="cdrw", 
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", 
ENV{ID_PATH}=="pci-0000:00:11.0-scsi-2:0:0:0", SYMLINK+="dvd", 
ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", 
ENV{ID_PATH}=="pci-0000:00:11.0-scsi-2:0:0:0", SYMLINK+="dvdrw", 
ENV{GENERATED}="1"

Here's the steps to get the above:

Note, this is all done in a terminal.  There may be a pointy-clicky way
to do it, but this was easiest for me..

If you don't know the device id for your drive, type

$ sudo lshw -C disk

and look for the '*-cdrom' block.  The line 'bus info: scsi@2:0.0.0' is
what you're looking for.

$ ls /dev/disk/by-path

will give you the 'pci-000:00:11.0-' portion.  This may be the same for
all, not sure.

I'm also not sure about the last commented line, that may just be human
info, but you can get that from /dev/disk/by-id.  Mine was ata-
TSSTcorp_CDDVDW_SH-222BB_R8LM68FC5008YP, and I just trimmed off the
first and last parts to match the part my laptop had in it's file.

This bug may be a problem with either a missing or mismatched
/etc/udev/rules.d/70-persistent-cd.rules file.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/993728

Title:
  /dev/dvd disappears when a DVD is inserted

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/993728/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to