can't empty recycle bin!

I have hundreds of files in the recycle bin and I can’t get rid of them. When I try to empty the bin nothing happens. If I browse the recycle bin I see hundreds of files are still there. So, I right click one of the files and select “delete permanently”. Then I get the message “Error while deleting. (Show more details gives “Error removing file:Read-only file system”)”. When I check the permissions for the file I see Owner:Read and write, Group:Read-only, Others:Read-only. Attempts to change the permissions result in the error “Sorry, could not change the permissions of “xyz.txt”: Operation not supported by backend”.
If I log in as root could I then empty the recycle bin of a user? If so, how do I find the users recycle bin in the file system?
Is there any way that I can empty my recycle bin as a logged-in user?
The problem has probably been caused by deleting files from a usb drive (however they were files that I put onto the usb drive with the same computer and same log in).

From Menu, System, File Manager start File Manager with administrator modus. From there you should be able to empty the bin.
Another possibility is to connect the USB-drive and mount the partitions, then try again to empty trash.

The recycle bin I want to empry is the one on my Gnome desktop, not on the usb drive.
I tried the file manager as suggested but how do I open it with administrator modus?

Log in as root user.

Or, open terminal, log in as root, enter ‘nautilus’.

Thanks for the advice. I logged in a root and entered “nautilus” which started the file manager in admin mode. Unfortunately I get exactly the same error messages when I try to empty the recycle bin or delete files from it.
A friend who uses the Windows OS (wow that’s really retro!) suggests reformatting the hard disc and then re-installing the OS. She says that is what she does when something goes wrong and it works every time. I hope that OpenSuse is a bit more advanced than that and that I can empty the recycle bin without having to re-install the OS.

A friend who uses the Windows OS (wow that’s really retro!) suggests reformatting the hard disc and then re-installing the OS. She says that is what she does when something goes wrong and it works every time. I hope that OpenSuse is a bit more advanced than that and that I can empty the recycle bin without having to re-install the OS.

That would be drastic and unnecessary action.

Open a console and navigate to ~/.local/share directory with

cd ~/.local/share

Now do

su (to become root user, enter root password when prompted)

There is a directory called ‘Trash’. You can safely delete this directory with

rm -r Trash

No more trash! It will get recreated the next time you right-click on a file and select ‘Move to Wastebin’

> I hope that OpenSuse is a bit more advanced than that and that I
> can empty the recycle bin without having to re-install the OS.

yep, there are a lot of thing that were routine with Redmond products
that are completely unnecessary, and downright WRONG here…

rebooting every time something goes wrong is one…
format and reinstall is another…
downloading and double-clicking a zip to install is a third…

there must be about 500 more…

you will probably shorten your learning curve by reading these:

Linux is Not Windows at http://linux.oneandoneis2.org/LNW.htm

and, SUSE Basic Concepts at http://en.opensuse.org/Concepts

and, welcome to adult software…


duo

This should work but theoretically, you should not have come across the permission problem. I doubt that there is something else to it. You will come to know when you execute the “rm -r Trash” command. Just see if it works OK.

This should work but theoretically, you should not have come across the permission problem. I doubt that there is something else to it. You will come to know when you execute the “rm -r Trash” command. Just see if it works OK.

I have encountered this occasionally. It can happen for example if one was to download and install a tarball package with ‘make install’ command as root. Files with root permissions can end up in user directories. If later removed via ‘rm’ command (as root) all is well. If removed via GUI ‘Move to Wastebin’ operation instead, then things can go wrong.

Yea, OK, that is a possibility.

Unfortunately it didn’t work.>:(
I’ll have to remember, in future to always press the “shift” key when deleting a file from a USB drive (even a file that I put on the USB drive from the same computer).
Meanwhile, back at the ranch, the recycle bin is still filled with unremoveable files.

So I went to make a coffee, and when I came back…
Trash is gone!rotfl!

flanna wrote:

>
> So I went to make a coffee, and when I came back…
> Trash is gone!rotfl!
>
>
I was going to say that Id the same problem with a KDE desktop but while I
was going through the steps outlined in prior post the trash can emptied. It
took a long time for 71 files. I have noticed when I delete something from
my external usb hard drive it takes along time to get to trash, then empty
takes a while, but these are big files, typically old backup of /home.


Russ
openSUSE 11.1 (2.6.27.19-3.2-default x86_64) KDE 4.2 release 106, Intel
DX48BT2 Core 2 Dual E7200. 4 GB DDR III GeForce 8400 GS, 320GB Disc
(2)

Hi All!

I’ve got just one file that I can’t get rid of in my trash. I’ve been following several threads, have root and terminal command, but can’t seem to get rid of it.

I’m running openSuSE 11.1. Help?

Hi
As you user cd (no need to be root) to ~/.local/share/Trash there are
two folders called files and info, just delete the files in these two
directories. ~/ is your home directory :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86_64 Kernel 2.6.27.21-0.1-default
up 11 days 18:19, 1 user, load average: 0.20, 0.17, 0.16
GPU GeForce 8600 GTS Silent - Driver Version: 180.44

malcolmlewis,

I’ve tried a few things in terminal as USR:

jjmacey@linux-n7rn:~> .local/share/Trash
bash: .local/share/Trash: is a directory
jjmacey@linux-n7rn:~> cd /.local/share/Trash
bash: cd: /.local/share/Trash: No such file or directory
jjmacey@linux-n7rn:~> cd /.local/share/Trash
bash: cd: /.local/share/Trash: No such file or directory
jjmacey@linux-n7rn:~>

No joy here.

Hi
You don’t use the leading / if your in your home directory :slight_smile:


cd .local/share/Trash
rm -rf  info/*
rm -rf files/*

or

rm -rf .local/share/Trash/info/*
rm -rf .local/share/Trash/files/*


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86_64 Kernel 2.6.27.21-0.1-default
up 11 days 18:59, 1 user, load average: 0.16, 0.20, 0.13
GPU GeForce 8600 GTS Silent - Driver Version: 180.44

Hi,

Nothing is working and I would think that this should be done in Nautilus, or terminal running in Root.

I’ve yet to see the file that I want to delete / trash in terminal.

Thanks for the reply.