[Bug 993728] Re: /dev/dvd disappears when a DVD is inserted

lnxusr 993728 at bugs.launchpad.net
Mon Jul 9 21:34:14 UTC 2012


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 at 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
Foundations Bugs, which is subscribed to udev in Ubuntu.
https://bugs.launchpad.net/bugs/993728

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

Status in “udev” package in Ubuntu:
  Confirmed

Bug description:
  On a fresh boot, with no DVD inserted:

  $ ls -Al /dev/dvd
  lrwxrwxrwx 1 root root 3 May  2 18:25 /dev/dvd -> sr0

  As soon as I insert a DVD:

  $ ls -l /dev/dvd
  ls: cannot access /dev/dvd: No such file or directory

  The only new lines in dmesg are:

  [   88.411709] UDF-fs: Partition marked readonly; forcing readonly mount
  [   88.472834] UDF-fs: INFO Mounting volume 'WILLIAM_CASTLE_FILM_COLLECTION', timestamp 2009/08/19 19:32 (1e5c)

  This is on a fully updated install of Ubuntu 12.04, with udev
  175-0ubuntu9.

  I don't want /dev/dvd to stop existing exactly when I need to use it.

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




More information about the foundations-bugs mailing list