cannot use trashcan

Hi,

after ripping a dvd I removed the large file succesfully with rm command.
since then I get a message “trashcan full, empty manually” when I want to trash a small file.
Can is empty and has a capacity of 500 MB
How to get the can operational again?

So you may need to empty the contents of the tmp folder. You can cause this to happen each time you restart by setting this value:

Open /etc/sysconfig/cron, search for a line saying

CLEAR_TMP_DIRS_AT_BOOTUP="no"

…and edit “no” to “yes”. This could also be done via GUI: YaST → “Editor for /etc/sysconfig”.

Be aware that some abilities to restore removed files and other such things will be gone when the tmp folder is cleared.

Thank You,

Using ‘rm’ with limited knowledge is not something I would recommend. You can enable ‘Delete’ in the context menu of right click, in both kde and gnome, or just use SHIFT+Delete.

Are you sure you only removed the dvd image?

Also
http://forums.opensuse.org/english/information-new-users/unreviewed-how-faq/412640-clear-temp-files-boot.html

@jdcmdaniel: simply emptying /tmp at each boot IMO is not a good suggestion. Even so, better not done by editing the system cron file, if necessary rather through Yast - System - etc/sysconfig editor. Much less chance of unwanted harm being done.

@annevance:
Open Dolphin, set it to show hidden files, then
click .local
click share
click Trash
Select everything in there (folders ‘files’ and ‘info’, a file 'metadata), hit Shift-Del, confirm deletion.
Log out, log in, and Trash will be recreated.

Please let us know if this worked.

Um… emptying /tmp at boot is pretty much the only approach that makes sense. What would you suggest? And where’s the possible risk (or whatever you had in mind)?

Furthermore, using the /etc/sysconfig editor as you described does nothing else than replacing the “no” with a “yes”, where’s the difference and, again, the possible risk? Frankly, your suggestions seem a bit cryptic.

I had to use Yast and set the value to “yes” after reboot, cron shows the value Yes, but I understand that I have to wait 15 minutes for the cronjob to be active.
Also set Dolphin to show hidden files, but what does it tell me? the trashcan still shows empty.

I realize I have to be carefull with the commandline. But that appeared to be the only way to get rid of an 1GB file.

Waiting is over, tmp file now has 4 almost empty folders (total 1KB)

But when I want to trash a 50KB file it still says “The trash has reached its maximum size, cleanup the trash manually”

What to do next ?

I realize I have to be carefull with the commandline. But that appeared to be the only way to get rid of an 1GB file.

You could get rid of it through the file manager (dolphin, konqueror…): right click → delete (you need to enable “Show delete command” in “Configure Dolphin”), or with Shift+Delete after selecting the file.

Also set Dolphin to show hidden files, but what does it tell me? the trashcan still shows empty.

Are you sure that you did what Knurpht says? You have to go to ~/.local/share/Trash and delete everything there. Then log out and log in again.

Another question to you and other people that posted in this thread: Does rm have something to do with Trash? I thought that using rm is like deleting and not like moving to trash.

@Knurpht

Where should I find .local ? after showing hidden files in Dolphin.

Yes absolutely. The help given here is actually pretty offtopic.

Let’s summarize: the Trash is empty (as it should be after using ‘rm’ on it), yet KDE reports it being full. That’s the problem, not some /tmp-setting (although emptying it at boot is recommended unless you want a overflowing /-partition).

/tmp != ~/.local/share/Trash.

Edit:

Hm, you can not find it? Please post the output of

ls -l ~/.local/
## as user!

In you home folder: /home/annevance/.local (or something like that)

Right !!

Now I did the shift Delete and after restart I can use the Trashcan again.

Thanks for the help, solution and merry Xmas.

OK. Thanks. I was a bit surprised with what I read, because I have used rm for years without any problem nor any noticeable relation to trash.
Merry christmas.

Glad to know. Merry Christmas to you too.

rm has no relation to trash. But it is a powerful command that if you do not understand it can remove everything if you are not careful.