Ask Your Question

Trash folder on separate partition?

asked 2017-12-04 15:41:36 -0500

fedegst gravatar image

updated 2017-12-05 18:14:54 -0500

Besides my primary partition, I have a second HDD that is mounted at startup as a ntfs partition at mnt/DATA

The issue is that if I delete files from that partition they are not sent into the trash, but they are deleted permanently. I thought that Gnome would have automatically created a trash folder on that partition, but it didn't (the permissions on /mnt/DATA are 777, /mnt has 755).

I also tried manually creating a folder .Trash-$UID in mnt/DATA, but it didn't help. What am I missing?

Edit to answer the comments: by 'deleting' the files I mean selecting them in nautilus and press the 'Delete' key. I would expect this to be equivalent to dragging them to the basket icon.

I expect gnome to be smart and create an appropriate folder because so it does when I plug in a removable drive (with exFat partition). Moreover, I have another system with Ubuntu on it and an extra ntfs partition, and there it works just fine.

One thing I noticed is that the owner of the folder /mnt/DATA is root, and for some reason I couldn't change it to my username. When I used sudo chown on it didn't report any error, but it didn't change the owner either. Is this a relevant clue?

edit retag flag offensive close merge delete


(1/2) First, please clarify what you mean by "delete" files. Are you using the gnome-file manager and dragging and dropping their icon from a graphical folder in the manager to some trash icon in gnome? Are you using "rm" inside of a terminal? Second, if you are using gnome's file manager and dragging the file to the trash icon, why would you expect the trash icon "smartly" refers to two separate filesystem locations, depending on the the original source location (partition) of the file icon you drag into it? If you were to make a folder on your desktop and drag a file from (continued)

lovepump gravatar imagelovepump ( 2017-12-04 21:47:14 -0500 )edit

(2/3) some linux partition into it, and then also drag a file from your ntfs partition into it, would you expect gnome to magically create the same folder (and path structure) on your ntfs partition and put it there instead? Third, at least on windows, the NTFS filesystem has specific (peculiar) behavior when "moving" (as opposed to copying, for example) files between partitions, and it is quite possible that in order to behave correctly and not corrupt an NTFS partition that the linux NTFS filesystem driver is mimicing this behavior exactly as a windows system would. (continued)

lovepump gravatar imagelovepump ( 2017-12-04 21:57:11 -0500 )edit

It just so happens that your destination partition (the one with the gnome trash location) is probably not NTFS like it would be on windows.

lovepump gravatar imagelovepump ( 2017-12-04 22:02:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-01 13:46:50 -0500

fedegst gravatar image

This is not quite an answer, but I write it because it might help. I switched back to Ubuntu, and I had the same issue when I mounted the partition system-wide at startup (the owner of the folder was root and the trash didn't work).

There, I solved the problem by mounting the partition at the start of the session and only as a Per-User mount (following ). The user was then the owner of the folder and the Trash worked just fine. This might solve the issue for Fedora as well, but I am not going to test it.

edit flag offensive delete link more

Question Tools


Asked: 2017-12-04 15:41:36 -0500

Seen: 619 times

Last updated: Dec 05 '17