Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[solved] Can't mount dvds

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
40 posts
  • 1
  • 2
  • Next
Author
Message
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

[solved] Can't mount dvds

  • Quote

Post by rsala » Sun Jun 27, 2010 4:23 pm

I've been trying to get my dvd player working. Its been working fine as a cdplayer. I've finally got it working (I think by unplugging the other dvd player) but only when I'm logged in as root. It still doesn't work as a normal user. My groups settings are:

Code: Select all

groups root
cdrom cdrw root
and

Code: Select all

groups roger
disk wheel floppy audio cdrom video cdrw usb users wireshark roger
Any ideas? Also you can see I borked up my root groups screwing around with things. Can somebody point me to a resource that will show me what groups root should belong to?
Last edited by rsala on Sat Feb 05, 2011 6:07 pm, edited 2 times in total.
Top
carcajou
Apprentice
Apprentice
User avatar
Posts: 256
Joined: Tue Jun 10, 2008 6:30 pm

  • Quote

Post by carcajou » Sun Jun 27, 2010 4:25 pm

Maybe you should add your user to plugdev group.

Code: Select all

#gpasswd -a roger plugdev
On my system:

Code: Select all

$ groups root
root bin daemon sys adm disk wheel floppy dialout tape video
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Sun Jun 27, 2010 5:54 pm

Thanks for the timely help kukibl! At least I got my root groups fixed. The dvd is not working at all anymore under root or otherwise. I put in a dvd which did not automount and then got this in my dmesg:

Code: Select all

[  962.380513] sr 1:0:0:0: [sr0] Unhandled sense code
[  962.380518] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  962.380523] sr 1:0:0:0: [sr0] Sense Key : Medium Error [current] 
[  962.380531] Info fld=0x84
[  962.380534] sr 1:0:0:0: [sr0] Add. Sense: No seek complete
[  962.380540] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 00 84 00 00 08 00
[  962.380554] end_request: I/O error, dev sr0, sector 528
[  962.380560] Buffer I/O error on device sr0, logical block 132
[  962.380566] Buffer I/O error on device sr0, logical block 133
[  962.380573] Buffer I/O error on device sr0, logical block 134
[  962.380578] Buffer I/O error on device sr0, logical block 135
[  962.380583] Buffer I/O error on device sr0, logical block 136
[  962.380587] Buffer I/O error on device sr0, logical block 137
[  962.380590] Buffer I/O error on device sr0, logical block 138
[  962.380594] Buffer I/O error on device sr0, logical block 139
[  974.795944] sr 1:0:0:0: [sr0] Unhandled sense code
[  974.795949] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  974.795954] sr 1:0:0:0: [sr0] Sense Key : Medium Error [current] 
[  974.795961] Info fld=0x5d910
[  974.795964] sr 1:0:0:0: [sr0] Add. Sense: No seek complete
[  974.795971] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 05 d9 10 00 00 02 00
[  974.795985] end_request: I/O error, dev sr0, sector 1532992
[  974.795991] Buffer I/O error on device sr0, logical block 383248
[  974.795999] Buffer I/O error on device sr0, logical block 383249
[  976.950567] UDF-fs: Partition marked readonly; forcing readonly mount
[  977.128031] UDF-fs INFO UDF: Mounting volume 'UDF Volume', timestamp 2008/07/30 20:00 (1f10)
[ 1105.730703] UDF-fs: Partition marked readonly; forcing readonly mount
[ 1105.742682] UDF-fs INFO UDF: Mounting volume 'UDF Volume', timestamp 2008/07/30 20:00 (1f10)
Anybody know what this might mean?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Jun 27, 2010 6:41 pm

rsala,

Most video DVDS are made with a corrupt filesystem as a way of deterring casual users from making copies.
Do not mount a video to play it - all the video players use raw device access, so you need to be in the cdrom group, which you are.

Run

Code: Select all

mplayer dvd://1
and see what happens. That plays title 1 on the dvd, which might only be a single frame. So try other titles too. You can add in

Code: Select all

-dvd-device <path to device>
if you have several dvd devices.

mplayer error messages will help diagnose problems for other players ... in that respect, its a very good diagnostic tool.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Sun Jun 27, 2010 11:06 pm

I went out and bought a new dvd player. The (very) old one was just acting a little too flaky. Now life is good running as root and I'm back to not being able to run as a normal user. When I run the mplayer command it plays just fine. But when I try to play it through Totem I get a popup that says ...

Code: Select all

Totem was not able to play this disc.
Not Authorized
dmesg displays the following:

Code: Select all

[ 1406.144941] sr 2:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1406.144948] sr 2:0:0:0: [sr1] Sense Key : Illegal Request [current] 
[ 1406.144955] sr 2:0:0:0: [sr1] Add. Sense: Read of scrambled sector without authentication
[ 1406.144966] sr 2:0:0:0: [sr1] CDB: Read(10): 28 00 00 3d 7c 32 00 00 08 00
[ 1406.144980] end_request: I/O error, dev sr1, sector 16117960
[ 1406.144986] __ratelimit: 3 callbacks suppressed
[ 1406.144990] Buffer I/O error on device sr1, logical block 2014745
[ 1406.145028] Buffer I/O error on device sr1, logical block 2014746
[ 1406.145035] Buffer I/O error on device sr1, logical block 2014747
[ 1406.145041] Buffer I/O error on device sr1, logical block 2014748
[ 1406.184898] sr 2:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1406.184909] sr 2:0:0:0: [sr1] Sense Key : Illegal Request [current] 
[ 1406.184919] sr 2:0:0:0: [sr1] Add. Sense: Read of scrambled sector without authentication
[ 1406.184933] sr 2:0:0:0: [sr1] CDB: Read(10): 28 00 00 3d 7c 32 00 00 02 00
[ 1406.184955] end_request: I/O error, dev sr1, sector 16117960
[ 1406.184963] Buffer I/O error on device sr1, logical block 2014745
[ 1406.328578] sr 2:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1406.328585] sr 2:0:0:0: [sr1] Sense Key : Illegal Request [current] 
[ 1406.328592] sr 2:0:0:0: [sr1] Add. Sense: Read of scrambled sector without authentication
[ 1406.328602] sr 2:0:0:0: [sr1] CDB: Read(10): 28 00 00 3d 7c 34 00 00 02 00
[ 1406.328617] end_request: I/O error, dev sr1, sector 16117968
[ 1406.328622] Buffer I/O error on device sr1, logical block 2014746
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Tue Jun 29, 2010 3:39 pm

I can access the dvd through mplayer and brasero but not totem and not through the Places item on the Gnome menu. Here are the groups I'm a member of:

Code: Select all

disk lp wheel floppy audio cdrom video cdrw usb users plugdev wireshark roger
I'm really at a loss. Could this be some kind of Pam issue?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Jun 29, 2010 8:20 pm

rsala,

totem should not try to mount the dvd you want to play. I think it uses xine-libs (from memory).
Do you have hald and dbus running ?

Can you mount burned data DVDs ?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Wed Jun 30, 2010 3:07 am

Thanks for the help. This one really has me stumped.

Hald and dbus are both running. I understand that playing a dvd is not "mounting" it per se but when I'm logged into a gnome session as root I see an icon on the desktop with the movie title on it. If I click on it I can see a folder. If I right click it, it gives me the option to play it with totem.

When I insert a data dvd as a normal user I get a pop up that says :

Code: Select all

Unable to mount UDF Volume
Not Authorized
It also won't mount a data cd but it will play a music cd with Rythmbox.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Jun 30, 2010 1:57 pm

rsala,

Code: Select all

Unable to mount UDF Volume
Not Authorized 
means that you don't have auto mounting set up. It should still work manually.

Audio CDs do not have a filesystem and cannot be mounted.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Wed Jun 30, 2010 2:36 pm

Here's what happens when I try it from the command line as a normal user:

Code: Select all

