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.
[SOLVED] Can mount drives in GNOME, but not Xfce.
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.
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.
Re: Can mount drives in GNOME, but not Xfce.
For this the work in XFCE, policykit-1 and gvfs should be installed. Is that the case?
- 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.
Is there a graphical polkit authentication agent running in Xfce?
Code: Select all
pgrep -a polkit
deadbang
Re: Can mount drives in GNOME, but not Xfce.
It gives this output:Head_on_a_Stick wrote:Is there a graphical polkit authentication agent running in Xfce?Code: Select all
pgrep -a polkit
Code: Select all
lysander@psychopig-xxxvii:~$ pgrep -a polkit
580 /usr/lib/policykit-1/polkitd --no-debug
I have just installed this too, it wasn't installed before.CwF wrote:and cryptmount ?Bloom wrote:For this the work in XFCE, policykit-1 and gvfs should be installed. Is that the case?
Actually this doesn't appear to be anything to do with LUKS. I cannot mount my non-LUKS drive either in Xfce.
Re: Can mount drives in GNOME, but not Xfce.
Solved, the issue was addressed in this thread:
https://unix.stackexchange.com/question ... tion-in-xf
It was policykit-1-gnome I needed.
https://unix.stackexchange.com/question ... tion-in-xf
It was policykit-1-gnome I needed.
After logging out/in on Xfce I can now mount all drives. Thanks, everyone.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.
-
- 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.
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.
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.
- 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.
Debian's Xfce live image already includes that package. How did you install Xfce?Lysander wrote:It was policykit-1-gnome I needed.
deadbang
Re: Can mount drives in GNOME, but not Xfce.
Thank you, I'm glad it works now.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.
Xfce and GNOME were installed through netinst at the time of the main install.Head_on_a_Stick wrote:Debian's Xfce live image already includes that package. How did you install Xfce?Lysander wrote:It was policykit-1-gnome I needed.
- 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.
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
Re: [SOLVED] Can mount drives in GNOME, but not Xfce.
Ah thanks. That would explain why I didn't have this issue with my laptop, which only runs Xfce.