From owner-freebsd-current@FreeBSD.ORG Wed Apr 28 10:02:20 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43E4516A4CF for ; Wed, 28 Apr 2004 10:02:20 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CCEB43D2F for ; Wed, 28 Apr 2004 10:02:20 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 1751A72DF1; Wed, 28 Apr 2004 10:02:20 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 14DE372DF0; Wed, 28 Apr 2004 10:02:20 -0700 (PDT) Date: Wed, 28 Apr 2004 10:02:20 -0700 (PDT) From: Doug White To: Fritz Heinrichmeyer In-Reply-To: <200404272034.48802.fritz.heinrichmeyer@fernuni-hagen.de> Message-ID: <20040428095559.I45587@carver.gumbysoft.com> References: <200404261134.35476.fritz.heinrichmeyer@fernuni-hagen.de> <200404272034.48802.fritz.heinrichmeyer@fernuni-hagen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: boot0cfg bsdlabel under current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 17:02:20 -0000 On Tue, 27 Apr 2004, Fritz Heinrichmeyer wrote: > > Man pages :) I think there is a handbook section on boot0cfg too, > > although I'd have to check. > > OK, i have to be more concrete: > > boot0cfg -B ad0 > > repairs master boot record in 4.x after booting by other means into the > right freebsd partition (i.e. after setting active partition with fdisk > or similar programs under DOS). This is how i understand man pages that > where not changed from 4.x. Of course i should test the return value and > i should set option "packet" for larger disks and higher slices. Yes. > Was a line like > > bsdlabel -B ad0s3 > > nonsense in 4.x (with FreeBSD in slice 3) ? Well apart from bsdlabel being called disklabel in 4.x, this just installs the BSD bootblocks in the BSD slice, and doesn't touch the MBR at all. You still need those blocks installed if you want BSD to boot at all, but they are installed by default by sysinstall. > > You should ahve gotten anerror, but no, it is not supposed to work to keep > > yourself from really confusing things. > > what do you think i confused? I maybe have overseen option "packet", but > what else? As far as i understand this all no more works as a > consequence of "geom" design when not using some kind of fixit > environment :( . Heh, not you, the kernel :) There is a debug flag you can flip to disable the write-protect of critical regions on mounted volumes. Thats obviously not a problem if you're using a CD- or net-based fixit environment where you have all the tools and don't need to mount the local FS. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org