E-sata external hard disk recognition in Dolphin (policykit error )

Hi :wink:

i have an external hard disk which is in external-sata (e-sata) and that i’m trying to use for data storage.

Dolphin sees it but when i’m clicking on it i have a policykit authorisation error , i changed the policykit.conf in order to try to widen it but i still have the same error .

Here’s what i have so far :

fabrice@linux-bogo:/etc/PolicyKit> cat PolicyKit.conf
<?xml version=“1.0” encoding=“UTF-8”?> <!-- -- XML -- →

<!DOCTYPE pkconfig PUBLIC “-//freedesktop//DTD PolicyKit Configuration 1.0//EN”
http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd”>

<!-- See the manual page PolicyKit.conf(5) for file format →
<config version=“0.1”>

<define_admin_auth group=“users”/>

<match action=“org.freedesktop.hal.storage.mount-removable”>
<return result=“yes”/>
</match>

<!–
<match user=“fabrice”>
<return result=“yes”/>
</match>

</config>

Do you know what is impeding access to the disk from Dolphin ?

(Manual mount works ok with # ntfs-3g /dev/sde1 /mnt/data )

Thanks :wink:

Are you using opensuse 11.1 by chance? It’s a common problem in 11.1, I use a script I wrote and a replacement PolicyKit.conf file.

But you have to re-run the script after each update or it reverts back to brain-dead useless state!

here is my script -

#screw-hal.sh - kick hal's arse and make him obey me!!
sudo mv /etc/PolicyKit/PolicyKit.conf /etc/PolicyKit/PolicyKit.conf.old
sudo cp ./PolicyKit.conf /etc/PolicyKit/
sudo /etc/init.d/haldaemon restart

…copy and save that text above as screw-hal.sh, make it executable with -

chmod +x screw-hal.sh

and PolicyKit.conf -

<config version="0.1">

  <match action="org.freedesktop.hal.storage.mount-fixed">
   <match user="kev">
    <return result="yes"/>
   </match>
  </match>

  <match action="org.freedesktop.hal.storage.mount-removable">
   <match user="kev">
    <return result="yes"/>
   </match>
  </match>

  <match action="org.freedesktop.hal.storage.crypto-setup-fixed">
   <match user="kev">
    <return result="yes"/>
   </match>
  </match>

  <match action="org.freedesktop.hal.storage.crypto-setup-removable">
   <match user="kev">
    <return result="yes"/>
   </match>
  </match>

</config>

Change “kev” for “yourusername”, then save the text above as PolicyKit.conf in the same folder as the script above, then run the script from a terminal with -

./screw-hal.sh

Now all your internal and external partitions should mount with ease :D.

Hi :wink:

thanks for the input :slight_smile:

In between i saw that my above PolicyKit.conf
still had uneedeed comments (<!-- … → ).

I changed it and here’s what worked for me ( i hope this will still work after updates :wink: ) :

<?xml version=“1.0” encoding=“UTF-8”?> <!-- -- XML -- →

<!DOCTYPE pkconfig PUBLIC “-//freedesktop//DTD PolicyKit Configuration 1.0//EN”
http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd”>

<!-- See the manual page PolicyKit.conf(5) for file format →
<config version=“0.1”>

<define_admin_auth group=“users”/>

<match action=“org.freedesktop.hal.storage.mount-removable”>
<return result=“yes”/>
</match>

<match user=“fabrice”>
<return result=“yes”/>
</match>

</config>

Another disk working well :wink:

I have the same problem, suse 11.3, kde 4.4.4
I would like to have such (as usb disks) behaviour also for e-sata disks:

usb disk: I plug in the usb plug, the disk appear in dolphin or in removable device, I can mount as user.

e-sata disks: actual behaviour, I plug in the plug, the disk appear in dolphin (not in removable device), I cannot mount as user (only as root).

how to have e-sata disks behave like usb disks???
I looked at my /etc/PolicyKit/PolicyKit.conf but was nearly empty