Re: [opensuse] Re: never empty trash bin
email.listen@googlemail.com wrote:
Hi Jan On Mon, 12. February 2007 14:04:11 jan kalcic wrote:
email.listen@googlemail.com wrote:
On Mon, 12. February 2007 12:24:24 jan kalcic wrote:
Hi People,
My trash bin seems to have something inside but it doesn't. Suddenly I have my icon showing an always full trash bin thus I empty it. Further, when I try to empty it when it's already empty I get a error message saying that an old file I removed days ago doesn't exist.
I couldn't even find where it is located on the filesystem in order to try to fix it through command line.
Strange, isn't it?
Hmm, not really ;-)) Sometimes there are hidden files (starting wit a '.' or ending with a '~') which are not deleted by using a desktop managers 'Empty Trash' command, so for GNOME, KDE and XFCE.
So you have to go to the folder which is the Trash icon (the trash symbol on your desktop / panel is only a placeholder / link to this folder. For Gnome it should be /home/$USER/.Trash (replace $USER by the according username.
Open a Terminal and go to the .Trash directory, /home/$USER/.Trash in GNOME, by typing 'cd .Trash' A 'ls -al' will show you the content of the trash folder. If you se a .directory file this is ok. You may have a closer look to it with 'less .directory'.
If there are other files also have a closer look to them before deleting them. (You always should know what you are deleting because there is no undelete to the rm command!) You may delete them with the 'rm' command. A 'man rm' will show the manual page of rm.
[...]
Using KDE there's no a .Trash folder in the home directory. The file trash.desktop in my ~/Desktop is just a file, not a link.
In KDE the Trash folder is located in /home/$USER/.local/share/Trash (So at least in my KDE 3.5.6 here) There are two subfolders /home/$USER/.local/share/Trash/files and /home/$USER/.local/share/Trash/info If there are any files left they should find them in the files folder. Also have a look to info if there is a file with the same name than in files but with another ending (e.g. if there is a file in the folder trash named foo.txt there should/might also be a file named foo.$somewhat in info)
Here we are. I have no files in "files" whereas I have the file mentioned before into "info". Once removed the trash bin icon show as empty but I still get the error when I empty it.
BTW, why don't you send your answer to the list? It might be interesting for others too.
Sorry, I'm used to reply to the list. I just clicked wrong.
regards, thomas
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 12. February 2007 16:52:25 jan kalcic wrote:
email.listen@googlemail.com wrote:
Hi Jan
On Mon, 12. February 2007 14:04:11 jan kalcic wrote:
email.listen@googlemail.com wrote:
On Mon, 12. February 2007 12:24:24 jan kalcic wrote:
Hi People,
My trash bin seems to have something inside but it doesn't. Suddenly I have my icon showing an always full trash bin thus I empty it. Further, when I try to empty it when it's already empty I get a error message saying that an old file I removed days ago doesn't exist.
I couldn't even find where it is located on the filesystem in order to try to fix it through command line.
Strange, isn't it?
Hmm, not really ;-)) Sometimes there are hidden files (starting wit a '.' or ending with a '~') which are not deleted by using a desktop managers 'Empty Trash' command, so for GNOME, KDE and XFCE.
So you have to go to the folder which is the Trash icon (the trash symbol on your desktop / panel is only a placeholder / link to this folder. For Gnome it should be /home/$USER/.Trash (replace $USER by the according username.
Open a Terminal and go to the .Trash directory, /home/$USER/.Trash in GNOME, by typing 'cd .Trash' A 'ls -al' will show you the content of the trash folder. If you se a .directory file this is ok. You may have a closer look to it with 'less .directory'.
If there are other files also have a closer look to them before deleting them. (You always should know what you are deleting because there is no undelete to the rm command!) You may delete them with the 'rm' command. A 'man rm' will show the manual page of rm.
[...]
Using KDE there's no a .Trash folder in the home directory. The file trash.desktop in my ~/Desktop is just a file, not a link.
In KDE the Trash folder is located in /home/$USER/.local/share/Trash (So at least in my KDE 3.5.6 here) There are two subfolders /home/$USER/.local/share/Trash/files and /home/$USER/.local/share/Trash/info If there are any files left they should find them in the files folder. Also have a look to info if there is a file with the same name than in files but with another ending (e.g. if there is a file in the folder trash named foo.txt there should/might also be a file named foo.$somewhat in info)
Here we are. I have no files in "files" whereas I have the file mentioned before into "info". Once removed the trash bin icon show as empty but I still get the error when I empty it. May be you should follow what Roeland van de Mosselaer mentioned in his posting. May be it is because of deleting files from a removable media. I would think an USB stick/disk.
regards, thomas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
email.listen@googlemail.com wrote:
On Mon, 12. February 2007 16:52:25 jan kalcic wrote:
email.listen@googlemail.com wrote:
Hi Jan
On Mon, 12. February 2007 14:04:11 jan kalcic wrote:
email.listen@googlemail.com wrote:
On Mon, 12. February 2007 12:24:24 jan kalcic wrote:
Hi People,
My trash bin seems to have something inside but it doesn't. Suddenly I have my icon showing an always full trash bin thus I empty it. Further, when I try to empty it when it's already empty I get a error message saying that an old file I removed days ago doesn't exist.
I couldn't even find where it is located on the filesystem in order to try to fix it through command line.
Strange, isn't it?
Hmm, not really ;-)) Sometimes there are hidden files (starting wit a '.' or ending with a '~') which are not deleted by using a desktop managers 'Empty Trash' command, so for GNOME, KDE and XFCE.
So you have to go to the folder which is the Trash icon (the trash symbol on your desktop / panel is only a placeholder / link to this folder. For Gnome it should be /home/$USER/.Trash (replace $USER by the according username.
Open a Terminal and go to the .Trash directory, /home/$USER/.Trash in GNOME, by typing 'cd .Trash' A 'ls -al' will show you the content of the trash folder. If you se a .directory file this is ok. You may have a closer look to it with 'less .directory'.
If there are other files also have a closer look to them before deleting them. (You always should know what you are deleting because there is no undelete to the rm command!) You may delete them with the 'rm' command. A 'man rm' will show the manual page of rm.
[...]
Using KDE there's no a .Trash folder in the home directory. The file trash.desktop in my ~/Desktop is just a file, not a link.
In KDE the Trash folder is located in /home/$USER/.local/share/Trash (So at least in my KDE 3.5.6 here) There are two subfolders /home/$USER/.local/share/Trash/files and /home/$USER/.local/share/Trash/info If there are any files left they should find them in the files folder. Also have a look to info if there is a file with the same name than in files but with another ending (e.g. if there is a file in the folder trash named foo.txt there should/might also be a file named foo.$somewhat in info)
Here we are. I have no files in "files" whereas I have the file mentioned before into "info". Once removed the trash bin icon show as empty but I still get the error when I empty it.
May be you should follow what Roeland van de Mosselaer mentioned in his posting. May be it is because of deleting files from a removable media. I would think an USB stick/disk.
regards, thomas
Unfortunately it is a pdf file I kept on my Desktop. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 12 February 2007 10:15:20 am jan kalcic wrote:
Unfortunately it is a pdf file I kept on my Desktop.
A radical fix is to log out of KDE, go to Ctrl+Alt+F1 console and login as root. Do an init 3 to stop X and KDE. Then cd to /home/username/.local/share/Trash and delete info and files or just delete whatever files are in those 2 sub-directories. Then do an init 5 and log on and see if the Trash is now empty. root may now have those entries in its trash but now you now a way to get rid of it there also. Stan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
S Glasoe wrote:
On Monday 12 February 2007 10:15:20 am jan kalcic wrote:
Unfortunately it is a pdf file I kept on my Desktop.
A radical fix is to log out of KDE, go to Ctrl+Alt+F1 console and login as root. Do an init 3 to stop X and KDE. Then cd to /home/username/.local/share/Trash and delete info and files or just delete whatever files are in those 2 sub-directories. Then do an init 5 and log on and see if the Trash is now empty.
root may now have those entries in its trash but now you now a way to get rid of it there also.
Stan
I was about to do this when I noticed that the trash bin is finally empty and no error is shown when I try to empty it. Removing all files in those directories was sufficient then. Many thanks to all, Jan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
email.listen@googlemail.com
-
jan kalcic
-
S Glasoe