Trash / wastebasket behaviour with mount points

Rudi von Staden rudivs at gmail.com
Wed Feb 2 16:42:40 UTC 2005


Hi 

I connect to a number of server shares (Samba), and for each of these
shares, the Trash applet (wastebasket) creates a .Trash-user directory
to hold my deleted files. But then it has big problems deleting the
contents with either right-click > Empty Trash on the wastebasket
applet (no action), or opening the wastebasket and trying File > Empty
Wastebasket > Empty (Error "Directory busy" while deleting
"/mnt/comm...mp (copy)".). If I try to open a terminal to delete the
files, it gives me a similar error:

rudi at ndlovu:~/shares/rudi/.Trash-rudi $ rm -r temp
rm: cannot remove directory `temp': Device or resource busy

Another interesting factor is that it seems to keep a hold on the
mounted filesystems, so that I can't unmount them if there's anything
in the trash directories (they're mounted at startup in fstab). The
only ways I can delete the contents of the wastebasket are by logging
out of gnome and deleting them from a terminal (eg. Ctrl-F3), or by
deleting them from the server directly. I do have permissions on these
files and directories, so I don't know why it's so complicated.

Ideally I'd like to disable the trash functionality for network
mounted filesystems only, but I'd settle for knowing how to disable
the trash applet entirely!

I see someone else had a similar issue, but there were no replies:
http://www.ubuntuforums.org/showthread.php?t=6171&highlight=wastebasket

Thanks,
Rudi




More information about the ubuntu-users mailing list