You are not logged in.

#1 2019-03-28 22:17:32

indianahorst
Member
Registered: 2008-08-23
Posts: 129

No Trash on Samba when using Systemd Automount

Hello,

I'm using XFCE and Thunar. I have a NAS with a Samba network share, which is mounted with the following line in /etc/fstab

//<IP address>/data	/media/data	cifs	noauto,nofail,user,rw,username=myusername,password=mypassword,file_mode=0777,dir_mode=0777,iocharset=utf8,_netdev 	0 0

In /etc/samba/smb.conf on the NAS I have the share defined as following:

[data]
path = /media/data
browsable = yes
writable = yes
valid users = myusername

vfs object = recycle
recycle:repository = .Trash-1000
recycle:keeptree = Yes
recycle:touch = Yes
recycle:versions = Yes
recycle:maxsize = 0

This setup works without problems.

Today I configured Systemd Automount as described in https://wiki.archlinux.org/index.php/Fs … filesystem and
https://wiki.archlinux.org/index.php/sa … c_mounting

This is the changed entry in my /etc/fstab:

//<IP address>/data	/media/data	cifs	x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=60,noauto,nofail,user,rw,username=myusername,password=mypassword,file_mode=0777,dir_mode=0777,iocharset=utf8,_netdev 	0 0

As I used this new setup with automount, I stumbled upon a vanished network trash. In Thunar I can click right on a file, click on "Move to Trash" in the menu and then I get the message that the file can only permanently deleted.

Any hints how to fix that and get network trash back?

Last edited by indianahorst (2019-04-17 12:21:36)

Offline

#2 2019-04-17 12:21:11

indianahorst
Member
Registered: 2008-08-23
Posts: 129

Re: No Trash on Samba when using Systemd Automount

bump!

Offline

#3 2019-04-17 14:11:00

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: No Trash on Samba when using Systemd Automount

indianahorst wrote:

bump!

Don't do that.

Offline

Board footer

Powered by FluxBB