[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to install a new kernel when your / partition is neary full?

On Thu, Mar 21, 2002 at 07:45:19PM +0800, LUK ShunTim wrote:
> The whole thing adds up to ~35 M. However, df -h gives 93 M for the / 
> partition space and 83 M as used. Probably lots of small files each eating 
> up 1K (the min. file size in ext2, IIRC)

Did you try "du -hsx /"?

> A 100 M / partition is not large enough for present day kernels (if you'd 
> like to keep the old one while installing a new one) may be the appropriate 
> conclusion?

Let me see (I have many old kernel binaries in /boot and /lib and / does
not include /usr /var /home /tmp)

root@goofy:/# df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             1.9G  155M  1.6G   9% /
root@goofy:/# du -hsx /
123M    /

It is true that "du" underestimates file usage and / may better have
~200MB or more.  Even after removing all old kernels and initrd images,

root@goofy:root# df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             1.9G   79M  1.7G   5% /
root@goofy:root# du -hsx /
46M     /

System requires almost 80MB on harddisk.  Size of modules in "du"
already exceeds 20MB, so one has no chance having 2 of 2.4 kernels on a
machine with 100MB root partition :)  Looking at this, 150MB-250MB seems
the good root partition size these days.

~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
 Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D
 See "Debian reference": http://www.debian.org/doc/manuals/quick-reference/
 Project at: http://qref.sf.net
 I welcome your constructive criticisms and corrections.

To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: