View previous topic :: View next topic |
Author |
Message |
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Thu Jul 24, 2008 6:09 pm Post subject: running of out space |
|
|
I have a 21 gb / for gentoo and I'm currently using 20 gb. I can't figure out what is taking up so much space. I've deleted all the extra kernels, tmp files, logs. I've run emerge --depclean. I'm running out of ideas. Any suggestions? |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Thu Jul 24, 2008 6:18 pm Post subject: |
|
|
this is obvious, but have you looked in
/usr/portage/distfiles? _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Thu Jul 24, 2008 6:21 pm Post subject: |
|
|
That is one of the first things I did. It's empty. |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Thu Jul 24, 2008 6:35 pm Post subject: |
|
|
You can try this disk usage program to see what is taking so much space easily:
Maybe a mysql database is eating your disk. Probably in your /var dir. _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Thu Jul 24, 2008 7:03 pm Post subject: |
|
|
Thanks, that was it. It was an old database I no longer use. |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Thu Jul 24, 2008 7:38 pm Post subject: |
|
|
try du --max-depth=1 -h /
and then u gona know where start to look, linux sources eat a lot of space, mysql "binary logging" eat a lot ... etc _________________ "bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg |
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Fri Jul 25, 2008 5:43 pm Post subject: |
|
|
What is /var/db/package? It looks like a repeat of portage. This is the directory that's taking almost 10 gbs of disk space. |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Fri Jul 25, 2008 6:12 pm Post subject: |
|
|
Cool. I'll give filelight a go.
Just for everyone else, I use ncdu for these things. It quickly tells me how much space each directory is using. _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Fri Jul 25, 2008 7:04 pm Post subject: |
|
|
mystified wrote: | What is /var/db/package? It looks like a repeat of portage. This is the directory that's taking almost 10 gbs of disk space. | Although I have no /var/db/package on my systems, I suspect it might be the new location for the binpkg directory, which is /usr/portage/packages on my boxen. This is the binary packages archive.
If I'm right, you should see a boatload of tarballs in /var/db/package/All that probably account for most of your 10GB. My further guess would be that you have FEATURES="buildpkg" enabled in /etc/make.conf and have unknowingly been building binary packages for every package you install, for quite some time.
If this all checks out, you can safely delete everything under /var/db/package. Binary packages are useful for quick reinstallation (without recompiling), for installing Gentoo on multiple machines with similar architectures and hardware, and not much else. If these cases don't apply to you, turn off the buildpkg feature and clean out the tarballs. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Sat Jul 26, 2008 10:32 am Post subject: |
|
|
I don't have that enabled in /etc/make.conf. How do I turn off the build package feature?
Thanks |
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Sat Jul 26, 2008 3:41 pm Post subject: |
|
|
Well whatever you do don't delete /var/lib/pkg. I had to download a stage3 tarball and copy the contents over. I am now having to compile 571 packages. |
|
Back to top |
|
|
keenblade Veteran
Joined: 03 Oct 2004 Posts: 1087
|
Posted: Sat Jul 26, 2008 4:04 pm Post subject: |
|
|
mystified wrote: | Well whatever you do don't delete /var/lib/pkg. I had to download a stage3 tarball and copy the contents over. I am now having to compile 571 packages. |
Do you mean " /var/db/pkg/" ?
It is 216M here.
I don't have "/var/lib/pkg" _________________ Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1" |
|
Back to top |
|
|
mystified l33t
Joined: 14 Feb 2004 Posts: 771
|
Posted: Sat Jul 26, 2008 4:08 pm Post subject: |
|
|
My mistake. You are correct. |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Sat Jul 26, 2008 4:32 pm Post subject: |
|
|
I assume I can delete everything in /var/tmp/portage? _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
Kaste Guru
Joined: 21 Dec 2005 Posts: 546 Location: /home Sweet /home
|
Posted: Sat Jul 26, 2008 5:09 pm Post subject: |
|
|
yes just go ahead, that is why they are in tmp in the first place. _________________ I'm a membar of Mesnar and me scull contains wakky secrets! |
|
Back to top |
|
|
Karlhungus Tux's lil' helper
Joined: 19 Jun 2005 Posts: 79 Location: Halifax, Nova Scotia
|
Posted: Wed Nov 05, 2008 12:36 am Post subject: lots of disk usage |
|
|
I had a similar problem, turned out it was mysql eating up space with transaction replication data in /var/lib/mysql things of the form mysql-bin.00000x two things removed them, in mysql ran the command RESET MASTER; then in /etc/mysql/my.cnf commented out log-bin and server-id |
|
Back to top |
|
|
|