From owner-freebsd-questions@FreeBSD.ORG Tue Jul 19 10:34:46 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2966316A41C for ; Tue, 19 Jul 2005 10:34:46 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1ABC43D45 for ; Tue, 19 Jul 2005 10:34:45 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-27-86-22.san.res.rr.com [66.27.86.22]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j6JAYgbb022751 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO); Tue, 19 Jul 2005 03:34:43 -0700 Message-Id: <6.1.0.6.2.20050719032713.10bf1da0@cobalt.antimatter.net> X-Sender: lists@cobalt.antimatter.net X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Tue, 19 Jul 2005 03:31:55 -0700 To: Michael Dexter , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Remove GRUB? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 10:34:46 -0000 At 03:25 AM 7/19/2005, Michael Dexter wrote: >Hello, > >I was experimenting with the GRUB bootloader and would now like to remove >it. Something went wrong and I must now use a bootable CD that gives me an >option to "boot to the first partition" and the system boots fine. > >man bsdlabel gives: > >Installing Bootstraps > If the -B argument is specified, bootstrap code will be read from the > file /boot/boot and written to the disk. > >Assuming that this affects the mbr of the who drive, I tried: > >localhost# bsdlabel -B /dev/ad0 >localhost# bsdlabel: /dev/ad0: no valid label found > >No problem, let's try the root partition: > >bsdlabel -B /dev/da0s1a > >No error, it blinked the hard drive activity light and appears to have >done something but alas, it still reports a GRUB error 21 rather than >given any sign of the FreeBSD loader. > >Any pointers to the rescue/install procedures applicable to this? Did you use fdisk to check and see if the first slice is marked as active? Here's a sample from one of my systems: Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 10474317 (5114 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 651/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 10474380, size 10458315 (5106 Meg), flag 0 beg: cyl 652/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: The data for partition 4 is: note the flag 80 in the first entry. -Glenn >Best regards, > >Michael Dexter >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"