Bug 219996

Summary: Dolphin in 4.4 Betas 1&2 Fails to mount internal drives other than root
Product: [Unmaintained] solid Reporter: Kubuntiac <user581>
Component: libsolid-halAssignee: Alberto Villa <avilla>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: nsandschn, Ronny.Standtke
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kubuntiac 2009-12-24 20:46:12 UTC
Version:           1. 3.80 (using Devel)
OS:                Linux
Installed from:    Compiled sources

I have a couple of drives other than the root one. Dolphin in KDE 4.3.4 mounted them with a single click on the "Places" icon. Since updating to the 4.4 Beta 1 (and subsequently 4.4 Beta 2) packages though, if I try and mount them, dolphin complains for example:

An error occurred while accessing '88.7 GiB Hard Drive', the system responded: org.freedesktop.Hal.Device.Volume.PermissionDenied: Refusing to mount device /dev/sdb3 for uid=1000

The root drive (ie "Home" in places) always works fine. I have an EXT4 volume connected over IDE and an NTFS volume connected over SATA. Both give the error above, albeit with a different drive name. My 8gig fat32 usb stick seems to mount fine, and everything worked before the upgrade to 4.4 Beta.


TECH SPECS:
Kubuntu Lucid AMD64
KDE 4.4 Beta 1 (and now beta 2)
Dolphin 1.3.80
Kubuntu packages
Comment 1 Kubuntiac 2010-01-25 21:57:24 UTC
Still getting this on both RC 1 and 2 as are other people (see https://bugs.launchpad.net/ubuntu/+source/dolphin/+bug/500205 )
Comment 2 nsandschn 2010-05-07 13:50:43 UTC
I can confirm this bug with KDE 4.4.3 in Debian sid. Clicking on an unmounted hard disk partition (other than home) in Dolphin results in the above mentioned error message. Mounting CDs or USB sticks works fine. Possible workaround is to start Dolphin as root to mount the device.
Apparently, Kubuntu 10.4 includes a fix for this:
https://bugs.launchpad.net/ubuntu/+source/hal/+bug/528907
Comment 3 Ronny Standtke 2010-12-02 15:31:40 UTC
I can confirm this issue with KDE 4.4.5 on Debian squeeze.
Comment 4 Ronny Standtke 2010-12-02 15:31:55 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 Ronny Standtke 2011-01-27 15:13:03 UTC
I found the root of this problem:
The hal package contains a patch that hardcodes this behaviour.

Try the following commands:
------
apt-get source hal
cd hal-0.5.14
vi debian/patches/series
------

Now remove the following line:
------
10_nonpolkit-mount-policy.patch
------

You can build a new package without this patch by first calling:
------
dch -i
------
Change "0.5.14-0ubuntu7" to something like "1:0.5.14-0ubuntu7" so that this package is not overwritten with official updates.

Now you need to install all buildtime dependencies for hal:
------
sudo apt-get build-dep hal
------

Then you can build the package with:
------
dpkg-buildpackage
------

When the package building succeeded you can install your new package with:
------
sudo dpkg -i ../hal_*
------

Hope this helps.
Comment 6 Alex Fiestas 2011-05-29 21:54:54 UTC
Can anyone reproduce this with modern HAL or with the UDisk backend? I can't

Thanks!
Comment 7 Kubuntiac 2011-05-30 06:55:20 UTC
I can't anymore, either.
Comment 8 nsandschn 2011-05-30 19:29:47 UTC
Yeah, this really seems to fixed! Works fine now. Thanks!
Comment 9 Andrew Crouthamel 2018-09-04 15:44:35 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug. Please try again with the latest version and submit a new bug to frameworks-solid if your issue persists. Thank you!