[clue] seeking advice cleaning up root

Collins Richey crichey at gmail.com
Sun Mar 20 07:59:56 MDT 2011


On Sat, Mar 19, 2011 at 6:14 PM, chris fedde <chris at fedde.us> wrote:
> if /var/log is in the / partition then that might be the culprit. Log
> rotation scripts are typically driven by logrotate and the
> /etc/logrotate.conf config.  My favorite command for finding "disk
> hogs" is something like "sudo du -x / | sort -n"
>
> good luck
>
> On Sat, Mar 19, 2011 at 5:58 PM, Mike Bean <mike.bean at rocketmail.com> wrote:
>> ,
>> Bit of an adventure, not really sure what happened, but I broke my laptop
>> somehow by filling root, and removing /var/cache/apt freed up a GB and it's
>> working again.   That said, I would still appreciate advice on how to go
>> about putting my root partition on a diet, preferably so this doesn't happen
>> again.  Given my druthers I'd rather it stay below 8GB

If you have a database (e.g. mysql) on the box, you can move
/var/lib/<mysql, etc.> out of / and replace it with a symlink. /tmp
and /var/tmp are also good candidates for moving.



-- 
Collins Richey
     If you fill your heart with regrets of yesterday and the worries
     of tomorrow, you have no today to be thankful for.


More information about the clue mailing list