Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Dec 2001 16:22:28 +1100
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        Joe Warner <rootman22@attbi.com>
Cc:        stable@FreeBSD.ORG
Subject:   Re: IT'S FIXED!! Whew! (was:Make Installworld fills up / ...help!)
Message-ID:  <20011224162227.A85044@gsmx07.alcatel.com.au>
In-Reply-To: <3C24B0B9.2597A8D9@attbi.com>; from rootman22@attbi.com on Sat, Dec 22, 2001 at 09:11:37AM -0700
References:  <Pine.BSF.4.33.0112181526200.86140-100000@resnet.uoregon.edu> <3C22915C.F31E2C61@attbi.com> <20011220174037.A1142@Odin.AC.HMC.Edu> <3C2294FE.CB900677@attbi.com> <20011220180038.A3775@Odin.AC.HMC.Edu> <3C24B0B9.2597A8D9@attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 22, 2001 at 09:11:37AM -0700, Joe Warner wrote:
>My / directory is now at 96% capacity and I need to reduce
>this to a more manageable level.  Does anyone know the
>best way to accomplish this?  I know that I could delete
>etc.old, modules.old and kernel.old but is this safe?

/etc.old is non-standard - nothing in the build/install/mergemaster
toolchain should have created this.  I presume it's a copy of your
/etc before the mergemaster - in which case it's safe to delete once
you're happy that the mergemaster went OK.

/modules.old and /kernel.old are just the old kernel and modules.
Once you're ahppy that your new kernel works, it's safe to delete
them.  (The install process makes backup copies of critical components
- /boot/loader, /modules/, /kernel and /sbin/init.  If the new loader,
modules, kernel or init are broken, you can use the old one to boot
the system so you have some chance of recovering).

[output from du -k /]
>1       A
>0       ttyv0

These are both non-standard.

>9089    dev

This is about 9MB too big.  I suspect you've got a stray file or two
in here.  "find /dev -type f" should only find /dev/MAKEDEV and
/dev/MAKEDEV.local.

>3192    kernel.GENERIC

You don't really need this once you're happy that your customised
kernel works.

>5082    modules

Once you're happy you know what modules you are likely to need, you
can cut this down using MODULES_OVERRIDE="list of modules" in either
/etc/make.conf or your kernel config file (see LINT for details).
Note that you'll need to manually delete the unwanted KLD's from
/modules since an installkernel won't over-write them.

>2726    stand

This is about 1MB larger than /stand on one of my -stable boxes.  It's
possible that my box is wrong, but it might be worthwhile checking
this tree.  It should contain one ~1.7MB executable with ~32 hardlinks
and small etc (~28K) and help (~79K) subdirectories.

Overall, once the "installkernel installs unstripped modules" bug is
fixed, a 50MB root without soft-updates is probably adequate for most
people - that's enough space for two kernels and unstripped modules
and leaves 4-5MB spare.

Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011224162227.A85044>