Date: Wed, 21 Feb 2001 20:56:02 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Ian Dowse <iedowse@maths.tcd.ie> Cc: Andrew Hesford <ajh3@hecubus.bsdonline.org>, Sean Kelly <smkelly@zombie.org>, freebsd-stable@FreeBSD.ORG Subject: Re: compress bootdisk Message-ID: <20010221205602.B66731@mollari.cthul.hu> In-Reply-To: <200102211623.aa66094@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Wed, Feb 21, 2001 at 04:23:11PM %2B0000 References: <20010221095405.A42156@cec.wustl.edu> <200102211623.aa66094@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010221205602.B66731>