LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Thunar USB Auto Browse/Mount not working (https://www.linuxquestions.org/questions/slackware-14/thunar-usb-auto-browse-mount-not-working-4175627714/)

keefaz 04-16-2018 05:56 PM

Check also output with
Code:

ps aux | grep [T]hunar
ps aux | grep [u]disk

You did a full install?

Edit: I don't know why ps aux shows dbus using starting session awesome while you use xfce (it should be /usr/bin/startxfce4)

alanware 04-16-2018 09:53 PM

This was a full install of Slackware64 14.2

The awesome part was because I was logged into awesome when I did it not the XFCE.

ps aux | grep [T]hunar
Code:

localad+  1845  0.0  0.6 458388 27672 tty1    Sl  19:19  0:00 Thunar --daemon
ps aux | grep [u]disk
Code:

localad+  2003  0.0  0.3 312652 12388 ?        Sl  19:19  0:00 /usr/libexec/gvfs-udisks2-volume-monitor
root      2007  0.0  0.2 459588 10500 ?        Sl  19:19  0:00 /usr/lib/udisks2/udisksd --no-debug

Reposting dbus from XFCE
Code:

message+  1197  0.0  0.0  20028  2536 ?        Ss  18:41  0:00 /usr/bin/dbus-daemon --system
localad+  1814  0.0  0.0  33036  3588 tty1    S    19:19  0:00 ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
localad+  1821  0.0  0.0  35484  2336 tty1    S    19:19  0:00 dbus-launch --exit-with-session /usr/bin/startxfce4
localad+  1822  0.0  0.0  20228  2484 ?        Ss  19:19  0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
localad+  1974  0.0  0.0  19736  2476 ?        S    19:19  0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
localad+  2489  0.0  0.0  11672  2220 pts/1    S+  21:52  0:00 grep dbus


keefaz 04-17-2018 05:01 AM

Does your user belong in appropriate groups (check with "id" output)?

allend 04-17-2018 07:28 AM

For comparison purposes, this is what I see in a terminal when I start the command
Code:

dbus-monitor "interface='org.gtk.vfs.MountTracker'"
and then plug a USB stick that is detected by Thunar.
Code:

signal time=1523966989.535648 sender=org.freedesktop.DBus -> destination=:1.51 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
  string ":1.51"
signal time=1523966989.535701 sender=org.freedesktop.DBus -> destination=:1.51 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
  string ":1.51"
method call time=1523966999.461742 sender=:1.53 -> destination=:1.3 serial=18 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMountableInfo
method call time=1523966999.464719 sender=:1.53 -> destination=:1.3 serial=22 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMounts2
  boolean true
...

The output of
Code:

dbus-monitor "interface='org.gtk.Private.RemoteVolumeMonitor'"
could also be informative.
When I grep that output for 'member=', I see
Code:

interface=org.freedesktop.DBus; member=NameAcquired
interface=org.freedesktop.DBus; member=NameLost
interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
interface=org.gtk.Private.RemoteVolumeMonitor; member=List
...
interface=org.gtk.Private.RemoteVolumeMonitor; member=DriveChanged
interface=org.gtk.Private.RemoteVolumeMonitor; member=DriveConnected
interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeAdded
interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeMount
interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeChanged
interface=org.gtk.Private.RemoteVolumeMonitor; member=MountAdded


alanware 04-17-2018 02:59 PM

Code:

dbus-monitor "interface='org.gtk.vfs.MountTracker'"
Code:

signal time=1523994482.197227 sender=org.freedesktop.DBus -> destination=:1.126 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
  string ":1.126"
signal time=1523994482.197345 sender=org.freedesktop.DBus -> destination=:1.126 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
  string ":1.126"
method call time=1523994486.442730 sender=:1.128 -> destination=:1.13 serial=48 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMountableInfo
method call time=1523994486.449092 sender=:1.128 -> destination=:1.13 serial=52 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMounts
method call time=1523994486.598818 sender=:1.130 -> destination=:1.13 serial=48 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMountableInfo
method call time=1523994486.606002 sender=:1.130 -> destination=:1.13 serial=52 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMounts
method call time=1523994487.571071 sender=:1.132 -> destination=:1.13 serial=48 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMountableInfo
method call time=1523994487.574098 sender=:1.132 -> destination=:1.13 serial=52 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMounts
method call time=1523994487.721248 sender=:1.134 -> destination=:1.13 serial=48 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMountableInfo
method call time=1523994487.723767 sender=:1.134 -> destination=:1.13 serial=52 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMounts

GREP 'member='
Code:

dbus-monitor "interface='org.gtk.Private.RemoteVolumeMonitor'"
Code:

signal time=1523994881.165878 sender=org.freedesktop.DBus -> destination=:1.145 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
signal time=1523994881.166362 sender=org.freedesktop.DBus -> destination=:1.145 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
method call time=1523994884.112167 sender=:1.147 -> destination=:1.34 serial=9 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.118867 sender=:1.147 -> destination=:1.34 serial=15 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994884.121802 sender=:1.147 -> destination=:1.35 serial=19 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.124986 sender=:1.147 -> destination=:1.35 serial=25 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994884.126869 sender=:1.147 -> destination=:1.36 serial=29 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.131999 sender=:1.147 -> destination=:1.36 serial=35 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994884.140906 sender=:1.147 -> destination=:1.37 serial=39 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.143471 sender=:1.147 -> destination=:1.37 serial=45 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994884.276602 sender=:1.149 -> destination=:1.34 serial=9 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.279181 sender=:1.149 -> destination=:1.34 serial=15 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994884.285269 sender=:1.149 -> destination=:1.35 serial=19 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.287991 sender=:1.149 -> destination=:1.35 serial=25 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994884.289725 sender=:1.149 -> destination=:1.36 serial=29 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.291715 sender=:1.149 -> destination=:1.36 serial=35 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994884.293366 sender=:1.149 -> destination=:1.37 serial=39 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994884.295196 sender=:1.149 -> destination=:1.37 serial=45 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
signal time=1523994885.200996 sender=:1.34 -> destination=(null destination) serial=224 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=DriveConnected
method call time=1523994885.220888 sender=:1.151 -> destination=:1.34 serial=9 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.229007 sender=:1.151 -> destination=:1.34 serial=15 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994885.231436 sender=:1.151 -> destination=:1.35 serial=19 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.233982 sender=:1.151 -> destination=:1.35 serial=25 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994885.235675 sender=:1.151 -> destination=:1.36 serial=29 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.238435 sender=:1.151 -> destination=:1.36 serial=35 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994885.240119 sender=:1.151 -> destination=:1.37 serial=39 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.242753 sender=:1.151 -> destination=:1.37 serial=45 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994885.373328 sender=:1.153 -> destination=:1.34 serial=9 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.376650 sender=:1.153 -> destination=:1.34 serial=15 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994885.382179 sender=:1.153 -> destination=:1.35 serial=19 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.384211 sender=:1.153 -> destination=:1.35 serial=25 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994885.385816 sender=:1.153 -> destination=:1.36 serial=29 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.388493 sender=:1.153 -> destination=:1.36 serial=35 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List
method call time=1523994885.390058 sender=:1.153 -> destination=:1.37 serial=39 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=IsSupported
method call time=1523994885.392186 sender=:1.153 -> destination=:1.37 serial=45 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=List


keefaz 04-17-2018 05:10 PM

Could you tell output with
Code:

ps aux | grep gvfs
There should not be any reference to /dev/sdb1 in /etc/fstab
The user should be a member of plugdev group

alanware 04-17-2018 07:56 PM

Code:

ps aux | grep gvfs
Code:

localad+  1912  0.0  0.1 271592  5828 ?        Sl  Apr16  0:00 /usr/libexec/gvfsd
localad+  1933  0.0  0.1 439292  7980 ?        Sl  Apr16  0:00 /usr/libexec/gvfsd-fuse /home/localadmin/.gvfs -f -o big_writes
localad+  2003  0.0  0.3 312652 12388 ?        Sl  Apr16  0:00 /usr/libexec/gvfs-udisks2-volume-monitor
localad+  2015  0.0  0.1 270892  4844 ?        Sl  Apr16  0:00 /usr/libexec/gvfs-gphoto2-volume-monitor
localad+  2020  0.0  0.1 258648  4904 ?        Sl  Apr16  0:00 /usr/libexec/gvfs-mtp-volume-monitor
localad+  2025  0.0  0.1 350304  6764 ?        Sl  Apr16  0:00 /usr/libexec/gvfs-afc-volume-monitor
localad+  2034  0.0  0.2 380576  9008 ?        Sl  Apr16  0:00 /usr/libexec/gvfsd-trash --spawner :1.13 /org/gtk/gvfs/exec_spaw/0
localad+  2040  0.0  0.1 180760  4428 ?        Sl  Apr16  0:00 /usr/libexec/gvfsd-metadata
localad+  4644  0.0  0.0  11672  2188 pts/0    S+  19:48  0:00 grep gvfs

Groups
Code:

users lp wheel floppy audio video cdrom plugdev power netdev scanner
fstab
Code:

/dev/slack/swap  swap            swap        defaults        0  0
/dev/slack/root  /                ext4        defaults        1  1
/dev/slack/tmp  /tmp            ext4        defaults        1  2
/dev/slack/usr  /usr            ext4        defaults        1  2
/dev/slack/var  /var            ext4        defaults        1  2
/dev/slack/home  /home            ext4        defaults        1  2
#/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro,comment=x-gvfs-show 0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
tmpfs            /dev/shm        tmpfs      defaults        0  0

This is a completely fresh install of Slackware. I have reinstalled several times and have a full install with no additional additions barring the creating of localadmin user.

allend 04-17-2018 10:48 PM

Your dbus-monitor output suggests a problem with Thunar volume management. From within Thunar, have you done Edit -> Preferences, then selected the Advanced tab and enabled volume management, then clicked on the Configure link and selected "Mount removable media when inserted" on the Storage tab?
I would expect 'grep MiscVolumeManagement ~/.config/Thunar/thunarrc' to show TRUE
and 'grep -A1 automount-media ~/.config/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml' to show value='true'

alanware 04-18-2018 01:50 AM

This install I had not checked those boxes. On the previous ones I had. I did so and nothing changed. On an identical VM installation, those boxes are not checked, but the USB populates just fine.

Also, there is no .config/Thunar/thunarrc.

Code:

grep -A1 automount-media ~/.config/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xm
Code:

<property name="automount-media" type="empty">
    <property name="enabled" type="bool" value="true"/>


keefaz 04-18-2018 09:14 AM

Do you have access to /home/localadmin/.gvfs? Is there any content here?
gvfsd-fuse on my system uses /tmp/xdg-runtime-keefaz/gvfs
Manual for gvfsd-fuse says
Code:

      gvfsd-fuse is normally started by gvfsd(1). In this case, the mount point
      is $XDG_RUNTIME_DIR/gvfs or $HOME/.gvfs.


alanware 04-18-2018 01:15 PM

Code:

ps aux | grep fuse
Code:

localad+  1933  0.0  0.0 439292  3092 ?        Sl  Apr16  0:00 /usr/libexec/gvfsd-fuse /home/localadmin/.gvfs -f -o big_writes
localad+  6390  0.0  0.0  9480  976 pts/0    R+  13:11  0:00 grep fuse

Code:

echo $XDG_RUNTIME_DIR
Code:

/gvfs
There are no files inside $HOME/.gvfs
Code:

ls $HOME/.gvfs

keefaz 04-18-2018 02:47 PM

I think XDG_RUNTIME_DIR was set by /etc/profile.d/kde.sh in my system (this file has executable permission set)

Check /home/localadmin/.gvfs permission in any case (should be drwx------)
Do you have /tmp/xdg-runtime-localadmin directory in your system?

alanware 04-19-2018 01:06 AM

/home/localadmin/.gvfs permission dr-x on both working system and current problem system.
Neither system has /tmp/xdg-runtime-localadmin.

keefaz 04-19-2018 04:56 AM

And /home/localadmin/.gvfs is empty in both systems ?

allend 04-19-2018 08:37 AM

Quote:

Also, there is no .config/Thunar/thunarrc
Err - Sorry! My mistake. I was posting from a machine that has had multiple upgrades and that must be cruft. I was trying to find a technique to share information without resorting to screenshots.
From post #17
Code:

00 /usr/bin/dbus-daemon --system
localad+  1814  0.0  0.0  33036  3588 tty1    S    19:19  0:00 ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
localad+  1821  0.0  0.0  35484  2336 tty1    S    19:19  0:00 dbus-launch --exit-with-session /usr/bin/startxfce4
localad+  1822  0.0  0.0  20228  2484 ?        Ss  19:19  0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
localad+  1974  0.0  0.0  19736  2476 ?        S    19:19  0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork
--print-address 3
localad+  2489  0.0  0.0  11672  2220 pts/1    S+  21:52  0:00 grep dbus

Here
Code:

bash-4.4$ ps ax | grep dbus
 1042 ?        Ss    0:00 /usr/bin/dbus-daemon --system
 1505 tty1    S      0:00 ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
 1515 tty1    S      0:00 dbus-launch --exit-with-session /usr/bin/startxfce4
 1516 ?        Ss    0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
 1545 ?        Ss    0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
 1571 ?        S      0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
 1715 ?        Sl    0:00 /usr/bin/python3 /usr/share/system-config-printer/scp-dbus-service.py
 1852 pts/0    S+    0:00 grep dbus

Note the additional process.
You have installed with lvm using a separate partition for /var, installed awesome and installed SLiM.
I am wondering how far off piste you have gone from a standard install.


All times are GMT -5. The time now is 02:07 PM.