Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Running out of space
PostPosted: Fri Aug 29, 2008 8:26 am 
Offline

Joined: Fri Aug 29, 2008 8:18 am
Posts: 1
I just did a "df" and found that I'd reached 97% on /. I found a few large media files and the apache logs to delete that brought it down a bit, but are there any other files, such as other logs, that I should look for? I would esp. like it if there was some list somewhere of what to look for on a Debian system to free up space.

_________________
Camden


Top
   
 Post subject:
PostPosted: Fri Aug 29, 2008 10:59 am 
Offline
Junior Member

Joined: Sat Jan 05, 2008 2:40 am
Posts: 43
du -h --max-depth=1 /
will give you a list of the size of each top level directory. Continue the process down one level to find the biggest folders on the system.


Top
   
 Post subject: Partitions?
PostPosted: Fri Aug 29, 2008 11:53 am 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
How is your disk partitioned? My Linode has all sorts of extra packages on it that I've installed over the last few years, and I'm still only using about 5GB total--more than half of which is mail.

From your post, it sounds like you are surprised that the / partition is full, which leads me to think that it may have been created too small. If that's the case, Linode has a nifty little utility to resize ext2/ext3 filesystems. Don't forget to shutdown first if you decide you need to resize though. Resizing mounted filesystems is A Bad Thing (TM)

--James


Top
   
 Post subject:
PostPosted: Fri Aug 29, 2008 6:23 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
"sudo apt-get clean"

By default, apt keeps the .debs you download, in case you want to install them again - and sometimes you do: consider trying several different packages that do "foo". They might have similar library dependencies, and you wouldn't want to re-download all those libraries every time you "apt-get purge foo1; apt-get install foo2". Anyway, 'apt-get clean' deletes all those extra .debs. You can configure aptitude (and possibly apt-get) to do this automatically.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Fri Aug 29, 2008 6:50 pm 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
One of the many reasons why I slice up my drives, you really should have /var/log on it's own slice ;)


Top
   
 Post subject:
PostPosted: Sat Aug 30, 2008 6:16 pm 
Offline
Junior Member

Joined: Fri Jun 02, 2006 10:02 am
Posts: 26
Find top 10 directories using disk space...

du -x --block-size=1024K | sort -nr | head -10


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group