aptosid.com

Hardware - usb flash drives no longer automount?

kenyee - 04.06.2011, 17:43
Post subject: usb flash drives no longer automount?
Been a while since I tried using a USB flash stick
and noticed I get this now when trying to access the USB drive in the file manager:

org.freedesktop.UDisks.Error.Permission: Not Authorized

GDBus.Error:org.freedesktop.DBus.E The name org.freedesktop.PolicyKit1 was not provided by any .service files.

Anyone hit this before or know of a solution?
I found quite a few references to this on various flavors of Linux and checked the policy file at:
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy

where <allow_active>yes</allow_active> is set already for removeable drives...
slh - 04.06.2011, 19:35
Post subject: RE: usb flash drives no longer automount?
http://aptosid.com/index.php?name=PNphpBB2&file=viewtopic&t=1324
Ice9 - 04.06.2011, 21:55
Post subject:
I've been unable to mount any usb drive in the file manager since I've dist-upgraded to kde 4.6.
I can however mount them manually in a console (like we had to do years ago).

I've watched the thread slh linked to but I don't see the relation, other than perhaps install polkit-kde-1, which I did ...
Here's the complete error message I got
      Code:

org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized:
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied:
Rejected send message, 1 matched rules;
type="method_call", sender=":1.11" (uid=0 pid=2109 comm="/usr/lib/udisks/udisks-daemon ")
interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" error name="(unset)"
requested_reply="0" destination=":1.34" (uid=0 pid=3018
comm="/usr/lib/policykit-1/polkitd ")


Since I haven't been able to backup my box on my external drives for a while now this becomes more and more of an issue as the days go by.
I was hoping to see this go away with the next couple of dist-upgrades but it's still pretty much there ...

Ideas anyone?
kenyee - 04.06.2011, 22:12
Post subject:
hmm...I was definitely missing polkit-kde-1, though it's odd that the /usr/share/polkit directory existed (installing polkit-kde-1 added the /etc/polkit directory I looked for. Didn't realize this affected automounting USB drives.
Now it just says org.freedesktop.DBus.Error.NoReply
Do you have to restart KDE after installing polkit-kde-1?
DeepDayze - 04.06.2011, 23:51
Post subject:
      kenyee wrote:
hmm...I was definitely missing polkit-kde-1, though it's odd that the /usr/share/polkit directory existed (installing polkit-kde-1 added the /etc/polkit directory I looked for. Didn't realize this affected automounting USB drives.
Now it just says org.freedesktop.DBus.Error.NoReply
Do you have to restart KDE after installing polkit-kde-1?


a good idea to do so so that the configuration changes can be updated
kenyee - 05.06.2011, 02:29
Post subject:
Yep, restart was definitely needed.
Unfortunately, I think I ended up at the same point as Ice9. This is displayed on the USB icon at the lower right of the KDE desktop when I tell it to open the USB drive in File Manager:

org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.13" (uid=0 pid=6991 comm="/usr/lib/udisks/udisks-daemon ") interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" error name="(unset)" requested_reply=0 destination=":1.58" (uid=0 pid=1882 comm="/usr/lib/policykit-1/polkitd "))
hepp - 05.06.2011, 12:55
Post subject:
The same problem here. No automount since apt-get dist-update to kde 4.6. The only "strange" message during boot is a message saying failed to execute /lib/udev/mtp-probe.

Host/Kernel/OS "siduxbox" running Linux 2.6.39-1.slh.1-aptosid-686 i686 [ sidux 2009-03 ÎÏÎŒÎ¿Ï - kde-full - (200911110039) ]
CPU Info 2x AMD Athlon 64 X2 Dual Core 5600+ clocked at [ 2800.000 MHz ]
Videocard nVidia C51PV [GeForce 6150] [ ]
Processes 135 | Uptime 43min | Memory 895.6/3262.9MB | HDD Size 1704GB (52%used) | Client Shell | Infobash v3.36
DeepDayze - 05.06.2011, 14:48
Post subject:
Is the flash drive NTFS formatted? Just curious as ntfs-3g does not have permissions to mount as user and the vfat formatted ones work fine for me.
kenyee - 05.06.2011, 15:29
Post subject:
Both of mine are FAT32.
I dug more into policykit and found I was missing this file:
/etc/polkit-1/localauthority/50-local.d/11-my-polkit-udisks.pkla
Contents:
[udisks full access]
Identity=unix-user:<myusername>
Action=org.freedesktop.udisks.*
ResultAny=yes

Also modified my .xinitrc to launch kde via ck-launch-session instead of by itself
exec ck-launch-session startkde

Also added myself to the "disk" usergroup. I don't the usb, storage, or optical usergroups some posts mention.

Same error though Sad

Not sure if it's related, but if I try mounting the drive on the command line, I have to do it as root, even though I'm in the "floppy" group:
kenyee@JumpGate:~$ mount /dev/sdd /home/kenyee/a
mount: only root can do that
kenyee@JumpGate:~$ ls -l /dev/sdd
brw-rw---- 1 root floppy 8, 48 Jun 5 11:18 /dev/sdd

hepp: I think your problem may be different unless you're getting these policykit errors...
hepp - 05.06.2011, 16:24
Post subject:
I do not have ntfs at all. I having the problems with both usb and firewire (onetouch-II) with vfat and ext3
Ice9 - 05.06.2011, 22:37
Post subject:
No ntfs here either ...
sx9 - 05.06.2011, 22:37
Post subject:
@DeepDayze

I've got the same problem with my NTFS partition, but it seems that the bug has been found, but not been fixed already.
http://aptosid.com/index.php?name=PNphp ... amp;t=1358
hepp - 14.07.2011, 18:06
Post subject:
Problem solved on my two machines. Following some of the advice here https://bbs.archlinux.org/viewtopic.php?id=115610 I installed udisks and udisks-glue (that wanted these as well: libatasmart4 libconfuse-common libconfuse0 liblvm2app2.2 libsgutils2-2) then everything works fine again, both usb and cdrom works.
All times are GMT - 12 Hours
Powered by PNphpBB2 © 2003-2010 The Zafenio Group
Credits