Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old May 23rd, 2007   #1
dbbolton
May the Ubuntu Be With You!
 
dbbolton's Avatar
 
Join Date: Aug 2006
Location: US
Beans: 1,672
Send a message via AIM to dbbolton
TIP: free space wasted by root trash

If you're using GNOME, run this command:
Code:
gksudo nautilus '/root/.Trash/'
you might not see anything, or, if you're like me, you'll see about 2 000 files. you'll probably want to delete them or simply "empty" the trash.

i suppose that anything you delete while running nautilus as root goes there. like an idiot, i had assumed that such things would just go in '~/.Trash'

i've been using ubuntu for about a year now, and just realised this. it may seem like common sense, but if it could happen to me, it could happen to you.

EDIT:

If you're using Xfce, run this:

Code:
gksudo thunar
Then click on "Trash."
__________________
436143 | configs | openbox | scripts

Last edited by dbbolton; December 6th, 2007 at 04:04 PM..
dbbolton is online now   Reply With Quote
Old June 9th, 2007   #2
sehe
5 Cups of Ubuntu
 
Join Date: May 2007
Beans: 25
Re: TIP: free space wasted by root trash

noli me castigare baculo; nec te videtus ero
sehe is offline   Reply With Quote
Old June 10th, 2007   #3
westoncampbell
5 Cups of Ubuntu
 
westoncampbell's Avatar
 
Join Date: May 2007
Beans: 41
Re: TIP: free space wasted by root trash

Wow... I also did not know this. I'm glad that you started this thread.

Fortunately, I only have 28 files there, totaling at about 80 MB.
__________________
There's two ways to do something... The right way, and my way.
westoncampbell is offline   Reply With Quote
Old June 14th, 2007   #4
mhenriday
Way Too Much Ubuntu
 
mhenriday's Avatar
 
Join Date: Dec 2006
Location: Stockholm
Beans: 283
Ubuntu 9.10 Karmic Koala
Send a message via Skype™ to mhenriday
Re: TIP: free space wasted by root trash

When I entered the command and pressed «Enter», the following appeared on my terminal screen
Quote:
mhenriday@mhenriday-desktop:~$ gksudo nautilus '/root/.Trash/'
(nautilus:19211): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
Initializing gnome-mount extension
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.4

ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device

...

ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
mhenriday@mhenriday-desktop:~$ gksudo nautilus '/root/.Trash/''
i e, about thirty lines of what looked to me very much like «trash», while at the same time a small window opened which informed me that 'root/.Trash/' couldn't be found and that I should check the spelling. When, nevertheless, I repeated the command without changing anything, I got the same message, but none of the «trash» seen above appeared on my terminal screen. Am I justified in assuming that I have in fact, all these messages to the contrary, succeeded in emptying the trash ?...

Henri
mhenriday is offline   Reply With Quote
Old June 14th, 2007   #5
dbbolton
May the Ubuntu Be With You!
 
dbbolton's Avatar
 
Join Date: Aug 2006
Location: US
Beans: 1,672
Send a message via AIM to dbbolton
Re: TIP: free space wasted by root trash

Quote:
Originally Posted by mhenriday View Post
When I entered the command and pressed «Enter», the following appeared on my terminal screen

i e, about thirty lines of what looked to me very much like «trash», while at the same time a small window opened which informed me that 'root/.Trash/' couldn't be found and that I should check the spelling. When, nevertheless, I repeated the command without changing anything, I got the same message, but none of the «trash» seen above appeared on my terminal screen. Am I justified in assuming that I have in fact, all these messages to the contrary, succeeded in emptying the trash ?...

Henri
i was able to duplicate this problem. apparently, the directory /root/.Trash/ isn't created until the first time you delete something while using nautilus as root. so, in other words, your "root trash" didn't exist yet. as soon as you delete something as root, it will be created automatically.
__________________
436143 | configs | openbox | scripts
dbbolton is online now   Reply With Quote
Old June 14th, 2007   #6
mhenriday
Way Too Much Ubuntu
 
mhenriday's Avatar
 
Join Date: Dec 2006
Location: Stockholm
Beans: 283
Ubuntu 9.10 Karmic Koala
Send a message via Skype™ to mhenriday
Re: TIP: free space wasted by root trash

Quote:
Originally Posted by dbbolton View Post
i was able to duplicate this problem. apparently, the directory /root/.Trash/ isn't created until the first time you delete something while using nautilus as root. so, in other words, your "root trash" didn't exist yet. as soon as you delete something as root, it will be created automatically.
My impression was that by the very act of entering the command
Code:
gksudo nautilus '/root/.Trash/'
I was, in fact, deleting something as root. Is this a misunderstanding ? In that event, how can I then «delete something while using nautilus as root» ?...

Henri
mhenriday is offline   Reply With Quote
Old June 14th, 2007   #7
dbbolton
May the Ubuntu Be With You!
 
dbbolton's Avatar
 
Join Date: Aug 2006
Location: US
Beans: 1,672
Send a message via AIM to dbbolton
Re: TIP: free space wasted by root trash

Quote:
Originally Posted by mhenriday View Post
My impression was that by the very act of entering the command
Code:
gksudo nautilus '/root/.Trash/'
I was, in fact, deleting something as root. Is this a misunderstanding ? In that event, how can I then «delete something while using nautilus as root» ?...

Henri
that command just launches Nautilus as root, and opens root's trash folder.

as a general rule, you should NOT delete things while root, as you could damage your system. if you don't have the permissions to delete a certain file, and must delete it as root, then you can launch 'gksudo nautilus', browse to the file, and right-click on it and delete it. then, it will be an the /root/.Trash/ folder.

this is tip was intended for people who have deleted things with nautilus as root, then didn't know that the "deleted" files were still on their computer/where they had gone. it was NOT intended to tell people to start using nautilus as root to delete things.
__________________
436143 | configs | openbox | scripts
dbbolton is online now   Reply With Quote
Old June 15th, 2007   #8
mhenriday
Way Too Much Ubuntu
 
mhenriday's Avatar
 
Join Date: Dec 2006
Location: Stockholm
Beans: 283
Ubuntu 9.10 Karmic Koala
Send a message via Skype™ to mhenriday
Re: TIP: free space wasted by root trash

Thanks, dbbolton, for the explanation ! If you don't mind, I'd like to pursue this matter a bit further. The files that appear on my terminal after executing the command are mainly of the following type :
Code:
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
and look very much like trash to me. Can they be safely removed by right-clicking and then deleting them and are there any advantages - saved space, etc - to doing so ?...

Henri
mhenriday is offline   Reply With Quote
Old June 15th, 2007   #9
dbbolton
May the Ubuntu Be With You!
 
dbbolton's Avatar
 
Join Date: Aug 2006
Location: US
Beans: 1,672
Send a message via AIM to dbbolton
Re: TIP: free space wasted by root trash

Quote:
Originally Posted by mhenriday View Post
Thanks, dbbolton, for the explanation ! If you don't mind, I'd like to pursue this matter a bit further. The files that appear on my terminal after executing the command are mainly of the following type :
Code:
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
and look very much like trash to me. Can they be safely removed by right-clicking and then deleting them and are there any advantages - saved space, etc - to doing so ?...

Henri
does nautilus open at all after you type the command?
__________________
436143 | configs | openbox | scripts
dbbolton is online now   Reply With Quote
Old June 15th, 2007   #10
mhenriday
Way Too Much Ubuntu
 
mhenriday's Avatar
 
Join Date: Dec 2006
Location: Stockholm
Beans: 283
Ubuntu 9.10 Karmic Koala
Send a message via Skype™ to mhenriday
Re: TIP: free space wasted by root trash

Quote:
Originally Posted by dbbolton View Post
does nautilus open at all after you type the command?
Three things happen when I type the command into a terminal.
  1. The following appears in the terminal :
    Quote:
    mhenriday@mhenriday-desktop:~$ gksudo nautilus '/root/.Trash/'
    Initializing gnome-mount extension
    Launching a SCIM daemon with Socket FrontEnd...
    Loading simple Config module ...
    Creating backend ...
    Loading socket FrontEnd module ...
    Starting SCIM as daemon ...
    GTK Panel of SCIM 1.4.4

    ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'
    ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
    ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
    ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
    ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
    ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
    ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
    ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0'
    ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
    ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
    ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name
    ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
    ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device
    ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
  2. A window showing files under root appears
  3. A warning to the effect that "/root/.Trash" could not be found appears, and I am admonished to check my orthography.
On the other hand, when I click the nautilus icon on my upper panel, a window showing files under my home folder appears ! Thus I don't really know how to answer your question ; something certainly happens when I execute the command, but not exactly that which happens when I open nautilus by clicking the icon. I must confess that I find myself utterly confused - par for the course !...

Henri
mhenriday is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:52 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry