Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Strife

Weird running out of space problems

This topic is 5158 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Recently, I was getting some weird errors about running out of space on my 18 GB / partition (everything but things in /mnt (obviously) and /home is on this / partition). This is really weird as I''ve never had problems like that even when I originally ran linux on a 2 GB partition years ago. I have run df -h and it says indeed that I only have 578 MB available. But I still don''t believe it. I have also run du -h to try to pinpoint what''s taking up so much space, but I can''t locate it as of yet. All I can think of is maybe I had some filesystem error and should possibly check/repair it? Anyone else had these problems or know what to do? And FYI, I''m running Gentoo with Gentoo''s modified 2.6.3 kernel.

Share this post


Link to post
Share on other sites
Advertisement
du -S | sort -gr | less

*trys this himself*

366708 ./var/cache/apt/archives

hmm... note to self, clear the archives...

Share this post


Link to post
Share on other sites
add this line to your ~/.bashrc file:

alias ducks='du -cks * |sort -rn |head -20'


typing 'ducks' will give you the top 20 biggest files under the current directory (running in / will take a little while)



[edited by - grazer on May 17, 2004 6:24:13 PM]

Share this post


Link to post
Share on other sites
I''m not a Gentoo user, but don''t they probably keep all the downloads and interm. files in a directory somewhere from all your compiles? Might want to see where they do that and check the directory size.

You might also have something spamming your log files. Take a look in /var/log, might be something going on.

Int.

Share this post


Link to post
Share on other sites
quote:
Original post by grazer
add this line to your ~/.bashrc file:

alias ducks=''du -cks * |sort -rn |head -20''


typing ''ducks'' will give you the top 20 biggest files under the current directory (running in / will take a little while)



[edited by - grazer on May 17, 2004 6:24:13 PM]


Run that command under root (without the "head -20"), and redirect to a file:
du -sk | sort -nr > ~/all_dirs.txt
Then vi the ~/all_dirs.txt
And go through the list, looking for directories which take up more space than you expect.

The number on the left is the size in KB of the contents of the directory and all subdirectories underneath it.


http://www.anywherenotes.com - never lose another note again.

Share this post


Link to post
Share on other sites
Gentoo keeps the downloaded source files in /usr/portage/distfiles and the untarred source in /var/tmp/portage. Normally the untarred source is removed after an emerge, but if the emerge fails or is cancelled, the source remains. This can pile up fast. (OpenOffice takes ~3.5.GB of space to compile).

/var is a good place to start for cleaning up files, as well as /tmp.

Share this post


Link to post
Share on other sites
If you did a quick clean up of the likely culprits and still are short on space, you need to do one of the hints given here already to isolate your largest directory(ies). Then investigate that as well.

You can also use the find command with the +|- size option to find specific files as well.

Int.

Share this post


Link to post
Share on other sites
quote:
Original post by Strife
Files in /var have been cleaned up though. And I *still* have these problems.

I offered a simple solution. Look for big space wster after running the command I gave you.

Share this post


Link to post
Share on other sites
I did, and absolutely nothing happened.

I have, of course, already tried du -h and written the output to a file and browsed it, but without being able to sort it, it''s really damn hard to read (I did grep for all the parts that were in the gigabytes, but none of those things were anything that shouldn''t have been that big (only a couple things, and all externally-mounted hard drives).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!