Can't move files to trash, only perm. del

Hello, I can’t move files to the trash, but only permanently delete. These files are in a partition mounted at /mnt/home/Docs. Anyway, I can move files from home to the trash. Using 18.04.

:~$ lsblk -o name,fstype,size,label,mountpoint
NAME   FSTYPE     SIZE LABEL    MOUNTPOINT
sda             111,8G          
├─sda1 ext4      12,7G          /
sdb             298,1G          
├─sdb5 ext4     239,3G Docs     /mnt/home/Docs

:~$ cat /etc/fstab
UUID=ee2f4425-cb03-4ffe-a80f-3cfb5ef81775 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
/dev/disk/by-uuid/5decb896-c2c9-4343-9d6a-fa140cd7198e /mnt/home/Docs auto nosuid,nodev,nofail 0 0

How to do to allow files from Docs partition to be allowed to be moved to the trash?

You have to create a hidden trash dir for each of your users on your mount point if there’s none. It needs to be named .Trash-xxx (where xxx is the user id) and belong to the user. Inside, you need to have three subdirs: “expunged”, “files” and “info”.

So, assuming that your username is “philippe” and your user id is 1000 (that’s the id for the first user created during installation of Ubuntu):

sudo mkdir /mnt/home/Docs/.Trash-1000
sudo chown philippe:philippe /mnt/home/Docs/.Trash-1000
mkdir /mnt/home/Docs/.Trash-1000/expunged /mnt/home/Docs/.Trash-1000/files /mnt/home/Docs/.Trash-1000/info

(Note: I’m not sure if you have the permissions to write on the disk, thus the sudo for the first command and the chown; if you have, you can remove sudo in the first command and skip the second command.)

Repeat for every user on your system.

It works fine, thanks !