Ubuntu – Impossible to trash files from a folder which is a symbolic link to a NTFS partition folder

deletegvfsnautilusntfstrash

Since a few days and the upgrade of my Ubuntu from 14.10 to 15.04, I cannot send files to trash anymore from some folders.

When deleting from Nautilus, I now get a popup saying:

“aaa.png” can't be put in the trash. Do you want to delete it immediately?

That worked perfectly for years 🙁

I have a dual boot system Ubuntu/Windows.
Ubuntu is on EXT4 partitions while Windows and data are on NTFS ones.

The NTFS partitions are mounted via gvfs at login:

gvfs-mount -d /dev/sdb9

In my home folder, I have several symbolic links to folders on the NTFS partitions, like this one:

Downloads -> /media/stephane/dmn/User/Downloads/

I tried from terminal in ~/Downloads:

gvfs-trash aaa.png
Error trashing file: Unable to trash file: Invalid cross-device link

But in the original folder /media/stephane/dmn/User/Downloads/, the same command works perfectly !

While I kind of understand the error, that setup has been in place for years and I have been trashing files without looking back and without problems either.

So what happened to gvfs-trash and why isn't it suddenly able to trash such files anymore?

Is there a way to make it work again?

Things I have tried:

  • check the permissions of ~/.local/share/Trash: it's all mine as well as its subfolders
  • check the permissions of .Trash-1000/ on the NTFS partitions: same thing, I have all the right permissions
  • mount NTFS via fstab instead of gvfs-mount: not a thing changed

Best Answer

I have not found any real solution for this but i do have a work around that is slightly less annoying that browsing to the downloads folder on the other partition.. i created a softlink to the Downloads folder in the downloads folder... I know this sounds weird but it does not throw up the error when you go to the 2nd downloads folder and delete something.

So basically this happens: browse to ~/Downloads (which itself is a softlink to the other partition) click on the "Downloads" softlink in that folder (which basically links to itself) now you can delete files without the annoying error. its one extra click but saves browsing the other partition.