Files deleted via CIFS mount are not shown in recycle bin

Discussion about using NAS on Linux and Unix OS.
Post Reply
rauhfasertapete
New here
Posts: 3
Joined: Fri Jan 22, 2016 8:57 pm

Files deleted via CIFS mount are not shown in recycle bin

Post by rauhfasertapete » Fri Oct 16, 2020 3:01 pm

Hi everybody,

I am using a CIFS mount as follows to access my QNAP NAS.

Code: Select all

mount -t cifs -o rw,credentials=FILE,uid=XXX,gid=YYY //NAS/SHARE MOUNT-FOLDER
Files I delete via this mount are not shown in the recycle bin of the NAS (@Recycle). When I delete files via a Windows client or the NAS' web UI these files show up in the recycle bin properly.

Do you have an idea what my mistake might be?

Thank you, Alex

User avatar
OneCD
Ask me anything
Posts: 8973
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Files deleted via CIFS mount are not shown in recycle bin

Post by OneCD » Fri Oct 16, 2020 3:19 pm

Hi Alex and welcome to the forum. :)

Yes, the behaviour you describe sounds correct.

https://docs.qnap.com/nas/4.3/cat2/en/n ... le_bin.htm
QNAP wrote:This feature only supports file deletion via Samba, AFP, FTP and File Station.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

rauhfasertapete
New here
Posts: 3
Joined: Fri Jan 22, 2016 8:57 pm

Re: Files deleted via CIFS mount are not shown in recycle bin

Post by rauhfasertapete » Fri Oct 16, 2020 3:31 pm

Hi OneCD, thanks for your swift response. I thought Samba and CIFS would be kind of the same, and hoped that using the standard Linux CIFS client[1] would work. (I think that SMBv2/3 is the only protocol I have enabled for file sharing on my QNAP.)

[1] https://wiki.samba.org/index.php/LinuxCIFS

User avatar
OneCD
Ask me anything
Posts: 8973
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Files deleted via CIFS mount are not shown in recycle bin

Post by OneCD » Fri Oct 16, 2020 3:46 pm

Ah, silly me. I never did bother to learn the difference between them. I switched to NFS years ago and haven't used SMB (or CIFS) since. :oops:

Maybe someone else has some experience with this?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

rauhfasertapete
New here
Posts: 3
Joined: Fri Jan 22, 2016 8:57 pm

Re: Files deleted via CIFS mount are not shown in recycle bin

Post by rauhfasertapete » Fri Oct 16, 2020 4:03 pm

Hi OneCD, oh I just realized that the recycle bin on the NAS is actually working, at least when I delete files in the mounted folder via command line. Sorry for bothering you :(

What I am still curious about: before I had tried to delete files in the mounted folder via my Gnome desktop (Nautilus file explorer). In this case the deleted files did not to show up in the recycle bin of the NAS but in my local/Gnome desktop's recycle bin instead. I guess this works as intended/designed.

User avatar
OneCD
Ask me anything
Posts: 8973
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Files deleted via CIFS mount are not shown in recycle bin

Post by OneCD » Sat Oct 17, 2020 12:01 am

rauhfasertapete wrote:
Fri Oct 16, 2020 4:03 pm
What I am still curious about: before I had tried to delete files in the mounted folder via my Gnome desktop (Nautilus file explorer). In this case the deleted files did not to show up in the recycle bin of the NAS but in my local/Gnome desktop's recycle bin instead. I guess this works as intended/designed.
Sounds like the files are being placed into the Gnome recycle bin.

What happens if you bypass the recycle bin and delete the files permanently instead? <shift+delete>

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

Post Reply

Return to “Linux & Unix (NFS)”