LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2013, 08:15 PM   #1
edsmith123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Rep: Reputation: Disabled
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.
 
Old 12-23-2013, 09:20 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 525

Rep: Reputation: 60
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
 
Old 12-23-2013, 10:01 PM   #3
edsmith123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mpapet View Post
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.
 
Old 12-24-2013, 04:08 AM   #4
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,162

Rep: Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822
Quote:
Originally Posted by edsmith123 View Post
...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 View Post
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.

Last edited by ondoho; 12-24-2013 at 04:11 AM.
 
Old 12-24-2013, 01:00 PM   #5
edsmith123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-24-2013, 01:04 PM   #6
edsmith123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-24-2013, 03:19 PM   #7
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,162

Rep: Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822
Quote:
Originally Posted by edsmith123 View Post
I just want anything deleted off /mnt/data to show up in the trash icon in the file manager.
so? does it?
 
Old 12-24-2013, 03:21 PM   #8
edsmith123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
No.
 
Old 12-24-2013, 03:36 PM   #9
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,162

Rep: Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822Reputation: 822
Quote:
Originally Posted by edsmith123 View Post
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do empty/view trash files on mounted volumes wjtaylor Linux - Desktop 12 08-26-2011 02:22 PM
[SOLVED] How to keep HDD mounted thru restart? bettyhills Linux - Newbie 5 02-03-2010 05:37 PM
How do I change the permission of a mounted HDD? Hardcor3 Linux - Newbie 3 03-25-2009 12:57 AM
mounted HDD on hoary fireedo Ubuntu 1 06-06-2005 12:36 PM
problem accessing mounted hdd linuxmandrake Linux - Newbie 1 11-20-2004 05:37 PM


All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration