-1

I have a separate drive mounted at /srv. If I create a /srv/.Trash folder files on that drive are successfully moved to a /srv/.Trash/1000 upon move to trash. If I don't have a /srv/.Trash folder I can create a /srv/.Trash-1000 folder which also works as expected. Since the system wants to store trash on the same partition from whence it came how can I create multiple trashcans so that I can empty the trash from a drive that's not root or home mounted? Any ideas? I've seen several related questions like this and this but I can't find anything that addresses this use case. I do not want the files moved to a different drive just to put them in the trash can, I'd just like to be able to easily manage the trash on this separate drive.

Edit: I tried Possible to have 2 unity launchers? which appeared to raise the possibility of using Avant Window Navigator to accomplish a second trash can, possibly configurable via a gconf key as mentioned in post 5 here. Unfortunately Although it seems AWN is back in development, it appears that there isn't anything available for my current 14.04 installation.

Zanna
  • 70,465
Elder Geek
  • 36,023
  • 25
  • 98
  • 183
  • You could create a symlink to the trash folders in your desktop: ln -s /path/to/external/drive/trashcan $HOME/Desktop. – Eduardo Cola Jan 30 '16 at 17:30
  • @EduardoCola True, but I don't see how this would be an improvement over a shortcut in Nautilus. I'm leaning toward the CLI solution but have to complete further testing. – Elder Geek Jan 30 '16 at 18:01

2 Answers2

1

It appears that the root cause of this problem was mounting to a system_internal mount path which resulted in Trash folders that didn't have the sticky bit set. A Simple solution is to issue the command chmod -t /mount/point/.TrashFolder adjusting your path and folder name to match your circumstances.

Source: https://unix.stackexchange.com/a/516031/67643

Elder Geek
  • 36,023
  • 25
  • 98
  • 183
1

Workaround - Create a shortcut in Nautilus to the Trash folder in the drive desired in a new tab as seen below and manually deleting the folders files and info. I sincerely hope that someone can come up with a better solution while although this is a functional solution it is less than ideal. Trash

A better alternative is to use the trash-cli package such as described here which can be installed with sudo apt-get install trash-cli and empties all of a users trash with the command trash-empty

This could be dressed up with bells and whistles as described in this answer

Elder Geek
  • 36,023
  • 25
  • 98
  • 183