On 06/01/13 13:21, Wayne Stallwood wrote:
On 01/01/13 21:55, nev young wrote:
Chris could be right. I had a problem with losing space on the memory card in my camera which I eventually found to be all the old photos filed under .Trash
Nev
Yes this is really annoying behaviour which appears to be the default for some Unity/Gnome installations.
If you delete files from removable media like memory sticks and don't empty the Trash before removing the media then the files remain in .Trash (which is naturally hidden from most default file list views)
I haven't found a way around it other than disabling the Trash (deleted items) globally in the gnome context menu/Del key behaviour. Unfortunate because I'd rather keep it for local files.
I keep meaning to play with inotify or something and have a script trap the umount event and delete .Trash before umounting.
Personally, I always have "show hidden files/folders" setting switched on. Then if I spot a .Trash folder on a USB drive, I can check what's in it and really delete whatever needs deleting, or empty the trash.
Alternatively, if the files have been deleted in a file manager, pressing Shift+delete instead of delete will actually delete them instead of moving them to the trash.
HTH Steve