Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-01-2020, 11:10 PM
|
#1
|
LQ Newbie
Registered: Nov 2006
Location: Oregon
Distribution: Ubuntu 20.04
Posts: 8
Rep:
|
DVD drive detected but not reading
I'm running Ubuntu 20.04 and recently tried to use my DVD drive. It worked on 18.04, and I hadn't tried it after upgrading until now. The unit works in another machine just fine.
I can see the drive in the Disks application, but nothing happens when I put media in. Most issues I've seen from Google searches seem to be errors reading rather than no reading.
Any help would be appreciated.
Thanks in advance!
|
|
|
10-01-2020, 11:36 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,336
|
Haven't needed to use one in years, but the first hit I got was this.
|
|
|
10-01-2020, 11:48 PM
|
#3
|
LQ Guru
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,686
|
Another problem might be that it is not mounting the drive at all. At least sometimes with CDs, I've had to force it manually:
Code:
gio mount -d /dev/sr0
|
|
|
10-02-2020, 12:22 AM
|
#4
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
be sure the user is in the cdrom group. Or whatever group(s) are associated with the /dev/cdrom /dev/dvd and /dev/sr# devices. And if you have more than one drive you may need to manually link /dev/cdrom to your preferred device as some optical tools are a bit hard coded / assuming. And a few things to install depending on usage. Like dvdnav, css, iso9660 filesystem support, and such.
|
|
|
10-02-2020, 08:38 AM
|
#5
|
Senior Member
Registered: Oct 2003
Posts: 3,015
|
Quote:
but nothing happens when I put media in
|
Does the same thing happen no matter what type of media you put in, eg data cd/dvd, comercial dvd, music cd?
I assume that's the case from your post but please confirm. Next, put in a known good data cd/dvd or commercial dvd, open a terminal and run:
Post the output here. It may give some clue as to what is going on.
|
|
|
10-02-2020, 11:44 AM
|
#6
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Systemd handles auto mounting of removable media devices and usually puts them at /run/media/username/devicename and the user has access to the content.
It used to be (before systemd) that the cdrom device was auto-mounted by an entry in /etc/fstab but no more.
Try inserting the CD in the drive then either look in the gnome files app (nautilus) to see it or run the command "mount" and see if it is mounted at the location stated above.
My cdrom drive is /dev/sr0 and if it does not automatically mount then the command "sudo mount /dev/sr0 /mnt" gives me access to it under /mnt (possibly with some permissions mods or as root).
|
|
|
10-02-2020, 11:17 PM
|
#7
|
LQ Newbie
Registered: Nov 2006
Location: Oregon
Distribution: Ubuntu 20.04
Posts: 8
Original Poster
Rep:
|
Thanks for all the responses!
Running down the list of responses, I didn't have any luck.
Quote:
Haven't needed to use one in years, but the first hit I got was this.
|
I found this one too and it didn't resolve the problem.
When I run
Code:
gio mount -d /dev/sr0
I get the result:
Code:
gio: /dev/sr0: No volume for given ID
According to the Disks application, the device is listed as /dev/sr0, so it seems like this should have done something different...
My user is in the cdrom group.
results in the following after putting in a commercial audio CD:
Code:
[ 25.676678] audit: type=1400 audit(1601694317.371:449): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/icon-theme.cache" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.676681] audit: type=1400 audit(1601694317.371:450): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/status/scalable/" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.676790] audit: type=1400 audit(1601694317.371:451): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/icon-theme.cache" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.676793] audit: type=1400 audit(1601694317.371:452): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/stock/16/" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.677283] audit: type=1400 audit(1601694317.371:453): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/icon-theme.cache" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.677286] audit: type=1400 audit(1601694317.371:454): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/stock/22/" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.677360] audit: type=1400 audit(1601694317.371:455): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/icon-theme.cache" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.677363] audit: type=1400 audit(1601694317.371:456): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/stock/24/" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.677432] audit: type=1400 audit(1601694317.371:457): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/icon-theme.cache" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 25.677434] audit: type=1400 audit(1601694317.371:458): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Humanity/stock/32/" pid=2373 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
It appears to be in /etc/fstab and matches what's in Disks. If I run
Code:
sudo mount /dev/sr0 /mnt
I get
Code:
mount: /mnt: no medium found on /dev/sr0.
However, seems to work just fine from command line for what it's worth.
|
|
|
10-03-2020, 09:55 PM
|
#8
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by Wagadoo
When I run
Code:
gio mount -d /dev/sr0
I get the result:
Code:
gio: /dev/sr0: No volume for given ID
|
Yes, format the mount command correctly, such as
Code:
mount /dev/sr0 /mntpoint
Quote:
Originally Posted by Wagadoo
It appears to be in /etc/fstab and matches what's in Disks. If I run
Code:
sudo mount /dev/sr0 /mnt
I get
Code:
mount: /mnt: no medium found on /dev/sr0.
However, seems to work just fine from command line for what it's worth.
|
The drive must have media in it before the mount command will work
The eject command works on the drive, the mount command works on a filesystem (media/disk) in the drive
Your dmesg output seems to indicate selinux may be interfering, Try to temporarily set selinux to permissive and see if those errors disappear. If they do then this may need to be approached from the selinux perspective.
Last edited by computersavvy; 10-03-2020 at 10:00 PM.
|
|
|
10-04-2020, 09:57 AM
|
#9
|
LQ Newbie
Registered: Nov 2006
Location: Oregon
Distribution: Ubuntu 20.04
Posts: 8
Original Poster
Rep:
|
Thanks for the follow up.
Quote:
Yes, format the mount command correctly, such as
Code:
mount /dev/sr0 /mntpoint
|
D'oh! I messed that one up. Although I still get the same error with
Code:
mount /dev/sr0 /mnt/sr0
The disc that's in is an commercial audio CD (Austin Powers soundtrack if anyone is interested), so I imagine it should be considered media.
When I tried I get the return. I looked into it a little, and since I have Apparmor, I tried disabling that with
Code:
sudo systemctl disable apparmor
followed by a reboot.
My dmesg output looks similar.
Code:
[ 8.820081] rfkill: input handler disabled
[ 9.990701] audit: type=1400 audit(1601818881.684:54): apparmor="DENIED" operation="mknod" profile="snap.plexmediaserver.plexmediaserver" name="/dev/shm/dZyZlt" pid=1639 comm=506C6578204D656469612053657276 requested_mask="c" denied_mask="c" fsuid=0 ouid=0
[ 10.119740] audit: type=1400 audit(1601818881.812:55): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.119743] audit: type=1400 audit(1601818881.812:56): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.119744] audit: type=1400 audit(1601818881.812:57): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.119807] audit: type=1400 audit(1601818881.812:58): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.128395] audit: type=1400 audit(1601818881.824:59): apparmor="DENIED" operation="mknod" profile="snap.plexmediaserver.plexmediaserver" name="/dev/shm/k70vjF" pid=2547 comm=506C65782054756E65722053657276 requested_mask="c" denied_mask="c" fsuid=0 ouid=0
[ 10.480598] audit: type=1400 audit(1601818882.176:60): apparmor="DENIED" operation="open" profile="snap.plexmediaserver.plexmediaserver" name="/proc/2588/mounts" pid=2588 comm=506C65782053637269707420486F73 requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 20.380005] audit: type=1326 audit(1601818892.072:61): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=2547 comm=506C65782054756E65722053657276 exe=2F736E61702F706C65786D656469617365727665722F3131312F506C65782054756E65722053657276696365 sig=0 arch=c000003e syscall=41 compat=0 ip=0x7fccaf8da667 code=0x50000
[ 20.380067] audit: type=1326 audit(1601818892.072:62): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=2547 comm=506C65782054756E65722053657276 exe=2F736E61702F706C65786D656469617365727665722F3131312F506C65782054756E65722053657276696365 sig=0 arch=c000003e syscall=41 compat=0 ip=0x7fccaf8da667 code=0x50000
|
|
|
10-04-2020, 10:35 AM
|
#10
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
Quote:
Originally Posted by Wagadoo
Thanks for the follow up.
D'oh! I messed that one up. Although I still get the same error with
Code:
mount /dev/sr0 /mnt/sr0
|
You nave to use an existing directory for the mount point. Does /mnt/sr0 exist?
Quote:
Originally Posted by Wagadoo
The disc that's in is an commercial audio CD (Austin Powers soundtrack if anyone is interested), so I imagine it should be considered media.
|
Media CD are not technically data formatted and often do not mount well, although movie DVDs do mount. Can you try the mount command with a data CD?
Quote:
Originally Posted by Wagadoo
When I tried I get the return. I looked into it a little, and since I have Apparmor, I tried disabling that with
Code:
sudo systemctl disable apparmor
followed by a reboot.
My dmesg output looks similar.
Code:
[ 8.820081] rfkill: input handler disabled
[ 9.990701] audit: type=1400 audit(1601818881.684:54): apparmor="DENIED" operation="mknod" profile="snap.plexmediaserver.plexmediaserver" name="/dev/shm/dZyZlt" pid=1639 comm=506C6578204D656469612053657276 requested_mask="c" denied_mask="c" fsuid=0 ouid=0
[ 10.119740] audit: type=1400 audit(1601818881.812:55): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.119743] audit: type=1400 audit(1601818881.812:56): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.119744] audit: type=1400 audit(1601818881.812:57): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.119807] audit: type=1400 audit(1601818881.812:58): apparmor="DENIED" operation="capable" profile="snap.plexmediaserver.plexmediaserver" pid=2547 comm=506C65782054756E65722053657276 capability=7 capname="setuid"
[ 10.128395] audit: type=1400 audit(1601818881.824:59): apparmor="DENIED" operation="mknod" profile="snap.plexmediaserver.plexmediaserver" name="/dev/shm/k70vjF" pid=2547 comm=506C65782054756E65722053657276 requested_mask="c" denied_mask="c" fsuid=0 ouid=0
[ 10.480598] audit: type=1400 audit(1601818882.176:60): apparmor="DENIED" operation="open" profile="snap.plexmediaserver.plexmediaserver" name="/proc/2588/mounts" pid=2588 comm=506C65782053637269707420486F73 requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 20.380005] audit: type=1326 audit(1601818892.072:61): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=2547 comm=506C65782054756E65722053657276 exe=2F736E61702F706C65786D656469617365727665722F3131312F506C65782054756E65722053657276696365 sig=0 arch=c000003e syscall=41 compat=0 ip=0x7fccaf8da667 code=0x50000
[ 20.380067] audit: type=1326 audit(1601818892.072:62): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=2547 comm=506C65782054756E65722053657276 exe=2F736E61702F706C65786D656469617365727665722F3131312F506C65782054756E65722053657276696365 sig=0 arch=c000003e syscall=41 compat=0 ip=0x7fccaf8da667 code=0x50000
|
That says apparmor is denying the action. I have never used apparmor so am not familiar with the commands, but there should be some way to disable it for testing.
Does plex media server work for files on the HDD? or are you only trying to use CDs and DVDs?
Are you able to listen to an audio CD with rhythmbox or some other audio player?
Can you use something like k3b to rip the music from the CD to your plex library and then listen to it from there?
Does apparmor also prevent all the above?
BTW, plex media server is not intended to rip or play media disks, but to serve files from a HDD library.
Last edited by computersavvy; 10-04-2020 at 02:02 PM.
|
|
|
10-04-2020, 11:44 AM
|
#11
|
Moderator
Registered: Aug 2002
Posts: 26,531
|
Audio CDs can not be mounted although there are some that have data tracks. If the disk is not recognized by the desktop you should be able to run whatever music player program you want to use and select the /dev/sr0 as the source.
There are back ground services that detect when a disk is inserted and either get automatically mounted if it is data or a pop up asking what do you want to do. There are special virtual file system like gvfs-cdda where an audio disk appears like separate files in the file browser.
I dont know if there is something wrong with your system or mint 20. I have not tried playing an audio disk in a long time.
|
|
|
10-14-2020, 02:53 PM
|
#12
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,276
|
I've a dvd drive that I'd given up on, but I'm not so sure now.
There are a few things that play it for sure: mplayer and vlc, for instance. Libdvdcss is in vlc.
|
|
|
10-18-2020, 02:02 PM
|
#13
|
LQ Newbie
Registered: Nov 2006
Location: Oregon
Distribution: Ubuntu 20.04
Posts: 8
Original Poster
Rep:
|
I tried to mount a DVD this time with
Code:
mount /dev/sr0 /mnt/sr0
and still get the result of no medium found on /dev/sr0. The directory /mnt/sr0 does indeed exist.
I'm not using Plex to play DVDs, but rather for streaming my DVD library locally after ripped.
No audio player (rhythmbox, clementine, VLC) or video player (VLC) I've tried will play the audio CD or DVD. The message I get from VLC when trying to load the DVD is
Code:
Playback failure:
DVDRead could not open the disc "/dev/sr0".
Your input can't be opened:
VLC is unable to open the MRL 'dvd:///dev/sr0'. Check the log for details.
I checked Ubuntu's settings and it's set to "Ask what to do" when media is inserted.
It seems to me that the DVD never reads the disc after it's inserted...
Here's the output after trying to run the DVD, this time after the computer has been on for quite a while. No recent reboots.
Code:
[209223.303836] audit: type=1400 audit(1603026554.224:6778): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=2510 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[209223.303840] audit: type=1400 audit(1603026554.224:6779): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=2510 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[209223.303842] audit: type=1400 audit(1603026554.224:6780): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/magic" pid=2510 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[209223.330646] usb 3-2: new full-speed USB device number 5 using xhci_hcd
[209223.809840] usb 3-2: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=31.64
[209223.809843] usb 3-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[209223.821818] Bluetooth: hci0: unexpected event for opcode 0x0000
[219291.111583] show_signal: 4 callbacks suppressed
[219291.111585] traps: fgfs[969453] general protection fault ip:7f724ae20fc4 sp:7f70bd7f8548 error:0 in libpthread-2.31.so[7f724ae1c000+11000]
[226127.661232] audit: type=1400 audit(1603043459.574:6785): apparmor="DENIED" operation="capable" profile="/snap/snapd/9607/usr/lib/snapd/snap-confine" pid=996687 comm="snap-confine" capability=4 capname="fsetid"
|
|
|
10-19-2020, 06:23 AM
|
#14
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,276
|
In Ubuntu, shouldn't that be
Code:
sudo mount /dev/sr0 /mnt/sr0
I'd also look for mention of a module or firmware on the manufacturer's web pages
Last edited by business_kid; 10-19-2020 at 06:25 AM.
|
|
|
10-25-2020, 03:32 PM
|
#15
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,276
|
One other thing: If you leave the drive open, dust collects. open the thing, and you'll spot the sensor/burner thingpointing at the ceiling. Wipe it with a 'wet one' or something similar. It can't hurt, and can fix the thing.
|
|
|
All times are GMT -5. The time now is 04:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|