Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pcmanfm - removable devices not mounting and showing up
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2322
Location: Bretagne

PostPosted: Sat Nov 23, 2024 5:21 pm    Post subject: pcmanfm - removable devices not mounting and showing up Reply with quote

Hello!

I'm using pcmanfm with LXDE.
I have udisks installed and globally enabled as USE flag.

Basically, I would just want to have my USB drives to automount and show up in pcmanfm window.

Let's grab an example with a USB drive, here's the fstab part:
Code:
/dev/kingston16G1                       /mnt/usbdrive/kingston1         vfat    rw,user         0 0


There, adding the "auto" option before "rw,user" doesn't change a thing
And this is my .xinitrc if that helps:

Code:
exec startlxde
xset -dpms
xset s off


I still have to precise that in pcmanfm settings, all the relevant auto-mounting options are properly ticked.

Do we have pcmanfm users who could give me a clue about this, browsing arch and more documentation on the internet didn't help much.

Many thanks in advance for your help! :)
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Sat Nov 23, 2024 11:50 pm    Post subject: Reply with quote

pcmanfm doesn't mount according to fstab.
Hence an example:
Inserting USB key triggers a popup menu to validate the mounting.
Once accepted, pcmanfm mounts volume(s) as;
Code:
/run/media/user/UEFI_NTFS
/run/media/user/CCCOMA_X64FRE_FR-FR_DV9
Plz note how volumes paths are relative to logged user.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Sun Nov 24, 2024 12:05 am    Post subject: Reply with quote

Dependent packages details:
Code:
x11-libs/libfm
     Available versions:  (~)1.3.2-r1(0/5.3.1) {+automount debug doc examples exif gtk udisks vala}
     Installed versions:  1.3.2-r1(0/5.3.1)(19:30:11 16/08/2024)(automount exif gtk udisks -debug -doc -examples -vala)
Code:
[I] sys-fs/udisks
     Available versions:  (2) 2.9.4-r3 2.10.1 2.10.1-r1 [m]**2.10.90[1]
       {acl +daemon debug elogind +introspection lvm nls selinux systemd vdo zram}
     Installed versions:  2.10.1-r1(2)(02:10:17 22/10/2024)(daemon elogind -acl -debug -introspection -lvm -nls -selinux -systemd)

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Sun Nov 24, 2024 12:24 am    Post subject: Reply with quote

U have problematic .xinitrc.
Any line beyond exec will not be executed.

Here
Code:
exec dbus-launch --sh-syntax --exit-with-session startlxde
may be required for working USB automount.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2322
Location: Bretagne

PostPosted: Sun Nov 24, 2024 5:50 pm    Post subject: Reply with quote

Thank you, dear CaptainBlood!

This seems in order:
Code:
[ebuild   R   ~] x11-libs/libfm-1.3.2-r1:0/5.3.1::gentoo  USE="automount exif gtk udisks -debug -doc -examples -vala" 1 265 KiB
[ebuild   R    ] sys-fs/udisks-2.10.1-r1:2::gentoo  USE="acl daemon elogind introspection nls -debug -lvm (-selinux) -systemd" 0 KiB


And added to my .xinitrc
Code:
exec dbus-launch --sh-syntax --exit-with-session startlxde

But nothing happens either when inserting a drive.

CaptainBlood wrote:
U have problematic .xinitrc.
Any line beyond exec will not be executed.

You mean my xset lines are useless here or should be put before the exec line, right?

I forgot to mention something important: in the left panel of pcmanfm windows there is a "device" folder in which will appear removable drives inserted, I can see them as icons among other filesystems but if I try to click these I get an error message on a popup window: "The folder "computer:///<mydrive>.drive" indicated is not valid". Can't open it.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Sun Nov 24, 2024 6:17 pm    Post subject: Reply with quote

Adrien wrote:
CaptainBlood wrote:
U have problematic .xinitrc.
Any line beyond exec will not be executed.

You mean my xset lines are useless here or should be put before the exec line, right?
Yes

Do you have any message in console 12 when you insert a drive?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2322
Location: Bretagne

