Xfce Forum

Sub domains
 

You are not logged in.

#1 Today 10:51:37

szymon1051
Member
Registered: 2026-01-21
Posts: 9
LinuxFirefox 140.0

Thunar freezes when I configure the router

I have the following entries in fstab

#samba
//192.168.15.150/szymon	/mnt/Zdalne	cifs	noauto,x-systemd.automount,credentials=/home/szymon/.doomv,iocharset=utf8,uid=szymon,nounix,dir_mode=0777,file_mode=0666	0	0

#samba reszta
//192.168.15.151/szymon /mnt/Reszta	cifs	noauto,x-systemd.automount,credentials=/home/szymon/.doomv2,iocharset=utf8,uid=szymon,nounix,dir_mode=0777,file_mode=0666	0	0

Previously, it was without noauto, x-systemd.automount, that is

#samba
//192.168.15.150/szymon	/mnt/Zdalne	cifs	credentials=/home/szymon/.doomv,iocharset=utf8,uid=szymon,nounix,dir_mode=0777,file_mode=0666	0	0

#samba reszta
//192.168.15.151/szymon /mnt/Reszta	cifs	credentials=/home/szymon/.doomv2,iocharset=utf8,uid=szymon,nounix,dir_mode=0777,file_mode=0666	0	0

I’ve added them – I think they’re shortcuts in the side panel in Thunar.
Previously, when I was connected to Wi-Fi and plugged in an RJ45 cable, Thunar would freeze.
Now, after adding `noauto,x-systemd.automount`, it freezes if I first open, say, `/mnt/Zdalne` whilst on Wi-Fi and then plug in the RJ45 cable.

Although now I have /mnt/Zdalne loaded and I plug in the RJ45, and suddenly Thunar works.
For the first time.
Previously, I used the terminal and `cd` to change directories to run the WinBox programme for the router.

I assume it’s Thunar’s fault because everything else works.

On one occasion, it wouldn’t even shut down from graphical mode because it displayed a message about the session, and I had to hold down the physical power button to turn the laptop off.

Offline

#2 Today 11:09:02

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 917
LinuxFirefox 148.0

Re: Thunar freezes when I configure the router

Likely the problem is switching connections, wifi to wired. If you have a network share mounted and you disconnect the share will no longer be accessible. This is likely whats confusing thunar. You can either let thunar handle mounting or unmount the share, switch connections and remount the share.


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#3 Today 11:28:32

szymon1051
Member
Registered: 2026-01-21
Posts: 9
LinuxFirefox 140.0

Re: Thunar freezes when I configure the router

I mean, to add something like that to fstab so that it unmounts itself after a certain amount of time?

x-systemd.mount-timeout=10s,x-systemd.idle-timeout=10m

I suppose I'll have to unmount it manually?

sudo umount /mnt/Zdalne

Can I use Thunar’s network features by going to Network > Browse Network and entering an address like this, for example?

smb://openmediavault.local/

But if I use Thunar to mount network shares, will I also be able to access them in the terminal using commands like `cd`?
Because I think Thunar uses something like gvfs and gvfs-backends to handle network shares.
Does gvfs handle network switching better?
Someone once explained to me on a forum that gvfs is inferior to an entry in fstab because the latter uses mount and offers better performance.

Offline

#4 Today 12:30:43

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 917
LinuxFirefox 148.0

Re: Thunar freezes when I configure the router

I don't know about performance issues but using thunar as you mention should work no problem. The problem is switching networks. You essentially remove access to the share. You might be able to use a udev rule to unmount/mount the share automatically when the network changes but I'm not sure how to do that.


I AM CANADIAN!
Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#5 Today 19:31:01

szymon1051
Member
Registered: 2026-01-21
Posts: 9
LinuxFirefox 140.0

Re: Thunar freezes when I configure the router

When I asked the AI, it said that CIFS is better for large files than GVFS.
I’m just wondering how GVFS works when I tick “remember permanently” – does it try to connect as soon as the NAS is available, or only when I access the network directory?
Secondly, how can I change this option later?
Once I set it to ‘remember until logout’ and changed the password on the NAS using a test account for testing purposes, and I didn’t know how to log out of SMB in Thunar to change the password, so I ended the whole session smile. I had another account connected and wanted to switch to the test account to check if the password worked, or log out of the test account to check the new password.
How can I log out of an account in Thunar (in GVFS), e.g. the admin account which has access to smb://openmediavault.local/admin, so that I can then log in to smb://openmediavault.local/admin as Kowalski to check if he has access?
I have a file with the login and password in fstab, and I think that’s enough unless I change it and use `sudo mount -a`.
A potential problem is that apparently GVFS doesn’t mount to /mnt/Zdalne but only to ~/.gvls/.
I’m wondering if, for example, a text editor will let me choose a directory mounted via GVFS when I click ‘Save As’, because right now it’s showing me the two shortcuts I created in Thunar on the sidebar for ‘Zdalne’ and ‘Reszta’.
Apparently there’s also something called autofs, but I’m not sure how much it differs from CIFS with the parameters `x-systemd.mount-timeout=10s,x-systemd.idle-timeout=10m`.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 534.24 KiB (Peak: 534.87 KiB) ]