From owner-freebsd-hackers Wed May 2 9:16:23 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.coastsight.com (ns1.coastsight.com [208.46.230.17]) by hub.freebsd.org (Postfix) with ESMTP id EE84037B423; Wed, 2 May 2001 09:16:13 -0700 (PDT) (envelope-from maillist@coastsight.com) Received: from ns1.coastsight.com ([208.46.230.17]) by ns1.coastsight.com with esmtp (Exim 2.05 #1) id 14uzIT-0003G4-00; Wed, 2 May 2001 09:16:13 -0700 Date: Wed, 2 May 2001 09:16:13 -0700 (PDT) From: Rick Duvall To: Jordan Hubbard Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Bootable CD IV In-Reply-To: <20010501171919L.jkh@osd.bsdi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So, I guess my next questions is: How do create the 2.88M boot floppy image with the MFS stuff on it? I guess it merges somehow inside the kernel? Am I right? If so, how do i compile my mfs into the kernel, and what do I put in the MFS? Also, what files do I need to put on the boot floppy and what configuration files do I need to edit? If I cannot mount the cd as /, and only the MFS can be /, then can I at lease mount it as /usr? I am assuming I would edit /etc/rc.local on the mfs root. What I am wanting is a bootable cd that will take the user into an automatic restore script, that will ask them to put the last tape in the drive, and do a fdisk, disklabel, and newfs the hard drive, then restore from tape. Basicly, it's a foolproof method for disaster recovery is what i am trying to get at. Thanks. Sincerely, Rick Duvall On Tue, 1 May 2001, Jordan Hubbard wrote: > From: Rick Duvall > Subject: Bootable CD IV > Date: Tue, 1 May 2001 12:03:21 -0700 (PDT) > > > So, let me get this straight: To make a bootable CD, you need to: > > [steps alided] > > That will essentially work, yes, though I've never seen someone use > /usr directly as a scratch directory before. :-) > > > Okay, got that far. But, it will load the kernel, then hang and say that > > it cannot mount root device /dev/fd0. This doesn't make any sense to me > > becuase I specifically told fstab on the cd to use the cdrom as root. Am > > I stupid or something? > > Not stupid, just not thinking this all the way through. The root > mounting code runs well ahead of anything which looks into /etc/fstab; > how indeed could it even find fstab if it didn't know where the root > partition was? You need to change the kernel's mind about where to > find its root partition, something which can be accomplished in a > variety of ways. In the case of the boot floppy, we don't even try; > we just use MFS for the root partition and mount the CD elsewhere. > Of all the options, this is in fact the simplest. > > - Jordan > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message