From owner-freebsd-stable Sun Dec 23 21:22:43 2001 Delivered-To: freebsd-stable@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id 5C8AA37B405 for ; Sun, 23 Dec 2001 21:22:38 -0800 (PST) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id QAA04762; Mon, 24 Dec 2001 16:22:31 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37641) with ESMTP id <01KC93V1QNN4VFM36C@cim.alcatel.com.au>; Mon, 24 Dec 2001 16:21:49 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.6/8.11.6) id fBO5MSP85208; Mon, 24 Dec 2001 16:22:28 +1100 Content-return: prohibited Date: Mon, 24 Dec 2001 16:22:28 +1100 From: Peter Jeremy Subject: Re: IT'S FIXED!! Whew! (was:Make Installworld fills up / ...help!) In-reply-to: <3C24B0B9.2597A8D9@attbi.com>; from rootman22@attbi.com on Sat, Dec 22, 2001 at 09:11:37AM -0700 To: Joe Warner Cc: stable@FreeBSD.ORG Mail-Followup-To: Joe Warner , stable@FreeBSD.ORG Message-id: <20011224162227.A85044@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <3C22915C.F31E2C61@attbi.com> <20011220174037.A1142@Odin.AC.HMC.Edu> <3C2294FE.CB900677@attbi.com> <20011220180038.A3775@Odin.AC.HMC.Edu> <3C24B0B9.2597A8D9@attbi.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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