LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trash on mounted hdd (https://www.linuxquestions.org/questions/linux-newbie-8/trash-on-mounted-hdd-4175488999/)

edsmith123 12-23-2013 07:15 PM

Trash on mounted hdd
 
I am having issues with my new Mint 16 install. / (including /home) are mounted on an SSD. I have also mounted a HDD at /mnt/data. Both of these are mounted by fstab.

If I delete an file from /home it shows up in Trash (~/.local/share.Trash). But if I delete something off /mnt/data then a local .Trash folder is automatically created but these files don't show up in my local Trash.

/mnt is owned by root but /mnt/data is owned by my user.

How can I get files deleted from my mounted HDD to show up in my local trash?

Thanks.

mpapet 12-23-2013 08:20 PM

This link is a good start. If you create a soft link, i'm not sure how "sticky bit" will work out, but it's worth trying.

https://bbs.archlinux.org/viewtopic.php?pid=1182408

edsmith123 12-23-2013 09:01 PM

Quote:

Originally Posted by mpapet (Post 5086196)
This link is a good start. If you create a soft link, i'm not sure how "sticky bit" will work out, but it's worth trying.

https://bbs.archlinux.org/viewtopic.php?pid=1182408

Thanks for the link but I think the poster is asking the opposite that I am. They have the action that I desire but want to change it.

I want anything deleted on my /mnt/data partition to go into my /home/.local/share/Trash.

For clarification all of my sub-directories under /mnt/data are Bind mounted to directories under /home/user, if this matter at all.

ondoho 12-24-2013 03:08 AM

Quote:

Originally Posted by edsmith123 (Post 5086178)
...but these files don't show up in my local Trash.

do you mean the trash icon in your file manager, or do you mean the actual folder ~/.local/share/trash?
imho those are two different things.
Quote:

Originally Posted by edsmith123 (Post 5086209)
I want anything deleted on my /mnt/data partition to go into my /home/.local/share/Trash.

why?
you are aware that that means physically moving the files to a new location/partition?
to avoid exactly that, a .Trash folder is created for each partition.

edsmith123 12-24-2013 12:00 PM

Sorry, I guess that is not what I meant/want. I thought that the trash icon and ~/.local/share/Trash were the same thing.

I just want anything deleted off /mnt/data to show up in the trash icon in the file manager.

Thanks.

edsmith123 12-24-2013 12:04 PM

I found this discussion in a different thread: http://www.linuxquestions.org/questi...olumes-899188/

Quote:

I just spoke with the good people on the gnome project and they told me that all mounted .Trash files (even on mounted CIFS volumes) should appear when you open your desktop trash (i.e. trash:///)

If it doesn't it may have been mounted to an "internal" directory that does not get checked. I moved my mount point and viola, they all appeared in my desktop trash, with full rt-click functionality.

A reference of those internal directories can be found here:
http://git.gnome.org/browse/glib/tre...xmounts.c#n232
But /mnt is listed as an internal directory so I'm not sure if this helps at all.

ondoho 12-24-2013 02:19 PM

Quote:

Originally Posted by edsmith123 (Post 5086497)
I just want anything deleted off /mnt/data to show up in the trash icon in the file manager.

so? does it?

edsmith123 12-24-2013 02:21 PM

No.

ondoho 12-24-2013 02:36 PM

Quote:

Originally Posted by edsmith123 (Post 5086498)
I found this discussion in a different thread: http://www.linuxquestions.org/questi...olumes-899188/But /mnt is listed as an internal directory so I'm not sure if this helps at all.

is there a logical error in your thinking?
you have the problem that trash from a partition mounted to /mnt/data does snot show up when you click the trash icon?
but the text you quote says that in that exact scenario, mounting to a different dir helps, no?


All times are GMT -5. The time now is 04:24 AM.