I have a dual booted laptop with Windows 10 and Ubuntu on it. Most of the time when I try to delete a file I get the following warning:
Unable to find or create trash directory
See this dialog box:
I have tried the following answers for xubuntu located at this question
I have checked and I do own my trash directory
sudo chown -R $USER ~/.local/share/Trash
My user ID is 1000
and I have tried:
$ sudo mkdir -p /.Trash-1000/{expunged,files,info}
$ sudo chown -R $USER /.Trash-1000
And this has not worked either.
This answer seems to be only for NTFS file systems, but I have an ext4 file system.
How can I get a working trash folder?
I have two Ubuntu systems installed in different disks of one machine. I encountered the same problem when deleting files on another disk and I solved it by a method similar to https://askubuntu.com/a/262827/582507
First, confirm that your normal user is ID "1000":
$ id
Then go to the mount point i.e. the root directory of the other disk.
Done.