Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kenyeeOffline
Post subject: usb flash drives no longer automount?  PostPosted: 04.06.2011, 17:43



Joined: 2010-09-29
Posts: 80

Status: Offline
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...
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: usb flash drives no longer automount?  PostPosted: 04.06.2011, 19:35



Joined: 2010-08-25
Posts: 725

Status: Offline
http://aptosid.com/index.php?name=PNphpBB2&file=viewtopic&t=1324
 
 View user's profile Send private message  
Reply with quote Back to top
Ice9Offline
Post subject:   PostPosted: 04.06.2011, 21:55



Joined: 2010-09-11
Posts: 6
Location: Belgium
Status: Offline
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?


Last edited by Ice9 on 04.06.2011, 22:46; edited 1 time in total
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kenyeeOffline
Post subject:   PostPosted: 04.06.2011, 22:12



Joined: 2010-09-29
Posts: 80

Status: Offline
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?
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject:   PostPosted: 04.06.2011, 23:51



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
      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
 
 View user's profile Send private message  
Reply with quote Back to top
kenyeeOffline
Post subject:   PostPosted: 05.06.2011, 02:29



Joined: 2010-09-29
Posts: 80

Status: Offline
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 "))
 
 View user's profile Send private message  
Reply with quote Back to top
heppOffline
Post subject:   PostPosted: 05.06.2011, 12:55



Joined: 2010-09-11
Posts: 30
Location: Stockholm, Sweden
Status: Offline
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
 
 View user's profile Send private message  
Reply with quote Back to top
DeepDayzeOffline
Post subject:   PostPosted: 05.06.2011, 14:48



Joined: 2010-09-11
Posts: 616
Location: USA
Status: Offline
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.
 
 View user's profile Send private message  
Reply with quote Back to top
kenyeeOffline
Post subject:   PostPosted: 05.06.2011, 15:29



Joined: 2010-09-29
Posts: 80

Status: Offline
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...
 
 View user's profile Send private message  
Reply with quote Back to top
heppOffline
Post subject:   PostPosted: 05.06.2011, 16:24



Joined: 2010-09-11
Posts: 30
Location: Stockholm, Sweden
Status: Offline
I do not have ntfs at all. I having the problems with both usb and firewire (onetouch-II) with vfat and ext3
 
 View user's profile Send private message  
Reply with quote Back to top
Ice9Offline
Post subject:   PostPosted: 05.06.2011, 22:37



Joined: 2010-09-11
Posts: 6
Location: Belgium
Status: Offline
No ntfs here either ...
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
sx9Offline
Post subject:   PostPosted: 05.06.2011, 22:37



Joined: 2010-09-12
Posts: 219
Location: Wiesbaden,Germany
Status: Offline
@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

_________________
My new self-made computer:
Intel Core i7-2600k
ASUS Maximus IV Gene-Z (Mainboard)
2x4GB DDR3 RAM
ATI Radeon HD 6770
OCZ Vertex 3 60GB (SSD)
Western Digital Caviar Green WD20EARX 2TB (HDD)
...
aptosid x86_64
 
 View user's profile Send private message Send e-mail Yahoo Messenger  
Reply with quote Back to top
heppOffline
Post subject:   PostPosted: 14.07.2011, 18:06



Joined: 2010-09-11
Posts: 30
Location: Stockholm, Sweden
Status: Offline
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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio