Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2004 10:02:20 -0700 (PDT)
From:      Doug White <dwhite@gumbysoft.com>
To:        Fritz Heinrichmeyer <fritz.heinrichmeyer@fernuni-hagen.de>
Cc:        current@freebsd.org
Subject:   Re: boot0cfg bsdlabel under current
Message-ID:  <20040428095559.I45587@carver.gumbysoft.com>
In-Reply-To: <200404272034.48802.fritz.heinrichmeyer@fernuni-hagen.de>
References:  <200404261134.35476.fritz.heinrichmeyer@fernuni-hagen.de> <200404272034.48802.fritz.heinrichmeyer@fernuni-hagen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040428095559.I45587>