PostPosted: Sun Nov 24, 2024 6:29 pm    Post subject: Reply with quote

CaptainBlood wrote:

Do you have any message in console 12 when you insert a drive?


Nope, just a blinking cursor all the way.
But my device gets detected fine, I can manually mount and unmount as user or root.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Mon Nov 25, 2024 2:06 pm    Post subject: Reply with quote

Oops; I forgot to mention this one
Code:
eix gvfs
[I] gnome-base/gvfs
     Available versions:  1.52.2^t ~1.52.3^t [m]~1.56.0^t[1] {afp archive bluray cdda elogind fuse gnome-online-accounts google gphoto2 +http ios keyring mtp nfs policykit samba systemd test +udev udisks zeroconf}
     Installed versions:  1.52.2^t(04:32:31 28/06/2024)(elogind fuse policykit udev udisks -afp -archive -bluray -cdda -gnome-online-accounts -google -gphoto2 -http -ios -keyring -mtp -nfs -samba -systemd -test -zeroconf)

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2322
Location: Bretagne

PostPosted: Tue Nov 26, 2024 5:54 am    Post subject: Reply with quote

Code:
[I] gnome-base/gvfs
     Available versions:  1.52.2^t ~1.52.3^t {afp archive bluray cdda elogind fuse gnome-online-accounts google gphoto2 +http ios keyring mtp nfs policykit samba systemd test +udev udisks zeroconf}
     Installed versions:  1.52.2^t(23:23:16 03/05/2024)(cdda elogind gphoto2 http policykit udev udisks -afp -archive -bluray -fuse -gnome-online-accounts -google -ios -keyring -mtp -nfs -samba -systemd -test -zeroconf)


This seems correct too. :cry:
I may have to switch to another DE/WM...

Do you have any successful experience of using another file manager with lxde? May be complicated to set up, though. :roll:
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Tue Nov 26, 2024 1:30 pm    Post subject: Reply with quote

Do you have kernel CONFIG_FUSE_FS activated?
Do you have elogind in rc-service?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Tue Nov 26, 2024 3:13 pm    Post subject: Reply with quote

