How to automount DVD drives?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
tigerflag
Posts: 26
Joined: 28. Jun 2013, 15:25

How to automount DVD drives?

Post by tigerflag »

I can't seem to mount either of my internal DVD-RW drives. Inserted a music CD, but neither drive will mount. This happens whenever I install a new system, but I do it so seldom that I can never remember what to do to fix it. I'd like for my optical drives to mount automatically like my USB thumbdrive does.

FWIW, I am the only user of this system. My user acct is in the users group. Let me know if you need some other information. Your help is much appreciated!

Contents of /media:

Code: Select all

$ ls -l /media/
total 92
drwxr-xr-x 55 tigerflag root 32768 Jul  6 09:38 PATRIOT
-rw-r--r--  1 root      root   500 Sep 25  2006 README
lrwxrwxrwx  1 root      root    11 Jun 26 16:39 cdrecorder -> cdrecorder0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 cdrecorder0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 cdrecorder1
lrwxrwxrwx  1 root      root     6 Jun 26 16:39 cdrom -> cdrom0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 cdrom0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 cdrom1
lrwxrwxrwx  1 root      root     4 Jun 26 16:39 dvd -> dvd0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 dvd0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 dvd1
lrwxrwxrwx  1 root      root     7 Jun 26 16:39 floppy -> floppy0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 floppy0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 floppy1
lrwxrwxrwx  1 root      root     3 Jun 26 16:39 hd -> hd0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 hd0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 hd1
lrwxrwxrwx  1 root      root     7 Jun 26 16:39 memory -> memory0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 memory0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 memory1
lrwxrwxrwx  1 root      root     4 Jun 26 16:39 zip -> zip0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 zip0
drwxr-xr-x  2 root      root  4096 Sep 25  2006 zip1
dmesg for sr0 (very different from the output for sr1 in next section):

Code: Select all

# dmesg | grep sr0
[    4.242455] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    4.242558] sr 2:0:0:0: Attached scsi CD-ROM sr0
[  114.373578] sr 2:0:0:0: [sr0]  Result: hostbyte=0x00 driverbyte=0x08
[  114.373584] sr 2:0:0:0: [sr0]  Sense Key : 0x5 [current] 
[  114.373588] sr 2:0:0:0: [sr0]  ASC=0x64 ASCQ=0x0
[  114.373592] sr 2:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
[  114.373600] end_request: I/O error, dev sr0, sector 0
[  114.373615] Buffer I/O error on device sr0, logical block 0
[  114.373618] Buffer I/O error on device sr0, logical block 1
[  114.373620] Buffer I/O error on device sr0, logical block 2
[  114.373622] Buffer I/O error on device sr0, logical block 3
[  114.375731] sr 2:0:0:0: [sr0]  Result: hostbyte=0x00 driverbyte=0x08
[  114.375737] sr 2:0:0:0: [sr0]  Sense Key : 0x5 [current] 
[  114.375741] sr 2:0:0:0: [sr0]  ASC=0x64 ASCQ=0x0
[  114.375744] sr 2:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 02 00
[  114.375752] end_request: I/O error, dev sr0, sector 0
[  114.375755] Buffer I/O error on device sr0, logical block 0
[  114.378537] sr 2:0:0:0: [sr0]  Result: hostbyte=0x00 driverbyte=0x08
[  114.378543] sr 2:0:0:0: [sr0]  Sense Key : 0x5 [current] 
[  114.378547] sr 2:0:0:0: [sr0]  ASC=0x64 ASCQ=0x0
[  114.378550] sr 2:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 01 00 00 00 02 00
[  114.378558] end_request: I/O error, dev sr0, sector 1024
[  114.378561] Buffer I/O error on device sr0, logical block 128
[  114.380692] sr 2:0:0:0: [sr0]  Result: hostbyte=0x00 driverbyte=0x08
[  114.380698] sr 2:0:0:0: [sr0]  Sense Key : 0x5 [current] 
[  114.380702] sr 2:0:0:0: [sr0]  ASC=0x64 ASCQ=0x0
[  114.380705] sr 2:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 01 00 00 00 02 00
[  114.380713] end_request: I/O error, dev sr0, sector 1024
[  114.380716] Buffer I/O error on device sr0, logical block 128
[  114.382848] sr 2:0:0:0: [sr0]  Result: hostbyte=0x00 driverbyte=0x08
[  114.382854] sr 2:0:0:0: [sr0]  Sense Key : 0x5 [current] 
[  114.382858] sr 2:0:0:0: [sr0]  ASC=0x64 ASCQ=0x0
[  114.382861] sr 2:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 01 00 00 00 02 00
[  114.382869] end_request: I/O error, dev sr0, sector 1024
[  114.382884] Buffer I/O error on device sr0, logical block 128
dmesg for sr1 (this is what it showed before rebooting. Now, "dmesg | grep sr1" gives no output at all):