mount /dev/sr1 /mnt/cdrom/
mount: only root can do that
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Wed Jun 30, 2010 3:15 pm

rsala wrote:Here's what happens when I try it from the command line as a normal user:

Code: Select all

mount /dev/sr1 /mnt/cdrom/
mount: only root can do that
That's :roll: very :roll: surprising - really, in such case, that's what should be printed.

Your real problem lies probably on consolekit/policykit line.
Depending on Gnome version, see if either devkit-disks or udisks works from command line.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Jun 30, 2010 3:24 pm

rsala,

When you use the full form of mount, such as

Code: Select all

mount /dev/sr1 /mnt/cdrom/ 
then fstab is not consulted, so

Code: Select all

mount: only root can do that 
is the expected answer.

If your /etc/fstab contains the user or users option for /dev/sr1, then either

Code: Select all

mount /dev/sr1
or

Code: Select all

mount /mnt/cdrom/ 
will work as you force mount to consult /etc/fstab to determine where to mount, or what to mount respectively and the options are applied as you expect.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
monsm
Guru
Guru
User avatar
Posts: 467
Joined: Wed Sep 26, 2007 1:27 pm
Location: London, UK

  • Quote

Post by monsm » Wed Jun 30, 2010 3:28 pm

VoidMage wrote:
rsala wrote:Here's what happens when I try it from the command line as a normal user:
Your real problem lies probably on consolekit/policykit line.
Depending on Gnome version, see if either devkit-disks or udisks works from command line.
I think this might be your problem. If you are on xorg-server 1.6.5 or later hal has very little to do with it. I haven't needed to check the policykit in detail, but I think it has some "allow access" type config files somewhere under /etc. You'll probbaly find it with some searches around policykit.

Mons
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Wed Jun 30, 2010 3:31 pm

Code: Select all

devkit-disks --mount /dev/sr1
Mount failed: Not Authorized

Code: Select all

udisks
-bash: udisks: command not found
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Wed Jun 30, 2010 3:41 pm

I had commented out the line in my fstab according to other advice I had read online. Now it looks like this:

Code: Select all

/dev/sr1		/mnt/cdrom	auto		noauto,ro	0 0
and now ...

Code: Select all

devkit-disks --mount /dev/sr1           
Mount failed: Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sr1 on /mnt/cdrom
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56075
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Jun 30, 2010 9:38 pm

rsala,

Code: Select all

/dev/sr1      /mnt/cdrom   auto      user,noauto,ro   0 0
would be better.

The user option allows any user to mount /dev/sr1 on /mnt/cdrom provided you use the lazy form of mount.
However, only the user that performed the mount can umount the volume.

The users (not the s on the end) is similar, except any user can perform the umount.

If you set up auto mouting, you do not need the line in /etc/fstab.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Wed Jun 30, 2010 9:50 pm

Actually, no. A line in fstab, while doesn't stop automount altogether, as in case of hal,
still interferes with normal devkit-disks/udisks method of working.

Remove the line and check the output again.

The "Not authorized" line is more correct, as we go back to the real problem - policykit/consolekit.

Also, IIRC, plugdev mattered for hal only.
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Wed Jun 30, 2010 11:23 pm

The /dev/sr1 line is commented out in my fstab and here is the rc-update output:

Code: Select all

rc-update show
           alsasound | boot                          
            bootmisc | boot                          
             checkfs | boot                          
           checkroot | boot                          
               clock | boot                          
         consolefont | boot                          
          consolekit |      default                  
               cupsd |      default                  
                dbus |      default                  
                hald |      default                  
            hostname | boot                          
             keymaps | boot                          
               local |      default nonetwork        
          localmount | boot                          
             modules | boot                          
            net.eth0 |      default                  
              net.lo | boot                          
            netmount |      default                  
          ntp-client |      default                  
                ntpd |      default                  
           rmnologin | boot                          
               samba |      default                  
                sshd |      default                  
           syslog-ng |      default                  
      udev-postmount |      default                  
             urandom | boot                          
          vixie-cron |      default
