Thunar USB Auto Browse/Mount not working
I have fresh Slackware64 14.2 install with SLiM. When I log into an account using XFCE and start Thunar I am unable to get the USB drivers to show. I have tried changing to XDM, but still doesn't work. The system sees connection of the USB drive. ConsoleKit lists a session running, which was one of the things I found to check searching around for solutions. Any insights would be appreciated.
|
What does
Code:
df Code:
ls -l /dev/sd* |
Is thunar running in daemon mode?
Try running Code:
$ thunar --daemon & |
Code:
df Code:
ls -l /dev/sd* Code:
thunar --daemon & |
Does it show up in /run/media/<username> ?
|
You have 2 physical drives. If you have only 1 built in, /dev/sdb may be your USB drive (the case on my computer).
If so, df tells us it isn't mounted. Does /etc/fstab have an entry for /dev/sdb1 ? If so, you can just run Code:
mount /[MountPointOfUSBDrive] Code:
mount /usb Code:
mount /dev/sdb1 /usb If you have 2 physical drives built in, the system hasn't detected your USB drive. In that case run Code:
lsusb |
There is no /run/media directory.
I know how to mount the drive, I am after Thunar being able to auto browse/mount it without the need to run the mount command. I did a clean Slackware 14.2 install in a vm and everything worked fine. I also did a fresh install the the problem system and have the same issue. |
Code:
/dev/mapper/slack-var 10190136 77428 9572036 1% /var |
allend
I am not sure what you mean. I have instaslled from the same media with identical configurations. One on bare metal and the other into a virtual machine. The virtual machine works correctly and the bare metal does not. The system detects the usb drive being inserted into the port. For some reason thunar cannot see it. I am setting this system up for another person to use and do not want to manually mount the drive. This works really well on my laptop and the virtual machine. lsusb Code:
Bus 001 Device 003: ID 0781:5571 SanDisk Corp. Cruzer Fit |
Quote:
|
Thunar is XFCEs file manager.
|
There was a thread some times ago with the same topic
https://www.linuxquestions.org/quest...nt-4175623755/ Unfortunatelly, no solution was found it seems. Which is weird because it should work out of the box |
Does it work if you log in to run level 3, run 'xwmconfig' and then run 'startx'?
For the mounting to work, the DBUS_SESSION_BUS_ADDRESS environment variable must be set and dbus must be running. |
I speculate that Thunar looks for mounted drives but not mountable devices (this would be common). Thus you need to configure automount and/or autofs to mount newly-attached devices. I've never used either.
|
DBUS_SESSION_BUS_ADDRESS
Code:
unix:abstract=/tmp/dbus-6N36WK81EL,guid=8ceb0a308cfb2bf7549785d45ad5064c Code:
message+ 1213 0.0 0.0 19868 2352 ? Ss 15:23 0:00 /usr/bin/dbus-daemon --system |
Check also output with
Code:
ps aux | grep [T]hunar Edit: I don't know why ps aux shows dbus using starting session awesome while you use xfce (it should be /usr/bin/startxfce4) |
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 Code:
localad+ 2003 0.0 0.3 312652 12388 ? Sl 19:19 0:00 /usr/libexec/gvfs-udisks2-volume-monitor Code:
message+ 1197 0.0 0.0 20028 2536 ? Ss 18:41 0:00 /usr/bin/dbus-daemon --system |
Does your user belong in appropriate groups (check with "id" output)?
|
For comparison purposes, this is what I see in a terminal when I start the command
Code:
dbus-monitor "interface='org.gtk.vfs.MountTracker'" Code:
signal time=1523966989.535648 sender=org.freedesktop.DBus -> destination=:1.51 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired Code:
dbus-monitor "interface='org.gtk.Private.RemoteVolumeMonitor'" When I grep that output for 'member=', I see Code:
interface=org.freedesktop.DBus; member=NameAcquired |
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 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 |
Could you tell output with
Code:
ps aux | grep gvfs The user should be a member of plugdev group |
Code:
ps aux | grep gvfs Code:
localad+ 1912 0.0 0.1 271592 5828 ? Sl Apr16 0:00 /usr/libexec/gvfsd Code:
users lp wheel floppy audio video cdrom plugdev power netdev scanner Code:
/dev/slack/swap swap swap defaults 0 0 |
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' |
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"> |
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 |
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 Code:
echo $XDG_RUNTIME_DIR Code:
/gvfs Code:
ls $HOME/.gvfs |
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? |
/home/localadmin/.gvfs permission dr-x on both working system and current problem system.
Neither system has /tmp/xdg-runtime-localadmin. |
And /home/localadmin/.gvfs is empty in both systems ?
|
Quote:
From post #17 Code:
00 /usr/bin/dbus-daemon --system Code:
bash-4.4$ ps ax | grep dbus 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. |
I am wondering how far off piste you have gone from a standard install.
If you're not running the shipped kernel version. kernel 4.15 has some fairly serious issues with usb sticks and certain io schedulers. |
My first install had awesome and slim. My second install did not have slim and had xdm and awesome. My third and current install is base run level 3. My virtual machine has xdm and awesome and thunar even works in awesome out of the box. And my wives computer has slim on 14.2 using xfce and thunar works fine.
I don't think it is a software misconfiguration. I don't see how it could be when all I did on third install was add a user. Additionally, on the VM, a user was added, configure xdm and install awesome and thunar works with no check boxes for moutnt/browse in thunar. |
All times are GMT -5. The time now is 08:46 AM. |