DVDs won't mount (I have done the libdvdcss thing)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
$ eject
eject: unable to eject, last error: Inappropriate ioctl for device
$ sudo eject
eject: unable to eject, last error: Inappropriate ioctl for device
(Use physical button to eject and put in a DVD)
$ mount | grep sr
$ mount /dev/sr0 /dev/dvd
mount: only root can do that
$ sudo mount /dev/sr0 /dev/dvd
mount: /dev/sr0 already mounted or /dev/dvd busy
$ mkdir ~/dvd
$ sudo mount /dev/sr0 ~/dvd
mount: no medium found on /dev/sr0
Looks like it wasn't unmounted last time. Umount it manually.
Don't open the DVD drive until the disk is unmounted. You may have to force umount it. The drive may be hung do to ejecting the disk without umounting first.
I you are auto mounting you'll have to look at what your distro is doing, you may ask in your distos sub forum. If you are mounting manually, umount the disk, then open the drive. If you have a junk DVD, it may need to be force umounted, or the drive may get in a confused state. I'm not sure that eject will umount the file system before it opens the door.
Also a reboot may cure the whole problem.
Thanks for the advice! How can I look at what my distro (Stock Ubuntu) is doing? Here's a log from just now. let me know what else may help:
Restarted my system. Nothing in the drive.
Quote:
$ mount | grep sr
$ sudo mount /dev/sr0 ~/foo/
mount: no medium found on /dev/sr0
$ eject
Drive opens. I put a CD in the drive and press the physical button to close. I see the CD show up on my desktop and mounted at /media/cd-name.
Quote:
$ mount | grep sr
/dev/sr0 on /media/cd-name type iso9660 (ro,nosuid,nodev,uid=1001,gid=1001,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks)
$ sudo umount /media/cd-name/
$ mount | grep sr
$ eject
Drive opens. I replace it with a commercial DVD. The light on the drive blinks steadily. Nothing appears on the desktop or under /media
Quote:
$ mount | grep sr
$ sudo mount /dev/sr0 ~/foo
mount: /dev/sr0 already mounted or /home/me/foo busy
$ mount | grep sr
$ eject
The drive opens.
Thanks for any help - let me know what might help. It definitely seems to be DVD-specific.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Are you 100% sure you installed the non-free packages to read CSS DVDs?
I ask because I've done this before and installed Ubuntu and missed the specific codecs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.