From owner-freebsd-stable@FreeBSD.ORG Sat Aug 2 06:35:43 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A1931065675 for ; Sat, 2 Aug 2008 06:35:43 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 13CFC8FC1B for ; Sat, 2 Aug 2008 06:35:42 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m726ZXdq063079 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 2 Aug 2008 09:35:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m726ZXd6003203; Sat, 2 Aug 2008 09:35:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m726ZXx2003202; Sat, 2 Aug 2008 09:35:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 2 Aug 2008 09:35:33 +0300 From: Kostik Belousov To: "M. Warner Losh" Message-ID: <20080802063533.GO97161@deviant.kiev.zoral.com.ua> References: <372128.56919.qm@web51502.mail.re2.yahoo.com> <20080802.002039.58462077.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ensexbfp9Ul6anXl" Content-Disposition: inline In-Reply-To: <20080802.002039.58462077.imp@bsdimp.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: fbsd2@yahoo.com, freebsd-stable@freebsd.org Subject: Re: 80 Mb / enough for 7.x? OK to delete /stand/ and /modules/ ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2008 06:35:43 -0000 --ensexbfp9Ul6anXl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 02, 2008 at 12:20:39AM -0600, M. Warner Losh wrote: > In message: <372128.56919.qm@web51502.mail.re2.yahoo.com> > fbsd2 writes: > : Greetings list, > :=20 > : Given recent EOL announcements, I'm trying to upgrade an ancient mac= hine from 5.5 to 7. It has 80 Mb total in the root partition, /home/, /var/= , /usr/, and /tmp/ on other partitions, and NFS mounts /usr/src, /usr/obj, = and /usr/ports from a slightly newer/faster box. I've seen > :=20 > : http://www.freebsd.org/releases/7.0R/relnotes.html and > : http://marc.info/?l=3Dfreebsd-stable&m=3D121278826119286&w=3D2 > :=20 > : which seem to suggest that even with INSTALL_NODEBUG during buildkernel= , 7 might not fit in an 80 Mb /. Must I partition a new disk to give more = space to /, or can I find more space by deleting /stand/, /modules/, and po= ssibly /rescue/ to shoehorn a custom 7.x kernel in the available space? TIA >=20 > Doesn't look like anybody has answered this question... >=20 > 80MB is plenty, even for 7.x. However, you'll have to use nanobsd or > tinybsd to get that small. You'll likely been unable to do a 'make > installworld' to get this size. You'll have to create an image and > push it over to this machine somehow. >=20 > In the 3.x time frame, I had FreeBSD booting with the standard scripts > in 13MB without compression. 4.x, 5.x and 6.x bloated these binaries > to about 18MB (a few more were added). I haven't built a system based > on 7.x with this system due to a change in employment, but expect that > it wouldn't be much larger than 20MB for these same files. Some > careful honing could reduce that a little, but maybe not a lot. > Typical embedded systems that I shipped were on the order of 24MB > without X11 and 32-60MB for those with an X11 server. >=20 > What's this box used for? Actually, on the normal RELENG_7/i386 install (i.e. done by buildworld/installworld), I get Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 257998 50422 186938 21% / /dev/ad0s1e 4129310 143676 3655290 4% /usr Note that you must supply INSTALL_NODEBUG=3Dyes for installkernel, and the numbers shown are for WITHOUT_PROFILE=3Dyes. Amd64 takes ~230Mb for merged / and /usr, this is both due to increased binary sizes and lib32. --ensexbfp9Ul6anXl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiUADQACgkQC3+MBN1Mb4iy3gCfYFpptXtjvAWKmcUW2FUsGkSw wrMAn0xCENPbGyjnr9cUpERlbD2oCstR =JIjY -----END PGP SIGNATURE----- --ensexbfp9Ul6anXl--