Here is the output from dmesg with a dvd in the drive before specifically attempting to do anything:

Code: Select all

[   36.630903] sr 2:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   36.630910] sr 2:0:0:0: [sr1] Sense Key : Illegal Request [current] 
[   36.630917] sr 2:0:0:0: [sr1] Add. Sense: Read of scrambled sector without authentication
[   36.630928] sr 2:0:0:0: [sr1] CDB: Read(10): 28 00 00 3d 7c 32 00 00 08 00
[   36.630942] end_request: I/O error, dev sr1, sector 16117960
[   36.630947] Buffer I/O error on device sr1, logical block 2014745
[   36.630953] Buffer I/O error on device sr1, logical block 2014746
[   36.630958] Buffer I/O error on device sr1, logical block 2014747
[   36.630963] Buffer I/O error on device sr1, logical block 2014748
[   36.678033] sr 2:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   36.678039] sr 2:0:0:0: [sr1] Sense Key : Illegal Request [current] 
[   36.678045] sr 2:0:0:0: [sr1] Add. Sense: Read of scrambled sector without authentication
[   36.678055] sr 2:0:0:0: [sr1] CDB: Read(10): 28 00 00 3d 7c 32 00 00 02 00
[   36.678068] end_request: I/O error, dev sr1, sector 16117960
[   36.678072] Buffer I/O error on device sr1, logical block 2014745
[   36.878665] sr 2:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[   36.878672] sr 2:0:0:0: [sr1] Sense Key : Illegal Request [current] 
[   36.878678] sr 2:0:0:0: [sr1] Add. Sense: Read of scrambled sector without authentication
[   36.878687] sr 2:0:0:0: [sr1] CDB: Read(10): 28 00 00 3d 7c 34 00 00 02 00
[   36.878701] end_request: I/O error, dev sr1, sector 16117968
[   36.878705] Buffer I/O error on device sr1, logical block 2014746
If I click on "Places" on the gnome menu it shows a disk with the name of the dvd on it but there's no icon on the desktop like when I'm logged on as root. If I click on the icon in the "Places" sub-menu I get the pop-up that says "Unable to mount ..." "Not Authorized."

If I launch Totem it gives me an option under the Movie menu to play the disk, but if I select it, I get another pop-up that says "Totem was not able to play this disc." "Not Authorized".

If I then launch Brasero and select "Disk Copy" ... it works!
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Jul 01, 2010 12:05 pm

What does 'ls -l /dev/sr1' print ?
Same for ck-list-sessions (while in X).
See polkit manpage and pkaction.
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Thu Jul 01, 2010 12:40 pm

Code: Select all

ls -l /dev/sr1
brw-rw---- 1 root cdrom 11, 1 Jun 30 18:32 /dev/sr1
ck-list-sessions (while in X) doesn't return anything.

I did take a look at the man pages but it looks like quite an investment in time to learn that infrastructure just to get my cd player to work without superuser privileges. As the people on this thread are saying it would be nice if there was a source of information for troubleshooting if this stuff isn't going to work right-out-of-the-box.

http://forums.gentoo.org/viewtopic-t-8 ... ght-.html
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Jul 01, 2010 2:49 pm

rsala wrote:ck-list-sessions (while in X) doesn't return anything.
That's the important part.
Now, a question arises: how exactly do you run X ?
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Thu Jul 01, 2010 3:04 pm

startx
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Jul 01, 2010 4:44 pm

Any custom .xinitrc/.xsession/other tweaks ?
Top
rsala
Apprentice
Apprentice
Posts: 160
Joined: Sun Jul 27, 2003 12:18 am
Location: Pittsfield, MA

  • Quote

Post by rsala » Thu Jul 01, 2010 5:28 pm

Code: Select all

more .xinitrc 
export XDG_MENU_PREFIX=gnome-
exec gnome-session
no .xsession
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Thu Jul 01, 2010 6:08 pm

Make that 'exec ck-launch-session gnome-session'
Top
Post Reply

40 posts
  • 1
  • 2
  • Next

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy