Jump to content

Cannot access USB Stick. Armbian 5.05 OPi.pc


Seasalt

Recommended Posts

If I put a USB stick in I can see it in Nautilus(yes I installed nautilus) but when I click on the name of the USB , I get..

 

"

Unable to access “USBNAME"

 

Not authorized to perform operation (polkit authority not available and caller is not uid 0)"

 

Everything else is working.

 

I have Samba, SSH, x11vnc, NAS, HEVC x265 Video, all working happily.I can live without USB but I thought it would be important to give the Armbian developers feedback.

 

I have looked for an answer and I do not see any one else having this problem.

 

Once again I just love this Armbian / OPi.pc combination.

 

Seasalt

Link to comment
Share on other sites

I am having the same USB automount errors.

orangepipc -5.05 on Samsung Evo 32Gb w/ factory orange pi power supply

I can mount OK with sudo mount so that's not a problem.

I chased Policykit configuration for a day, no change.

Then I chased polkit-1 another day (apt-get install polkit-1), got it to finally say

$ pkaction --verbose --action-id org.freedesktop.udisks2.filesystem-mount
description:       Mount a filesystem
  message:           Authentication is required to mount the filesystem
  vendor:            The udisks Project
  vendor_url:        http://udisks.freedesktop.org/
  icon:              drive-removable-media
  implicit any:      yes
  implicit inactive: yes
  implicit active:   yes

But still No Authority to mount USB stick.

I then removed all the policy kit config files that I messed with and STILL get the above yes answers, but no authority.

 

Therefore armbian must not be using either form of polkit for authentication. Maybe its SELinux??

  Edit: or not. not commands for SELinux installed.

 

I'll keep chasing it, but I'm running out of ideas.

Link to comment
Share on other sites

Could it be simply because of /etc/group membership ?

I think not.

larryl@orangepione:~$ groups

larryl dialout sudo audio video plugdev netdev

 

Does your USB stick automatically mount (or thru thunar) when pluged in?

If this is my (and Seasalt's) personal problem, I'll live with it. I assumed it was widespread and that I would be helping to figure it out.

 

I have orangepione, 5.05 image on 32Gb Samsung EVO, sudo apt-get update, upgraade

added Cyphers to sshd, apt-get install tightvncserver xtightvncviewer,

No other packages loaded. Before on the Opc PC, I installed gvfs policykit-1 and later removed policykit-1 thinking that was the problem, but not installed this time.

Link to comment
Share on other sites

I found Igor's Mar 12 commit,  
https://github.com/igorpecovnik/lib/commit/bf66a46085bdd8d6abc6149c710e0c0532dc882b
Automount/eject of USB, fix reboot/shutdown on desktop (Jessie)

So I followed it:
sudo apt-get -y install  gvfs policykit-1 policykit-1-gnome eject
edited /boot/boot.cmd  to change "cgroup-enable" to "cgroup_enable"
sudo mkdir -p /etc/polkit-1/localauthority/50-local.d/
added  plugdev.pkla and power.pkla to it

plugdev.pkla

[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system;org.freedeskt
op.udisks2.filesystem-mount-other-seat;org.freedesktop.udisks2.filesystem-unmount-others;org.freedesktop.udis
ks2.eject-media;org.freedesktop.udisks2.eject-media-system;org.freedesktop.udisks2.power-off-drive*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

power.pkla
 

[Allow Desktopstuff]
Identity=unix-group:sudo
Action=org.freedesktop.login1.reboot;org.freedesktop.login1.reboot-multiple-session;org.freedesktop.login1.po
wer-off;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.suspend;org.freedesktop.log
in1.suspend-multiple-sessions;org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sess
ions
ResultAny=yes
ResultInactive=yes
ResultActive=yes

I still get an error window saying I do not have permission to eject, however the USB stick is indeed unmounted.

 

So fixed.

 

Thank you for your comments.

Larry

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines