Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Hard disk space
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Wed Jul 06, 2005 6:00 am    Post subject: [Solved] Hard disk space Reply with quote

Hi. I have a strange question for you. It happens a strange thing. Today I discovered that my gentoo system, installed 3 or 4 months ago, has a total size of 20GB. Is it possible? 1 or 2 months ago it was not so big. It seems that it is growing size more and more. Maybe I thought, there is a temp directory which I have to delete? For instace, does portage have a cache directory? I remember, if I'm not wrong, that apt has a cache directory where it downloads everything and never deletes anything.
I don't think I installed 20GB of software :-).
Thanks for any information. I have 0 bytes of free space :-).


Last edited by Luc484 on Sat Jul 09, 2005 2:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
jfb3
Apprentice
Apprentice


Joined: 01 Feb 2003
Posts: 242

PostPosted: Wed Jul 06, 2005 6:06 am    Post subject: Reply with quote

Do a
Code:
du -hs
in /var and /tmp and see what you get.

Are you using this box as a web server? (Maybe the logs are big?)
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Wed Jul 06, 2005 6:16 am    Post subject: Reply with quote

Thank you for your answer, this is the output I have:

Code:

luca var # du -hs
1.9G

luca tmp # du -hs
5.6G


Is it ok? What does it mean?
I don't have a web server.
Thanks again.
Back to top
View user's profile Send private message
67comet
Apprentice
Apprentice


Joined: 29 Oct 2004
Posts: 262
Location: Ogden, UT

PostPosted: Wed Jul 06, 2005 6:21 am    Post subject: Reply with quote

I'm not on my Gentoo box but I "think" /var/tmp/portage can be emptied, and if you look around the forums you might see if /tmp is okay to empty as well. That'd hand back around 7 gig right there.

I also know that Portage does download the tar files and keep them. I moved my default to my server to save space on my workstation, but that helped me out a lot. Now both my server and my workstation use the same directoty for Portage storage.

Hope that'll help a little ..

Justin
_________________
A Pile of Code (basically dead).
Personal Site (basically useless).
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Wed Jul 06, 2005 6:32 am    Post subject: Reply with quote

/var/tmp/portage is only about 800MB, I don't think that's the problem.
I'm looking for this tar files for portage. Since I update everything maybe that could be the waste of space.
I saw also that the directory /tmp/kde-luca (luca is my username) is about 5.5GB. Is it normal?
Thanks to everyone.
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Wed Jul 06, 2005 6:44 am    Post subject: Reply with quote

Ok. I freed 1.4GB deleting /var/portage/distfiles. But in this interesting thread https://forums.gentoo.org/viewtopic-t-356115-highlight-tmp.html it seems that /tmp too could be emptied. Is it correct? It would be useful 'cause I would free 5.6GB.
Back to top
View user's profile Send private message
johntramp
Guru
Guru


Joined: 03 Feb 2004
Posts: 457
Location: New Zealand

PostPosted: Wed Jul 06, 2005 7:54 am    Post subject: Reply with quote

http://freshmeat.net/projects/filelight/

If you can afford to install this it may be able to help you find the offending directory(s) ;)

Good luck.
Back to top
View user's profile Send private message
JeffBlair
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 175
Location: USA, Lone star state

PostPosted: Wed Jul 06, 2005 1:35 pm    Post subject: Reply with quote

It should be OK to delete all of the files in the /tmp dir. There is a HOWTO to make /tmp a tempfs so it is deleted after every reboot. Also take a look in /usr/portage/distfiles. That is where portage keeps all of the downloaded install files. That is unless you have moved it in make.conf
Back to top
View user's profile Send private message
bonbons
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 250

PostPosted: Wed Jul 06, 2005 2:35 pm    Post subject: Reply with quote

Luc484 wrote:
/var/tmp/portage is only about 800MB, I don't think that's the problem.
I'm looking for this tar files for portage. Since I update everything maybe that could be the waste of space.
I saw also that the directory /tmp/kde-luca (luca is my username) is about 5.5GB. Is it normal?
Thanks to everyone.
It's safe to delete kde*-$USER when you don't have a KDE session running.

Those folders contain KDE temp files like browser cache, temp iso image for K3B, ... (ps also take a look at /var/tmp/kde*-$USER)

Under /usr/src look at how many kernel source-trees you have lying around, one or two most recent ones are sufficient. Unmerge and delete all the others. (unmerge is not sufficient as there are still compiled files left afterwards, and delete before emerge has a major speed advantage)
Back to top
View user's profile Send private message
Golem_RU
n00b
n00b


Joined: 28 Jun 2005
Posts: 9
Location: Moscow

PostPosted: Wed Jul 06, 2005 3:06 pm    Post subject: Reply with quote

/tmp MUST be clean, so you can delete all on it (there Linux save intermediate products of compilation).
and do you see size of /var/log?

About /var/tmp.
I think in /var/tmp/portage Linux save intermediate products of compilation, when you use emerge installation.
In all other directorys in /var/tmp i read, that Linux save data, which is required on system crash.

So, i think you can delete all /tmp, then mount it on tempfs
Code:

tmpfs   /tmp   tmpfs   defaults,nosuid,size=64M,mode=1777   0 0

more you can read there https://forums.gentoo.org/viewtopic-t-268155-highlight-tmpfs.html

and /var/tmp/portage - you can clean too, but i don't do this no one time...
Back to top
View user's profile Send private message
Luc484
Veteran
Veteran


Joined: 26 Mar 2005
Posts: 1035
Location: Italy

PostPosted: Wed Jul 06, 2005 4:13 pm    Post subject: Reply with quote

Golem_RU wrote:
/tmp MUST be clean, so you can delete all on it (there Linux save intermediate products of compilation).
and do you see size of /var/log?

About /var/tmp.
I think in /var/tmp/portage Linux save intermediate products of compilation, when you use emerge installation.
In all other directorys in /var/tmp i read, that Linux save data, which is required on system crash.

So, i think you can delete all /tmp, then mount it on tempfs
Code:

tmpfs   /tmp   tmpfs   defaults,nosuid,size=64M,mode=1777   0 0

more you can read there https://forums.gentoo.org/viewtopic-t-268155-highlight-tmpfs.html

and /var/tmp/portage - you can clean too, but i don't do this no one time...


Ok. Now I have more than 5GB free. I saw that 3GB now are in /var/tmp/portage, so I empty that too. Thanks you all for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum