Page 1 of 1

[SOLVED] upgrade mga2 -> mga3 mounting DVDs is impossible

PostPosted: Jul 23rd, '13, 10:56
by magfan
After upgrading from mga2 -> mga3 I cannot mount CDs and DVDs anymore.

Re: after upgrade mga2 -> mga3 mounting DVDs is impossible

PostPosted: Jul 23rd, '13, 21:20
by doktor5000
How do you mount them? Is there an fstab entry for the optical drive?
Please show output of
Code: Select all
ls -al /dev/sr*
ls -al /dev/cd*
ls -al /dev/dvd*

and content of /etc/udev/rules.d/70-persistent-cd.rules

Re: after upgrade mga2 -> mga3 mounting DVDs is impossible

PostPosted: Jul 24th, '13, 08:52
by magfan
Code: Select all
$ ls -al /dev/sr*
brw-rw----+ 1 root cdrom 11, 0 Jul 24 08:31 /dev/sr0
brw-rw----+ 1 root cdrom 11, 1 Jul 24 08:36 /dev/sr1
$ ls -al /dev/cd*
lrwxrwxrwx 1 root root 3 Jul 24 08:31 /dev/cdrom -> sr0
lrwxrwxrwx 1 root root 3 Jul 24 08:36 /dev/cdrom6 -> sr1
lrwxrwxrwx 1 root root 3 Jul 24 08:31 /dev/cdrw -> sr0
lrwxrwxrwx 1 root root 3 Jul 24 08:36 /dev/cdrw6 -> sr1
$ ls -al /dev/dvd*
lrwxrwxrwx 1 root root 3 Jul 24 08:31 /dev/dvd -> sr0
lrwxrwxrwx 1 root root 3 Jul 24 08:36 /dev/dvd6 -> sr1
lrwxrwxrwx 1 root root 3 Jul 24 08:31 /dev/dvdrw -> sr0
lrwxrwxrwx 1 root root 3 Jul 24 08:36 /dev/dvdrw6 -> sr1
$ cat fstab | grep sr
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/sr1 /media/cdrom2 auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
$


Code: Select all
#  (pci-0000:08:00.0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:08:00.0", SYMLINK+="cdrom1", ENV{GENERATED}="1"

#  (pci-0000:02:00.0-usb-0:1)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:02:00.0-usb-0:1", SYMLINK+="cdrom2", ENV{GENERATED}="1"

# HL-DT-ST_BD-RE_BE12LU30 (pci-0000:05:00.0-sas-0x5003005701045db2-lun-0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db2-lun-0", SYMLINK+="cdrom3", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db2-lun-0", SYMLINK+="cdrw3", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db2-lun-0", SYMLINK+="dvd3", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db2-lun-0", SYMLINK+="dvdrw3", ENV{GENERATED}="1"

# AutoRun_Disk (pci-0000:06:00.0-usb-0:3.2:1.0-scsi-0:0:0:1)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="Generic_AutoRun_Disk_E1UBLBOX-0:1", SYMLINK+="cdrom4", ENV{GENERATED}="1"

# Mass_Storage_Device (pci-0000:06:00.0-usb-0:3.4:1.0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_SERIAL}=="JetFlash_Mass_Storage_Device_E1UBLBOX", SYMLINK+="cdrom5", ENV{GENERATED}="1"

# HL-DT-ST_BD-RE_BE12LU30 (pci-0000:05:00.0-sas-0x5003005701045db0-lun-0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db0-lun-0", SYMLINK+="cdrom6", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db0-lun-0", SYMLINK+="cdrw6", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db0-lun-0", SYMLINK+="dvd6", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:05:00.0-sas-0x5003005701045db0-lun-0", SYMLINK+="dvdrw6", ENV{GENERATED}="1"

# TSSTcorp_CDDVDW_SH-216BB (pci-0000:00:1f.2-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrom7", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrw7", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvd7", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvdrw7", ENV{GENERATED}="1"

Re: after upgrade mga2 -> mga3 mounting DVDs is impossible

PostPosted: Jul 24th, '13, 20:59
by doktor5000
The udev rules look weird, how are those CD/DVD drives connected? I'd move that rules file away, it will be recreated on next boot.
Also please remove/uncomment both fstab entries, they are long deprecated/cumbersome.

Re: after upgrade mga2 -> mga3 mounting DVDs is impossible

PostPosted: Jul 25th, '13, 08:48
by magfan
doktor5000 wrote:The udev rules look weird, how are those CD/DVD drives connected? I'd move that rules file away, it will be recreated on next boot.
Also please remove/uncomment both fstab entries, they are long deprecated/cumbersome.

I removed the udev rules file and both entries in fstab. Now I can use the CD/DVD drives again. Although a new "70-persistent-cd.rules" file has not been created after reboot.

Re: [SOLVED] upgrade mga2 -> mga3 mounting DVDs is impossibl

PostPosted: Jul 26th, '13, 01:04
by doktor5000
Well, i'm not sure with all those changes. udev rules have moved to /usr/lib/udev/rules.d/ or maybe this is even handled by udisks/udisks2 now,
and the old udev rules were still being used and blocked access. Mysteries :)

Re: [SOLVED] upgrade mga2 -> mga3 mounting DVDs is impossibl

PostPosted: Jul 26th, '13, 02:48
by jiml8
Ultimately, supporting and maintaining a system becomes more difficult as the configuration stuff migrates out of /etc. This applies to systemd and now, apparently, to udev.

Re: [SOLVED] upgrade mga2 -> mga3 mounting DVDs is impossibl

PostPosted: Jul 26th, '13, 11:03
by doktor5000
Well, not exactly. systemd has system-rules/-settings which are under /usr/lib, which are being overruled by those in /etc which is traditionally the admin realm.
Same applies for udev, as you can see from this thread - rule in /etc was actually cumbersome.

But yes, stuff definitely gets more complex - not necessarily more complicated.