Trash folder on separate partition?

asked 2017-12-04 21:41:36 +0000

updated 2017-12-06 00:14:54 +0000

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

Comments

(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 ( 2017-12-05 03:47:14 +0000 )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 ( 2017-12-05 03:57:11 +0000 )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 ( 2017-12-05 04:02:11 +0000 )edit