Code:
eix util-linux
[I] sys-apps/util-linux
     Available versions:  2.39.3-r2^t 2.39.3-r7^t 2.39.4-r1^t ~2.40.1-r3^t 2.40.2^t **9999*l^t {audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid systemd test tty-helpers udev unicode uuidd verify-sig ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" PYTHON_TARGETS="python3_10 python3_11 python3_12"}
     Installed versions:  2.40.2^t(22:37:53 11/11/2024)(logger ncurses pam su suid unicode verify-sig -audit -build -caps -cramfs -cryptsetup -fdformat -hardlink -kill -magic -nls -python -readline -rtas -selinux -slang -static-libs -systemd -test -tty-helpers -udev -uuidd ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python3_11 -python3_10 -python3_12")
the point above could be "pam".
Code:
eix sys-auth/polkit
[I] sys-auth/polkit
     Available versions:  123-r1^t [M]124-r1^t [M]~125^t [M]125-r1^t [M]**9999*l^t [M]**9999-r1*l^t {+daemon +duktape examples gtk +introspection kde pam selinux systemd test}
     Installed versions:  123-r1^t(23:03:00 10/11/2024)(daemon gtk introspection pam -examples -kde -selinux -systemd -test)
     Homepage:            https://www.freedesktop.org/wiki/Software/polkit https://github.com/polkit-org/polkit
     Description:         Policy framework for controlling privileges for system-wide services

I remember having a hard time setting it to no more than what is required...EDIT: Not sure that is where I am now...
And I didn't kept what had 2 be done :oops:.

As of today wiki isn't any help.
I know it is a stub,EDIT BS assertion removed

As far as DE are concerned, have you tried lxdm? It's the one I"ve mostly been using as a daily driver.

KDE doesn't mount here.
GNOME mounts with no prompt.
Openbox behaves same as LXDE, i.e. prompts for mount.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2322
Location: Bretagne

PostPosted: Fri Nov 29, 2024 7:15 pm    Post subject: Reply with quote

CaptainBlood wrote:
Do you have kernel CONFIG_FUSE_FS activated?
Do you have elogind in rc-service?

Got CONFIG_FUSE_FS compiled as module

Good point for elogind, it is in runlevel default but does not seem to properly start:
Code:
trone ~ # rc-status
Runlevel: default
 dbus                                                                                                                             [  started  ]
 netmount                                                                                                                         [  started  ]
 elogind                                                                                                                          [  stopped  ]
 display-manager                                                                                                                  [  started  ]
 chronyd                                                                                                                          [  started  ]
 cronie                                                                                                                           [  started  ]
 numlock                                                                                                                          [  started  ]
 local                                                                                                                            [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 dhcpcd                                                                                                                           [  started  ]
 display-manager-setup                                                                                                            [  started  ]
Dynamic Runlevel: manual


Trying to restart it fails too :/

Code:
trone ~ # rc-service elogind restart
 * Starting elogind ...
 * start-stop-daemon: /lib64/elogind/elogind is already running                                                                          [ !! ]
 * ERROR: elogind failed to start


Didn't even know I needed this.... :oops:
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2322
Location: Bretagne

PostPosted: Fri Nov 29, 2024 7:20 pm    Post subject: Reply with quote

CaptainBlood wrote:
Code:

     Installed versions:  2.40.2^t(22:37:53 11/11/2024)(logger ncurses pam su suid unicode verify-sig -audit -build -caps -cramfs -cryptsetup -fdformat -hardlink -kill -magic -nls -python -readline -rtas -selinux -slang -static-libs -systemd -test -tty-helpers -udev -uuidd ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python3_11 -python3_10 -python3_12")
the point above could be "pam".


I have this pam USE activated for util-linux

CaptainBlood wrote:
Code:
eix sys-auth/polkit
[I] sys-auth/polkit
     Available versions:  123-r1^t [M]124-r1^t [M]~125^t [M]125-r1^t [M]**9999*l^t [M]**9999-r1*l^t {+daemon +duktape examples gtk +introspection kde pam selinux systemd test}
     Installed versions:  123-r1^t(23:03:00 10/11/2024)(daemon gtk introspection pam -examples -kde -selinux -systemd -test)
     Homepage:            https://www.freedesktop.org/wiki/Software/polkit https://github.com/polkit-org/polkit
     Description:         Policy framework for controlling privileges for system-wide services

Got pam in polkit too

Quote:
As of today wiki isn't any help.
I know it is a stub,EDIT BS assertion removed
:lol:

CaptainBlood wrote:
As far as DE are concerned, have you tried lxdm? It's the one I"ve mostly been using as a daily driver.

Yes I'm using lxdm too

Thanks for support CaptainBlood! :)
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3939

PostPosted: Fri Nov 29, 2024 7:27 pm    Post subject: Reply with quote

Not clear to me if it is now working?:roll:

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2322
Location: Bretagne

PostPosted: Fri Nov 29, 2024 7:38 pm    Post subject: Reply with quote

CaptainBlood wrote:
Not clear to me if it is now working?


OOps sorry! No it's not :?
Currently, looking at gentoo's elogind wiki ^^

Edit:
Gentoo wiki wrote:
Warning
If there are problems getting poweroff/reboot/suspend etc. working from desktop environment, putting elogind into boot runlevel will make sure the elogind-daemon is started properly before any user is logged in, and so should fix the problem.


I've added elogind to runlevel boot and rebooted but still can't see it in rc-status output:

Code:
trone ~ # rc-status
Runlevel: default
 dbus                                                                                                                                                 [  started  ]
 netmount                                                                                                                                             [  started  ]
 display-manager                                                                                                                                      [  started  ]
 chronyd                                                                                                                                              [  started  ]
 cronie                                                                                                                                               [  started  ]
 numlock                                                                                                                                              [  started  ]
 local                                                                                                                                                [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 dhcpcd                                                                                                                                               [  started  ]
 display-manager-setup                                                                                                                                [  started  ]
Dynamic Runlevel: manual
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum