From owner-freebsd-stable Wed Feb 21 6:41:26 2001 Delivered-To: freebsd-stable@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 7E92337B401 for ; Wed, 21 Feb 2001 06:41:22 -0800 (PST) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 21 Feb 2001 14:41:20 +0000 (GMT) To: Andrew Hesford Cc: Sean Kelly , freebsd-stable@FreeBSD.ORG, iedowse@maths.tcd.ie Subject: Re: compress bootdisk In-Reply-To: Your message of "Wed, 21 Feb 2001 02:05:30 CST." <20010221020530.A41129@cec.wustl.edu> Date: Wed, 21 Feb 2001 14:41:19 +0000 From: Ian Dowse Message-ID: <200102211441.aa46025@salmon.maths.tcd.ie> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010221020530.A41129@cec.wustl.edu>, Andrew Hesford writes: >kzip and kgzip strip the kernel of its symbols, so that it is >ultra-compact for rescue and install disks. More importantly, kgzip produces an ELF kernel image that can be loaded directly by the bootblocks. To boot a kernel compressed with gzip requires loader(8) which takes up 100-200k of disk space. Where space permits, it is preferable to use loader(8) and gzip'd kernels. Loader allows much more control over the boot process, and un-stripped kernels contain symbols that may be needed by some utilities. Just newfs the floppy, copy /boot/loader and kernel.gz to it, and loader will automatically uncompress and boot the kernel. Note that the gzipped kernel must have a '.gz' extension, and to refer to the the kernel from the loader prompt, you must not type the extension i.e. use load my_kernel and not: load my_kernel.gz When trying to squash a large kernel onto a small filesystem (e.g 1.4M floppy), sometimes /boot/loader just takes up too much space. This is when it makes sense to use kgzip. All you need to do after newfs'ing the floppy is to copy the kgzip'd kernel to it. You can give the kernel any name (extension doesn't matter), but the handiest name is 'kernel', since that is what the bootblocks try to load by default. Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message