unable to mount cd/dvd drive

hello guys i jsut installed opensuse kde and xfce and i cannot mount dvd/cd 's. i am using opensuse 11.3 32 bit. i added my user to the cdrom drive group but still no luck. can somone help me out getting the cd to mount by jsut clicking on the dolphin icon? i have been asking for this for 3 days in the irc channel but noone answered.
thankyou

The cd or dvd you used to install openSUSE…Does it work or not? (I mean in Dolphin?)

no it does not. seems liek user cant mount the cd but root can. maybe i dont have permission to /media directory

But you can see the CD in Dolphin’s ‘Places’ ?
When you click it, do you see an error message about permissions?

exactly. i am in cdrom and disk group tho and i can mount as root

On 2011-02-23 22:06, RastaManPower wrote:
>
> hello guys i jsut installed opensuse kde and xfce and i cannot mount
> dvd/cd 's. i am using opensuse 11.3 32 bit. i added my user to the cdrom
> drive group but still no luck. can somone help me out getting the cd to
> mount by jsut clicking on the dolphin icon? i have been asking for this
> for 3 days in the irc channel but noone answered.

Explain procedure used and the error messages you get in some detail.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Did you try it in xfce also?
In kde system-settings look for the
system-system policies-org.freedesktop-the udisks project and see the permission in Mount a device, I think the active console should be set to yes.

i open the cd rom drive , put in a dvd and close the tray. open dolphin and click on the cdrom icon and get permissio denied.
mount /dev/cdrom /media/cdrom as user gives error: only root can mount
mount /dev/cdrom /media/cdrom as root mounts the drive correctly and i can browse the cdrom drive as root

On 2011-02-23 23:36, RastaManPower wrote:

> mount /dev/cdrom /media/cdrom as user gives error: only root can
> mount
> mount /dev/cdrom /media/cdrom as root mounts the drive correctly and i
> can browse the cdrom drive as root

This is the correct behaviour. You can mount as user only if you put the
appropriate line in fstab.

Why dolphin can not, I don’t know, I don’t use it.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

this is my fstab file:
SUSE Paste

Hi RastaManPower

You don’t need a /etc/fstab entry for your cdrom device, so leave that commented or remove completely.

You may need to adjust your access permissions via (KDE4) System Settings first. IIRC, you need to navigate to

System Settings >> “Advanced User Settings” >> “Device Actions”

From there it should be possible to check/adjust removable media access. I’m using KDE4.6, so the System Settings layout has changed a little. (You may need to restart KDE4 for the settings to take effect).

If you still have problems after this, then as conram has suggested, you may also need to check the system policies to make sure regular users have access via the active console. This can also be checked/adjusted graphically via System Settings, or via a text editor (with root privileges) if confident to do so. The key file is /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy

You can view via a console with

cat /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy

The section of interest is

<action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>

about the system settings i cant find any of those you described. i have italian system. aboyut the other fiel i have it the same way bbut still unable to mount

Check the policykit file, and make sure that is in order… cut and paste the output if you need to.

any other suggestion in fixing this?

On 2011-02-24 00:36, RastaManPower wrote:
>
> this is my fstab file:
> ‘SUSE Paste’ (http://susepaste.org/48826028)

404 Page Not Found

The page you requested was not found.

An fstab line is needed if you want to mount the CD/DVD manually, from the
command line. It depends on what you want to do, because such a line also
tells kde/gnome not to mount the cd/dvd.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

any other suggestion in fixing this?

  1. Can you type the command as requested? (It might be useful to see the contents of this file)
cat /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy

Cut and paste here if you need help interpreting or correcting the output.

  1. Try typing this command in a console with a data CD/DVD inserted:
udisks --mount /dev/sr0

Any errors reported? If not, proceed to launch dolphin, and see what is mounted under /media…

telemare@linux-rirq:~/Scrivania> cat /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy
<?xml version=“1.0” encoding=“UTF-8”?>
<!DOCTYPE policyconfig PUBLIC
“-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN”
http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd”>

<!–
Policy definitions for HAL’s drives/media mechanims.

Copyright (c) 2007 David Zeuthen <david@fubar.dk>

HAL is licensed to you under your choice of the the Academic Free
License Version 2.1, or the GNU General Public License version 2. Some
individual source files may be under the GPL only. See COPYING for
details.

<policyconfig>

<action id=“org.freedesktop.hal.storage.mount-fixed”>
<description>Mount file systems from internal drives.</description>
<message>System policy prevents mounting internal media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>

<action id=“org.freedesktop.hal.storage.mount-removable”>
<description>Mount file systems from removable drives.</description>
<message>System policy prevents mounting removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>

<action id=“org.freedesktop.hal.storage.unmount-others”>
<description>Unmount file systems mounted by other users.</description>
<message>System policy prevents unmounting media mounted by other users</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>

<action id=“org.freedesktop.hal.storage.eject”>
<description>Eject removable media.</description>
<message>System policy prevents ejecting removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>

<action id=“org.freedesktop.hal.storage.crypto-setup-fixed”>
<description>Set up decryption for encrypted fixed storage devices.</description>
<message>System policy prevents accessing encrypted fixed media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>

<action id=“org.freedesktop.hal.storage.crypto-setup-removable”>
<description>Set up decryption for encrypted removable storage devices.</description>
<message>System policy prevents accessing encrypted removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>

</policyconfig>

still same permision denied problem after mounting with the suggested commadn

The command was just used to show the policykit settings. The section of interest was this:

<action id="org.freedesktop.hal.storage.mount-removable">
<description>Mount file systems from removable drives.</description>
<message>System policy prevents mounting removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>

They look fine, so are not the problem here.

So now please follow the other instruction (#2) that I gave in last post, (udisks command), and post any errors. Make sure you use a data CD/DVD (eg openSUSE install DVD) and insert before executing the command.

Another thought I had: Check that the Device Notifier settings are correct. There should be an icon for it in your system tray (lower right). Right-click on the device notifier, and select ‘Device Notifier Settings’. Check that ‘Automounting’ is enabled correctly.