Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2001 16:23:11 +0000
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        Andrew Hesford <ajh3@hecubus.bsdonline.org>
Cc:        Ian Dowse <iedowse@maths.tcd.ie>, Sean Kelly <smkelly@zombie.org>, freebsd-stable@FreeBSD.ORG, iedowse@maths.tcd.ie
Subject:   Re: compress bootdisk 
Message-ID:   <200102211623.aa66094@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Wed, 21 Feb 2001 09:54:05 CST." <20010221095405.A42156@cec.wustl.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010221095405.A42156@cec.wustl.edu>, Andrew Hesford writes:

>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?

Yes, sorry, I missed the disklabel step:

	disklabel -Brw /dev/fd0 fd1440
	newfs /dev/fd0
	mount /dev/fd0 /mnt
	cp kernel.kgz /mnt/kernel
	umount /mnt

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:

	newfs -i 100000 /dev/fd0

This gives you another 50k or so of space for the kernel.

Ian

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? <200102211623.aa66094>