Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Can mount drives in GNOME, but not Xfce.

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

[SOLVED] Can mount drives in GNOME, but not Xfce.

#1 Post by Lysander »

Hi all,

This is a simple solution, I hope. I have a couple of LUKS drives in my Debian 10 install. I cannot mount them in Xfce, but I can in GNOME. If I do so in GNOME, then switch to Xfce, I can access them.

If I try to access them in Xfce without having done so far in GNOME, I get the error: "Not authorised to perform operation: udisks-error-quark, 4". I have Googled this but I am still rather stumped as to have to fix this. Any help would be appreciated.
Last edited by Lysander on 2020-05-08 13:41, edited 1 time in total.

User avatar
Bloom
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 504
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Can mount drives in GNOME, but not Xfce.

#2 Post by Bloom »

For this the work in XFCE, policykit-1 and gvfs should be installed. Is that the case?


User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Can mount drives in GNOME, but not Xfce.

#4 Post by Head_on_a_Stick »

Is there a graphical polkit authentication agent running in Xfce?

Code: Select all

pgrep -a polkit
deadbang

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Can mount drives in GNOME, but not Xfce.

#5 Post by CwF »

Bloom wrote:For this the work in XFCE, policykit-1 and gvfs should be installed. Is that the case?
and cryptmount ?

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Can mount drives in GNOME, but not Xfce.

#6 Post by Lysander »

Head_on_a_Stick wrote:Is there a graphical polkit authentication agent running in Xfce?

Code: Select all

pgrep -a polkit
It gives this output:

Code: Select all

lysander@psychopig-xxxvii:~$ pgrep -a polkit
580 /usr/lib/policykit-1/polkitd --no-debug
CwF wrote:
Bloom wrote:For this the work in XFCE, policykit-1 and gvfs should be installed. Is that the case?
and cryptmount ?
I have just installed this too, it wasn't installed before.

Actually this doesn't appear to be anything to do with LUKS. I cannot mount my non-LUKS drive either in Xfce.

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Can mount drives in GNOME, but not Xfce.

#7 Post by Lysander »

Solved, the issue was addressed in this thread:

https://unix.stackexchange.com/question ... tion-in-xf

It was policykit-1-gnome I needed.
Turns out, the dialog window that asks for a password is actually a separate program called "PolicyKit authentication agent" which for some reason wasn't installed. So i installed policykit-1-gnome and now I can enter the password and mount drives.
After logging out/in on Xfce I can now mount all drives. Thanks, everyone.

CwF
Global Moderator
Global Moderator
Posts: 2638
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: [SOLVED] Can mount drives in GNOME, but not Xfce.

#8 Post by CwF »

I'm odd and have only used xfce. I've only used the cli, or more likely a button or verve line with a user sudo enabled for mount, and typically mount by-label. Never bothered with fstab either. On my setup pretty sure I needed cryptmount to ask for the key, since I made a note to install it on something without any Luks just in case I need to mount one.

For xfce just use libpolkit-agent-1-0, with helpers libpolkit-gobject-1-0 and libpolkit-backend-1-0. The gnome or other versions are not needed.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Can mount drives in GNOME, but not Xfce.

#9 Post by Head_on_a_Stick »

Lysander wrote:It was policykit-1-gnome I needed.
Debian's Xfce live image already includes that package. How did you install Xfce?
deadbang

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: Can mount drives in GNOME, but not Xfce.

#10 Post by Lysander »

CwF wrote:For xfce just use libpolkit-agent-1-0, with helpers libpolkit-gobject-1-0 and libpolkit-backend-1-0. The gnome or other versions are not needed.
Thank you, I'm glad it works now.
Head_on_a_Stick wrote:
Lysander wrote:It was policykit-1-gnome I needed.
Debian's Xfce live image already includes that package. How did you install Xfce?
Xfce and GNOME were installed through netinst at the time of the main install.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: [SOLVED] Can mount drives in GNOME, but not Xfce.

#11 Post by Head_on_a_Stick »

Ah, I see. This problem happened because network-manager-gnome's polkit authentication agent dependency is satisfied by the gnome-shell package. If you had just installed Xfce (ie, without GNOME) then policykit-1-gnome would have been installed automatically.
deadbang

User avatar
Lysander
Posts: 643
Joined: 2017-02-23 10:07
Location: London
Been thanked: 1 time

Re: [SOLVED] Can mount drives in GNOME, but not Xfce.

#12 Post by Lysander »

Ah thanks. That would explain why I didn't have this issue with my laptop, which only runs Xfce.

Post Reply