LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-19-2014, 12:08 PM   #1
roere
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Avoid .trash Folder on each partition


Hi,
I tried btrfs on my system and therefor installed btrfs on a new logical volume (setting is: ubuntu 14.04, luks device, on top of that a lvm with three logical volumes (third one formated with btrfs). On the btrfs I created two subvolumes.
Works (boots, mounts,...) fine so far. My only problem is, that Linux creates a new .trash Folder on my LV3 / LV with btrfs (normal procedure for any partition). Is it possible to integrate that .trash-Folder in my standard user/.local/Share/Trash-Folder?
Thanks!
 
Old 08-20-2014, 10:54 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Both yes... and no.

Most of the uses of the .trash directory is there to allow the various GUI applications to just do a "mv" of the file to the .trash directory without needing to COPY the file.

Not having looked at how the various file managers implement the trash handling, they could get screwed trying anything else. BUT, if they use the mv command to actually implement the move (or implement the equivalent), then replacing the .trash directory with a symbolic link to the one you want the stuff to show up in would work. You DO need to realize that when mv moves between filesystems it will do a "copy" followed by a delete. And that copy means that the target filesystem must have enough room for the file.

The reason for the muliple .trash directories is that a mv within the filesystem doesn't need to copy. Thus it is quite fast in action. And things can get really sticky when you move a directory to trash...
 
  


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
Cannot empty Trash folder passegua Linux - Newbie 26 12-06-2011 09:01 AM
where should I find the <trash> folder? maiden2 Ubuntu 1 09-24-2008 06:21 AM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 10:15 AM
How to delete the .trash folder on a NTFS partition Elzix Linux - Newbie 1 07-02-2007 11:43 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 07:44 AM


All times are GMT -5. The time now is 07:58 PM.

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