From owner-freebsd-stable Wed Feb 21 20:56: 6 2001 Delivered-To: freebsd-stable@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-165-226-53.dsl.lsan03.pacbell.net [64.165.226.53]) by hub.freebsd.org (Postfix) with ESMTP id CDAF437B503 for ; Wed, 21 Feb 2001 20:56:02 -0800 (PST) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 8FE1466F2F; Wed, 21 Feb 2001 20:56:02 -0800 (PST) Date: Wed, 21 Feb 2001 20:56:02 -0800 From: Kris Kennaway To: Ian Dowse Cc: Andrew Hesford , Sean Kelly , freebsd-stable@FreeBSD.ORG Subject: Re: compress bootdisk Message-ID: <20010221205602.B66731@mollari.cthul.hu> References: <20010221095405.A42156@cec.wustl.edu> <200102211623.aa66094@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="xXmbgvnjoT4axfJE" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200102211623.aa66094@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Wed, Feb 21, 2001 at 04:23:11PM +0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --xXmbgvnjoT4axfJE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 21, 2001 at 04:23:11PM +0000, Ian Dowse wrote: > In message <20010221095405.A42156@cec.wustl.edu>, Andrew Hesford writes: >=20 > >kgzip sounds promising, though. What do I need to do, just `disklabel > >-Brw` the diskette, newfs it, and dump a kernel.gz in the root > >directory? >=20 > Yes, sorry, I missed the disklabel step: >=20 > disklabel -Brw /dev/fd0 fd1440 > newfs /dev/fd0 > mount /dev/fd0 /mnt > cp kernel.kgz /mnt/kernel > umount /mnt >=20 > It is also possible to increase slightly the amount of space available > by reducing the number of inodes. Newfs defaults to allocating one > inode for every 2k of disk space on the floppy, but this can be changed > with the -i option. For a boot floppy containing just a few files, > one inode per 100k of data would be more than enough: >=20 > newfs -i 100000 /dev/fd0 >=20 > This gives you another 50k or so of space for the kernel. Beware that things like top, ps, and friends break when you don't load the kernel through the loader -- see the entry in the FAQ about 'nlist failed' or similar. I believe this is still true for uncompressed kernels, so I assume the same holds for kgzipped kernels. Kris --xXmbgvnjoT4axfJE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6lJvhWry0BWjoQKURApqAAKCo3OUdsk/hkYOj4NO8f92atvCloQCeIwjy 3M0jeQ0xhXp3dHe0g+/C4sk= =iR7X -----END PGP SIGNATURE----- --xXmbgvnjoT4axfJE-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message