LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-09-2017, 09:42 PM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Rep: Reputation: 43
Not able to mount partitions from file manager in Trinity-desktop


I recently installed Trinity desktop (https://www.trinitydesktop.org/) on Debian Stable-9 (32bit OS on 64bit machine) and it is working very well. Only problem is that I am not able to automatically mount and open other partitions from file manager. I do not want to enter all partitions in /etc/fstab and want to mount and open them as needed from file manager itself (as I can do in most other desktops like KDE or LXDE).

How can I correct this problem? Thanks for your help.

Last edited by rng; 07-11-2017 at 07:56 AM.
 
Old 07-10-2017, 08:35 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Shot in the dark:
without installing this myself to see whats going on, it might be something like old stye window maker or fluxbox when dbus maybe need to be added to a startup / config file or polkit(1) files too maybe needed to be added or modifed to get your automount off a file manager to work whenever you open one and the drives (partitions) are just readily available to you.

Code:
# Start DBUS session bus:
 if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    export DBUS_SESSION_BUS_ADDRESS
  fi
something like that perhaps.

are they even showing up in your file manager when you open it?

Last edited by BW-userx; 07-10-2017 at 08:38 AM.
 
Old 07-10-2017, 11:53 AM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
It does not seem to make a difference, probably because it is not zero:
Code:
$ echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus
All the partitions are visible but on trying to mount them, there is this error:
Code:
Unable to mount this device.
Potential reasons include:
Improper device and/or user privilege level
Corrupt data on storage device
Technical details:
org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
Following of polkit are installed:
Code:
lxpolkit                0.5.3-2         N/A             0.5.3-2         install
lxqt-policykit          0.11.1-1        N/A             0.11.1-1        install
policykit-1-gnome       0.105-6         N/A             0.105-6         install
Following are not installed:
Code:
gnome-flashback         N/A             N/A             3.22.0-3
gnome-shell             N/A             N/A             3.22.3-3
lxqt-openssh-askpass    N/A             N/A             0.11.1-1
gir1.2-mate-polkit      N/A             N/A             1.16.0-2
libmatepolkit-dev       N/A             N/A             1.16.0-2
libmatepolkit-doc       N/A             N/A             1.16.0-2
libpolkit-gtk-mate-1-0  N/A             N/A             1.16.0-2
mate-polkit             N/A             N/A             1.16.0-2
mate-polkit-bin         N/A             N/A             1.16.0-2
mate-polkit-common      N/A             N/A             1.16.0-2
muon                    N/A             N/A             4:5.6.0-1+b1
gir1.2-polkit-1.0       N/A             N/A             0.105-18
libpolkit-agent-1-dev   N/A             N/A             0.105-18
libpolkit-backend-1-dev N/A             N/A             0.105-18
libpolkit-gobject-1-dev N/A             N/A             0.105-18
polkit-kde-1            N/A             N/A             4:5.8.4-1
polkit-kde-agent-1      N/A             N/A             4:5.8.4-1
libpolkit-qt-1-1        N/A             N/A             0.112.0-5
libpolkit-qt-1-dev      N/A             N/A             0.112.0-5
libpolkit-qt5-1-dev     N/A             N/A             0.112.0-5
Since Trinity is Qt based, do I need to install libpolkit-qt-1-1 OR libpolkit-qt5-1-1 library or any of the other not installed above?

Also tdebase-tdeio-plugins-trinity (core I/O slaves for TDE) is also coming up in uninstalled list. Is this related?

Last edited by rng; 07-10-2017 at 12:06 PM.
 
Old 07-10-2017, 12:02 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by rng View Post
It does not seem to make a difference, probably because it is not zero:
Code:
$ echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus
All the partitions are visible but on trying to mount them, there is this error:
Code:
Unable to mount this device.
Potential reasons include:
Improper device and/or user privilege level
Corrupt data on storage device
Technical details:
org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
mine in fluxbox
Code:
userx%voider ⚡ perl-testing ⚡> echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-H5eylcSFcC,guid=4460370858afa48cc845e107596364d2
for polkit it has to be set to allow -- I'd have to dig into it to find it I had it back when I dealt with Debian -- udisk - dropbox saved stuff --


something like the path to it is
Code:
polkit-files/usr/share/polkit-1/actions
and
/polkit-files/usr/share/polkit-1/rules.d
I could post the files but rather wait to make sure they are relevant.

Last edited by BW-userx; 07-10-2017 at 12:06 PM.
 
Old 07-10-2017, 12:08 PM   #5
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
Pl see additions in my post above.
 
Old 07-10-2017, 12:16 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
this is off of dropbox path I save it accordnig to path but I do not know if it is the root path showing but maybe the sub dir to off root dir,

dir path
polkit-files/usr/share/polkit-1/actions

org.freedesktop.udisks2.policy

heading:
Code:
 <description>Mount a filesystem</description>
at bottom
Code:
  <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
see if that works -- it has been a long time so to remember everything I had to do is a stretch. though it wasn't much - just have to go through and look at headings to see if that is what you need for auto mounting a external device and checks its permissions for yes

it was only i think two things that needed to be that is one of them.
I could be wrong and that might be all that is needed to get your permissions.

whatever polkit is giving you this message is where I'd start modifying that polkit's file
Code:
Unable to mount this device.
Potential reasons include:
Improper device and/or user privilege level
Corrupt data on storage device
Technical details:
org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
then find the
<allow_active>no</allow_active>
and change it to
<allow_active>yes</allow_active>

Last edited by BW-userx; 07-10-2017 at 12:29 PM.
 
Old 07-10-2017, 12:20 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
you should know how to comment out and add to, so I'd just start with using what you have first comment out the original then add new lines to give yourself permissions and see if that works. if no then I'd look into installing a different polkit
Quote:
<!-- are comments -->
I am not that verse on polkit so which one to install is a guess for me. something that has qt like you suggest is all I could suggest myself.
 
Old 07-10-2017, 10:03 PM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
I already have above code but in following file: /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy

Code:
<allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
I tried installing polkit-kde-1, libpolkit-qt (which installed libpolkit-qt5) and mate-polkit but still it does not work.

Actually, the problem is not just with Trinity desktop. I have LXDE desktop as well on the same system and partitions are not mounting there also.

Last edited by rng; 07-10-2017 at 10:23 PM.
 
Old 07-11-2017, 07:33 AM   #9
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
Finally it is working!

I changed from "auth_admin" to "yes" in following areas of /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy :

Code:
    <description>Mount a filesystem</description>
    <description>Mount a filesystem on a system device</description>
    <description>Mount a filesystem from a device plugged into another seat</description>
I am not sure which is really needed.

Edit: I just realized it is working in LXDE but not in Trinity Desktop.

Last edited by rng; 07-11-2017 at 07:44 AM.
 
Old 07-11-2017, 08:44 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
so it is still not working in Trinity Desktop?

Hum they discontinued their support for a desktop for slack 14.2 -- stopping at 13.1 so I can't do an easy install to just hack away on it and see if I can get it to work here.

looking through the net
https://unix.stackexchange.com/quest...ady-running-sy

personally I'd send them a hey what the #&$# email and ask them if they even support it yet. just to get that maybe out of the way.

this one might help - you might have to write a simple rules file for this to work,

Udisks

which reminds me I had to do that awhile back - hold on,
Code:
#/etc/polkit-1/localauthority/50-local.d/automount.pkla
[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
dropbox saved file

I think this was back when I was using Debian so hopefully it will work for you, too.

Last edited by BW-userx; 07-11-2017 at 09:01 AM.
 
Old 07-11-2017, 11:28 AM   #11
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,117

Original Poster
Rep: Reputation: 43
Yes, it works (in Trinity also)!

There was no file in /etc/polkit-1/localauthority/50-local.d/ folder to begin with. I create above file and rebooted. Thanks for your help.
 
Old 07-11-2017, 11:57 AM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by rng View Post
Yes, it works (in Trinity also)!

There was no file in /etc/polkit-1/localauthority/50-local.d/ folder to begin with. I create above file and rebooted. Thanks for your help.
yeah that is one of them if not there then got to create it and file things.

good you have it working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get file manager to show ALL partitions Fixit7 Debian 5 06-04-2016 08:40 AM
[SOLVED] File manager stopped displaying partitions. judoka Linux - Desktop 2 11-06-2015 05:44 PM
[SOLVED] View other devices/partitions in XFE file manager mzsade Linux - General 6 08-18-2015 10:45 AM
[SOLVED] How to mount partitions on desktop klarsin Linux - Desktop 4 09-13-2009 07:32 AM
List of visible partitions on desktop / gnome-volume-manager afuerst Linux - Desktop 3 02-06-2009 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration