From owner-freebsd-current Wed Mar 8 06:13:49 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA29935 for current-outgoing; Wed, 8 Mar 1995 06:13:49 -0800 Received: from irbs.com ([199.182.75.129]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id GAA29927 for ; Wed, 8 Mar 1995 06:13:45 -0800 Received: (from jc@localhost) by irbs.com (8.6.10/8.6.6) id JAA15383 for freebsd-current@freefall.cdrom.com; Wed, 8 Mar 1995 09:13:15 -0500 From: John Capo Message-Id: <199503081413.JAA15383@irbs.com> Subject: Re: Repair floppies - what should we have? To: freebsd-current@freefall.cdrom.com (freebsd-current) Date: Wed, 8 Mar 1995 09:13:14 -0500 (EST) In-Reply-To: <199503080610.GAA15627@netfl15a.devetir.qld.gov.au> from "Stephen Hocking" at Mar 8, 95 04:10:20 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1692 Sender: current-owner@FreeBSD.org Precedence: bulk Stephen Hocking writes: > > Recently a crash in the middle of a make world trashed my libc.so, and this > caused me to think long and hard about the issue of repair floppies. What I > came up with was this - > > 1) A boot floppy with only a kernel and enough support to tell you to > stick another floppy (the repair root fs) in the drive. This floppy > should have your last OK kernel on it (particularly if you have some > sort of weird hardware config that is not supported by the installation > floppy). > > 2) The tools floppy. A root filesystem with the usual stuff, linked > *statically* - /bin/sh, mount, fsck, disklabel, fdisk, tar, ed, cat, > cp, mv, ln, ifconfig (any other candidates?). The system would come > up on this and toss you into a shell. > > 3) The libraries floppy - a tarred floppy with all the important dynamic > libraries on it. > > Anybody else got ideas? And, how do I persuade something to boot a kernel off > one floppy and prompt me to insert a root fs? > As soon as the kernel is booted, stick the root floppy in the drive. If you have 8Megs or less you have to be quick. The bootcode used to prompt for a root floppy but it was removed when it became possible to fit enough stuff on one floppy to do an install. I use the crunchgen utility to build repair/install floppies. A good place to start is with fixit.conf in crunch/examples. Add or delete as necesary to meet your needs. I have a script that builds a tree with all the proper links if you are interested. > Stephen > > I do not speak for the Worker's Compensation Board of Queensland - > They don't pay me enough for that! > -- John Capo