View previous topic :: View next topic |
Author |
Message |
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Wed Jul 06, 2005 6:00 am Post subject: [Solved] Hard disk space |
|
|
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 |
|
|
jfb3 Apprentice
Joined: 01 Feb 2003 Posts: 242
|
Posted: Wed Jul 06, 2005 6:06 am Post subject: |
|
|
Do a 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 |
|
|
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Wed Jul 06, 2005 6:16 am Post subject: |
|
|
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 |
|
|
67comet Apprentice
Joined: 29 Oct 2004 Posts: 262 Location: Ogden, UT
|
Posted: Wed Jul 06, 2005 6:21 am Post subject: |
|
|
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 |
|
|
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Wed Jul 06, 2005 6:32 am Post subject: |
|
|
/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 |
|
|
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
|
Back to top |
|
|
johntramp Guru
Joined: 03 Feb 2004 Posts: 457 Location: New Zealand
|
|
Back to top |
|
|
JeffBlair Apprentice
Joined: 23 May 2003 Posts: 175 Location: USA, Lone star state
|
Posted: Wed Jul 06, 2005 1:35 pm Post subject: |
|
|
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 |
|
|
bonbons Apprentice
Joined: 04 Sep 2004 Posts: 250
|
Posted: Wed Jul 06, 2005 2:35 pm Post subject: |
|
|
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 |
|
|
Golem_RU n00b
Joined: 28 Jun 2005 Posts: 9 Location: Moscow
|
Posted: Wed Jul 06, 2005 3:06 pm Post subject: |
|
|
/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 |
|
|
Luc484 Veteran
Joined: 26 Mar 2005 Posts: 1035 Location: Italy
|
Posted: Wed Jul 06, 2005 4:13 pm Post subject: |
|
|
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 |
|
|
|