Linux - Newbie This 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.
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.
|
|
07-15-2012, 02:34 PM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 7
Rep:
|
DVDs won't mount (I have done the libdvdcss thing)
My history: - Fresh 12.04 installation
- I was able to mount and play a commercial DVD
- I inserted a DVD that was apparently scratched. It didn't work
- Now DVDs won't even mount
Drive: Optiarc DDU1681S
3.2.0-26-generic x86_64
With the DVD drive open. trying to 'eject' it closed:
eject: unable to eject, last error: Inappropriate ioctl for device
Manually close the drive. In dmesg:
Buffer I/O error on device sr0, logical block 0
The light on the drive blinks steadily, and the hardware eject button is ineffective. 'sudo eject' works.
I also used regionset to set the region to 1 (my region). Putting in a CD works normally.
Thanks for any advice!
|
|
|
07-15-2012, 03:18 PM
|
#2
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,320
|
Did you mount it manually or auto mount it with udev or hal?
Is the DVD still mounted, even though you took the disk out?
Will show you what's mounted. /dev/sr0
If it's still mounted try a force umount on the mounting point. That's where ever you mounted it to.
Code:
umount -f /mounting/point
You might put it right by reboot
|
|
|
07-15-2012, 04:02 PM
|
#3
|
LQ Newbie
Registered: Jul 2012
Posts: 7
Original Poster
Rep:
|
(No disc in drive)
$ 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
|
|
|
07-16-2012, 01:22 PM
|
#4
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,320
|
Quote:
mount: /dev/sr0 already mounted or /dev/dvd busy
|
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.
http://linux.die.net/man/1/eject
http://linux.die.net/man/8/umount
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.
|
|
|
07-16-2012, 01:34 PM
|
#5
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
I may be wrong but isn't trying to mount /dev/sr0 on /dev/dvd always going to fail? To manually mount a DVD I would aleays do something like:
Code:
# mount /dev/sr0 /media/dvd
That's assuming that your DVD is /dev/sr0 and not /dev/dvd and that you have an appropriate folder in /media/.
|
|
|
07-16-2012, 08:00 PM
|
#6
|
LQ Newbie
Registered: Jul 2012
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
07-16-2012, 08:13 PM
|
#7
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
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.
|
|
|
07-16-2012, 08:29 PM
|
#8
|
LQ Newbie
Registered: Jul 2012
Posts: 7
Original Poster
Rep:
|
I'm not sure
Quote:
$ dpkg -l | grep css
ii libdvdcss2 1.2.12-0.0medibuntu1 Simple foundation for reading DVDs - runtime libraries
|
Then I also ran the install-css.sh script
What else may do the trick?
|
|
|
07-16-2012, 08:45 PM
|
#9
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
That ought to do it. It's worth double-checking is all.
|
|
|
All times are GMT -5. The time now is 01:38 AM.
|
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
|
|