Code: Select all

# dmesg | grep sr1
[    4.247604] sr1: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    4.247701] sr 3:0:0:0: Attached scsi CD-ROM sr1
/etc/fstab:

Code: Select all

/dev/sda7        swap             swap        defaults,discard         0   0
/dev/sda1        /                ext4        noatime,defaults,discard 1   1
/dev/sda5        /data            ext4        auto,user,rw,exec,discard 1  2
/dev/sda6        /music           xfs         auto,user,rw,exec 1  2
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,users,rw,umask=00 0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
tmpfs 		 /tmp 	          tmpfs       defaults,size=1000m  0  0
Salix64 Xfce 13.37, Core i3-3225, MSI H77MA-G43 mobo, 8GB Mushkin DDR3 1600, Samsung 830 128GB SSD, Hyper TX3 cooler, DVD R/W, Seasonic 500W P/S.
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: How to automount DVD drives?

Post by djemos »

edit /etc/fstab and add the following lines if you have two dvd drives or the first one for one dvd drive.

Code: Select all

/dev/sr0      /media/dvd  auto    ro,user,noauto,unhide   0      0
/dev/sr1	    /media/dvd1  auto    ro,user,noauto,unhide   0      0
tigerflag
Posts: 26
Joined: 28. Jun 2013, 15:25

Re: How to automount DVD drives?

Post by tigerflag »

djemos wrote:edit /etc/fstab and add the following lines if you have two dvd drives or the first one for one dvd drive.

Code: Select all

/dev/sr0      /media/dvd  auto    ro,user,noauto,unhide   0      0
/dev/sr1	    /media/dvd1  auto    ro,user,noauto,unhide   0      0
djemos wrote:edit /etc/fstab and add the following lines if you have two dvd drives or the first one for one dvd drive.

Code: Select all

/dev/sr0      /media/dvd  auto    ro,user,noauto,unhide   0      0
/dev/sr1	    /media/dvd1  auto    ro,user,noauto,unhide   0      0
Thanks, djemos! I did that and rebooted. Inserted a music CD. The tracks show up and play in Exaile using the "Audio Disc" tab. At least for /dev/sr0. Nothing was detected in sr1, but I can live with only one player.

Follow-up Question:

Is it possible to get an icon or some sort of indicator to show up when the drive mounts? And a way to open it in the file manager?

One thing I liked about KDE was that if I inserted a disc, it showed up in the taskbar with options to play it, open it in a file manger, etc. Can that be done in XFCE or Mate? Even getting an icon to show up on the desktop that I could open in a file manager?

Thanks!
Salix64 Xfce 13.37, Core i3-3225, MSI H77MA-G43 mobo, 8GB Mushkin DDR3 1600, Samsung 830 128GB SSD, Hyper TX3 cooler, DVD R/W, Seasonic 500W P/S.
User avatar
aurlaent
Donor
Posts: 106
Joined: 1. Feb 2012, 19:46
Location: Sydney, Australia

Re: How to automount DVD drives?

Post by aurlaent »

I don't think that Audio CDs normally open in a file manager.
KDE creates fake folders of the tracks as different audio formats that you can use to rip the CD.
XFCE has various options for what to display on the desktop, and I think there was one for displaying mount points, but it's a while since I've used XFCE.
User avatar
ElderDryas
Posts: 144
Joined: 3. Nov 2011, 22:06
Location: Lincoln, Nebraska USA

Re: How to automount DVD drives?

Post by ElderDryas »

aurlaent wrote: I think there was one for displaying mount points....
I think you were thinking of App Menu>Settings>Removable Drives>Storage or Multimedia

For the Multimedia portion, you'll have to know the specific commands (and options) that will work with whatever apps you are using, but that's where you'll place them :)
Post Reply