Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2007 11:48:48 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Pav Lucistnik <pav@FreeBSD.org>
Cc:        Yuri Pankov <yuri.pankov@gmail.com>, freebsd-current@FreeBSD.org, Ruslan Ermilov <ru@FreeBSD.org>
Subject:   Re: /boot/mbr miscompiled?
Message-ID:  <20070606110525.H70149@wonkity.com>
In-Reply-To: <1181144727.30405.30.camel@pav.hide.vol.cz>
References:  <20070606135815.GA913@darklight.abyss> <20070606145904.GA14456@rambler-co.ru> <20070606150536.GB875@darklight.abyss> <20070606153154.GB14456@rambler-co.ru> <1181144727.30405.30.camel@pav.hide.vol.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, 6 Jun 2007, Pav Lucistnik wrote:

>> Hmm.  The documentation bug was introduced recently in rev. 1.30
>> of boot0cfg.8 (and merged into RELENG_6).  I've just checked on
>> 4.x, 6.x, and 7.0 systems here, and /boot/mbr could never be
>> accepted by boot0cfg(8) because the second signature (the "Drive"
>> string) isn't there.  I've Cc:ed the committer of this change.
>
> And then, trust PRs. I wonder how is it possible that PR got submitted,
> if the example showed in it is totally bogus? Escapes me.
>
> So, should I back out that rev.?

Crap.  Incorrect notes on my part, apparently from switching between 
boot0cfg and fdisk.  Attached is a patch.  My apologies.

-Warren Block * Rapid City, South Dakota USA
[-- Attachment #2 --]
--- boot0cfg.8.old	Wed Jun  6 11:35:48 2007
+++ boot0cfg.8	Wed Jun  6 11:39:42 2007
@@ -89,9 +89,6 @@
 can be used for output to the COM1 port.
 (Be aware that nothing will be output to the COM1 port unless the
 modem signals DSR and CTS are active.)
-Use
-.Pa /boot/mbr
-to revert to non-interactive boot manager.
 .It Fl d Ar drive
 Specify the drive number used by the PC BIOS in referencing the drive
 which contains the specified
@@ -155,8 +152,6 @@
 image
 .It Pa /boot/boot0sio
 Image for serial consoles (COM1,9600,8,N,1,MODEM)
-.It Pa /boot/mbr
-Non-interactive boot MBR image
 .El
 .Sh EXIT STATUS
 .Ex -std
@@ -169,9 +164,11 @@
 .Pp
 .Dl "boot0cfg -m 0x3 ad0"
 .Pp
-To go back to non-interactive booting:
+To go back to non-interactive booting, use
+.Xr fdisk 8
+to install the default MBR:
 .Pp
-.Dl "boot0cfg -B -b /boot/mbr ad0"
+.Dl "fdisk -B -b /boot/mbr ad0"
 .Pp
 .Sh SEE ALSO
 .Xr geom 4 ,

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