Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-25-2008, 06:17 PM
|
#1
|
|
Member
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 12 LXDE
Posts: 555
Rep:
|
root partition is getting big
I have 11Gb allocated for my / partition, 1Gb /swap and another 20Gb for /home.
I have just noticed that my / has grown to about 10Gb currently. Since this system was originally a standard Sarge desktop install (I think about 5Gb in /) and I have only added a few extra packages such as Amarok and Kmymoney, I don't know why / has grown so large. At this rate I am in danger of running out of space.
Any suggestions as to the cause or what I might do about this?
|
|
|
|
03-25-2008, 06:19 PM
|
#2
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
aptitude clean
|
|
|
|
03-25-2008, 06:22 PM
|
#3
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
Also, you can do a df -h to see what directories are eating up all the space. And then use du -h to find specific files.
EDIT: Here's a link to some find command parameters to help you track down large files and directories.
Last edited by pljvaldez; 03-25-2008 at 06:25 PM.
|
|
|
|
03-25-2008, 06:25 PM
|
#4
|
|
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016
Rep:
|
so you mean your partition is actually getting too small.  j/k
check your /var/log directory too, if it's on your / partition. maybe something is out of whack and some big files are building up.
|
|
|
|
03-25-2008, 06:36 PM
|
#5
|
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
a suggestion:
cd /
du -h --max-depth=1
find the biggest dir, cd into it, re-run the du command "!du".
repeat until you find the offensive files/directories, then do something about them.
|
|
|
|
03-25-2008, 06:54 PM
|
#6
|
|
Member
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 12 LXDE
Posts: 555
Original Poster
Rep:
|
@ pljvaldez:
I didn't know about "aptitude clean".
I ran that command and I now have 5.1Gb free space in / just like that.
I'll try the other suggestions as well to grab some more space back.
Many, many thanks guys. 
|
|
|
|
03-25-2008, 06:57 PM
|
#7
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
Quote:
Originally Posted by mikieboy
I didn't know about "aptitude clean".
I ran that command and I now have 5.1Gb free space in / just like that. 
|
Basically, whenever you run an upgrade or dist-upgrade, all the packages that get downloaded are stored on your hard drive until you clean them out. So if you've never run clean, it may have been that all the packages from your Etch update were still on the machine.
|
|
|
|
03-25-2008, 07:32 PM
|
#8
|
|
Member
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 12 LXDE
Posts: 555
Original Poster
Rep:
|
Thanks, that'll almost certainly have been the case then.
I've run "df -h" and "du -h --max-depth=1" as suggested and then run "!du" on /var (427M).
The output is:
Quote:
124M ./lib
33M ./cache
12K ./backups
4.0K ./local
4.0K ./lock
243M ./log
224K ./run
188K ./spool
28M ./tmp
4.0K ./opt
16K ./mail
8.0K ./games
128K ./www
427M .
|
Is there a proper way to clear out ./log? What about ./run and ./spool?
|
|
|
|
03-25-2008, 08:09 PM
|
#9
|
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
Quote:
Originally Posted by mikieboy
Thanks, that'll almost certainly have been the case then.
I've run "df -h" and "du -h --max-depth=1" as suggested and then run "!du" on /var (427M).
The output is:
Is there a proper way to clear out ./log? What about ./run and ./spool?
|
you don't want to mess with run.
spool contains mails, probably also not something to mess with directly.
(besides both together only amount to less than 1 MB).
- in log, you can remove all of the gzipped files.
- you can also echo "" > some_file to clear any large logs, though that's probably not necessary after removing the gz files.
- to properly manage your log files, you should have logrotate working. I've never put much effort into this, so I can't help you with it.
btw, I didn't know about aptitude clean either. good tip!
|
|
|
|
03-25-2008, 11:02 PM
|
#10
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
I use localepurge to help keep the space in check..
No reason to have man pages in 50 languages when you only refer to one... localepurge automagically gets rid of the man pages you don't need.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:20 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|