From owner-freebsd-stable Sat Oct 20 17: 4:51 2001 Delivered-To: freebsd-stable@freebsd.org Received: from smtp.noos.fr (camus.noos.net [212.198.2.70]) by hub.freebsd.org (Postfix) with ESMTP id 12B5337B401 for ; Sat, 20 Oct 2001 17:04:46 -0700 (PDT) Received: (qmail 83450493 invoked by uid 0); 21 Oct 2001 00:04:43 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.231.37]) (envelope-sender ) by 212.198.2.70 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 21 Oct 2001 00:04:43 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id f9L04b696901; Sun, 21 Oct 2001 02:04:37 +0200 (CEST) (envelope-from root) Message-Id: <200110210004.f9L04b696901@gits.dyndns.org> Subject: Re: Recovering from clobbered boot manager? In-Reply-To: <20011020141340.X428-100000@coredump.scriptkiddie.org> To: Lamont Granquist Date: Sun, 21 Oct 2001 02:04:36 +0200 (CEST) Cc: Darryl Okahata , freebsd-stable@FreeBSD.ORG Reply-To: clefevre@citeweb.net From: Cyrille Lefevre Organization: ACME X-Face: X-Mailer: ELM [version 2.4ME+ PL94c (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lamont Granquist wrote: > > > > On Sat, 20 Oct 2001, Cyrille Lefevre wrote: > > > >> FreeBSD/i386 BOOT > > > Default: 0:fd(0,a)/boot/loader > > > boot: > > > > > > you just have to enter : > > > > > > 0:ad(0,a)/boot/loader > > > > > > if that don't work, let's try : > > > > > > 0:ad(0,a)/kernel > > > > > > which should work in any case. > > I tried a lot of guesses and looked for documentation but haven't been > able to figure out the right magic incantation to boot my 4.4-RELEASE > system like this after interrupting the boot. My / is on da0s2a. how many IDE drives have you ? SCSI drives ? considering you only have 1 IDE and 1 SCSI, the magic incantation should be : 1:da(0,a)/boot/loader if you have 2 IDE and 1 SCSI, it should be : 2:da(0,a)/boot/loader etc. also, I've put a home made grub floppy disk here: http://clefevre.citeweb.net/freebsd/grub.flp to use it, boot it, break the autoboot process (don't remember how to do that, but this should be indicated somewhere :), then at the grub prompt, enter : grub> root (hd0,0,a) ^ ^ ^ this represent the BSD slice. | |- this represent the MSDOS partition. |- from here, you can use the key to list the available disks, then partitions, etc. grub> kernel /boot/loader grub> boot for example, I've 4 IDE drives (numbered from 0 to 3) and 4 SCSI drives (numbered from 4 to 7). the bootable one is the first SCSI drive seen by grub, so, I use : root (hd4,0,a) I also have 2 boot partitions on the first IDE drive names (hd0,2,a) and (hd0,3,a). I also put the grub info manual in html format here : http://clefevre.citeweb.net/freebsd/grub.html PS : the /kernel and the /boot/loader located on the floppy are -stable. I've tried to put a -release GENERIC kernel, but it is too big to fit w/ grub... an alternative would be to use the /boot/loader located on the floppy, grub> root (fd0,a) grub> kernel /boot/loader grub> boot and to play w/ lsdev to find the right drive to find the right values to the following variables as needed. currdev="disk5s1a" root_disk_unit="0" rootdev="disk5s1a" (disk5s1a are mine parameters, they probably won't work in your case). as you see, there is plenty of solutions to boot of FreeBSD w/o a right MBR ;^) Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message