Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
12-02-2011, 12:36 PM
|
#1
|
LQ Newbie
Registered: Nov 2011
Location: Barcelona
Distribution: Ubuntu 11.10
Posts: 19
Rep:
|
Cannot empty Trash folder
Since I installed Ubuntu 11.10 on a 8GB pendrive, I need free disk space, but I Cannot empty Trash folder!
sudo rm -r /root/.local/share/Trash/files
rm: impossible remove "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A/85658d01": input/output error
rm: impossible remove "/root/.local/share/Trash/files/danieluvi/.cache/dconf/user": is a directory
Last edited by passegua; 12-02-2011 at 02:52 PM.
|
|
|
12-02-2011, 02:34 PM
|
#2
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
Code:
rm -rf /root/.local/share/Trash/*
|
|
|
12-02-2011, 02:51 PM
|
#3
|
LQ Newbie
Registered: Nov 2011
Location: Barcelona
Distribution: Ubuntu 11.10
Posts: 19
Original Poster
Rep:
|
Quote:
Originally Posted by MTK358
Code:
rm -rf /root/.local/share/Trash/*
|
Doesn't work.
The folder is still full.
Code:
~$ sudo rm -rf /root/.local/share/Trash/*
~$ sudo dir /root/.local/share/Trash/
files info
Thanks.
|
|
|
12-02-2011, 02:59 PM
|
#4
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
And it didn't show any error messages?
|
|
|
12-02-2011, 03:07 PM
|
#5
|
LQ Newbie
Registered: Nov 2011
Location: Barcelona
Distribution: Ubuntu 11.10
Posts: 19
Original Poster
Rep:
|
No! Any error message.
That's strange, isn't it?
|
|
|
12-02-2011, 03:09 PM
|
#6
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
I have no idea what's wrong, then. Maybe someone else has an idea of what might be wrong?
|
|
|
12-02-2011, 03:29 PM
|
#7
|
LQ Newbie
Registered: Nov 2011
Location: Barcelona
Distribution: Ubuntu 11.10
Posts: 19
Original Poster
Rep:
|
An italian forum told me this:
Code:
sudo -s
rm -r /root/.local/share/Trash/*
it works for all but still something left:
Code:
~# rm -r /root/.local/share/Trash/*
rm: impossible remove "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A/85658d01": Error input/output
rm: impossible rimove "/root/.local/share/Trash/files/danieluvi/.cache/dconf/user": is a directory
|
|
|
12-02-2011, 03:32 PM
|
#8
|
Member
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Rep:
|
Here's an idea: Delete .trash
Is it possible to just do that, and make a new functioning .trash afterwards?
Sorry if I am making more problems then solving, But that seems like the simplest to me.
|
|
|
12-02-2011, 03:35 PM
|
#9
|
LQ Newbie
Registered: Nov 2011
Location: Barcelona
Distribution: Ubuntu 11.10
Posts: 19
Original Poster
Rep:
|
Quote:
Originally Posted by Hevithan
Here's an idea: Delete .trash
Is it possible to just do that, and make a new functioning .trash afterwards?
Sorry if I am making more problems then solving, But that seems like the simplest to me.
|
I am looking for answers, not for questions :-)
Last edited by passegua; 12-02-2011 at 03:40 PM.
|
|
|
12-02-2011, 05:05 PM
|
#10
|
Senior Member
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591
|
In Debian, I cannot do the same from command line as sudo. The thing is, this is in the /root home directory. From what I remember, you cannot operate as root in Ubuntu, at least not from command line, sudo just gives the user superuser rights. So how does files end up in the root's home directory?
Probably by using software as superuser.
For instance, I have KDE, and kdesudo installed, by issueing command: kdesudo dolphin, the kde file manager appears after entering my user password. When I delete a file from the file manager as my user with superuser rights, the file will be in /root/.local/share/Trash/files. To empty it, I start the file manager dolphin as superuser again and navigate to the /root/.local/share/Trash/files directory, right click on the file and delete it and it disappears along with the corresponding text file in /root/.local/share/Trash/info folder.
Because this is Debian, I can also just su to root and remove them from command line, but I don't think you can do that in Ubuntu. Use nautilus as superuser. gksudo nautilus
Last edited by Brains; 12-02-2011 at 05:08 PM.
Reason: Added command
|
|
|
12-02-2011, 05:19 PM
|
#11
|
Member
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Rep:
|
You can totally use root in ubuntu ... Easiest thing ever (just not recommended for most purposes):
Open a terminal an type: sudo passwd
You will get this in return:
Code:
enter sudo password for user
password:
Enter New Unix Password:
Re-Enter Unix Password:
Password Changed ...
#
After that, Log out then select OTHER... at the login screen
For username put in root. for the password, whatever you chose at Enter New Unix Password:
I'm not 100% but I would guess the trash gets stored under Root because it is a SYSTEM folder, and root is in charge of the system ... Giving it jurisdiction if you will. Of course this is just a guess ... but sounds logical to me
edit: not saying everyone should change the fact they can't be root, you can do what needs to be done with sudo just fine ... Just stating it is possible.
Last edited by Hevithan; 12-02-2011 at 05:22 PM.
|
|
|
12-03-2011, 03:11 AM
|
#12
|
LQ Newbie
Registered: Nov 2011
Location: Barcelona
Distribution: Ubuntu 11.10
Posts: 19
Original Poster
Rep:
|
Quote:
Originally Posted by MTK358
Code:
rm -rf /root/.local/share/Trash/*
|
I am still here trying to delete the whole Trash folder.
In an italian forum I found this "partial" solution, but there are still error messages and undeletable files or directory:
Code:
sudo find /root/.local/share/Trash/files -mindepth 1 -exec rm -ri {} \;
Code:
$ sudo find /root/.local/share/Trash/files -mindepth 1 -exec rm -ri {} \;rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A"? S
rm: impossibile rimuovere "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A/85658d01": Errore di input/output
rm: rimuovere directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A"? S
rm: impossibile rimuovere "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox/irndj1vf.default/Cache/7/9A": Directory non vuota
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.cache"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.cache/dconf"? S
rm: rimuovere directory "/root/.local/share/Trash/files/danieluvi/.cache/dconf/user"? S
rm: impossibile rimuovere "/root/.local/share/Trash/files/danieluvi/.cache/dconf/user": È una directory
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla"? S
rm: entrare nella directory "/root/.local/share/Trash/files/danieluvi/.mozilla/firefox"?
Please HELP deleting ALL Trash content. Thanks.
|
|
|
12-03-2011, 07:57 AM
|
#13
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
Maybe you don't have permission to remove them? Try posting the "ls -l" output on the files that have error messages above.
Also, it would be helpful to know what the error messages actually say (I don't know that language, and I can't use a translator without knowing what it is).
|
|
|
12-03-2011, 12:41 PM
|
#14
|
LQ Newbie
Registered: Nov 2011
Location: Barcelona
Distribution: Ubuntu 11.10
Posts: 19
Original Poster
Rep:
|
Quote:
Originally Posted by MTK358
Maybe you don't have permission to remove them? Try posting the "ls -l" output on the files that have error messages above.
Also, it would be helpful to know what the error messages actually say (I don't know that language, and I can't use a translator without knowing what it is).
|
Translation:
entrare=enter
impossibile=impossible
rimuovere=remove
directory=directory
accedere=access
Here the output of ls -l
non esistente=not existing
Code:
sudo ls -l /root/.local/share/Trash/files/danieluvi/.cache/dconf/user
ls: impossibile accedere a /root/.local/share/Trash/files/danieluvi/.cache/dconf/user/85658d01: Errore di input/output
totale 0
-????????? ? ? ? ? ? 85658d01
sudo dir /root/.local/share/Trash/files/danieluvi/.cache/dconf/user
85658d01
Moreover:
Code:
:~$ sudo find /root/.local/share/Trash/files/danieluvi/.cache/dconf/user -mindepth 1 -exec rm -ri {} \;
rm: impossible remove "/root/.local/share/Trash/files/danieluvi/.cache/dconf/user/85658d01":input/output error
Last edited by passegua; 12-03-2011 at 12:45 PM.
|
|
|
12-03-2011, 02:39 PM
|
#15
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332
Rep:
|
Could the "input/output error" indicate a corruption in filesystem or a bad disk?
|
|
|
All times are GMT -5. The time now is 11:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|