From owner-freebsd-current@FreeBSD.ORG Wed Jun 6 15:33:09 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3CF3916A468; Wed, 6 Jun 2007 15:33:09 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.freebsd.org (Postfix) with ESMTP id E718813C44B; Wed, 6 Jun 2007 15:33:08 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id AD8FC7016; Wed, 6 Jun 2007 19:33:07 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 8BCAC7019; Wed, 6 Jun 2007 19:33:07 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.14.1/8.14.1) id l56FVsps099837; Wed, 6 Jun 2007 19:31:54 +0400 (MSD) (envelope-from ru) Date: Wed, 6 Jun 2007 19:31:54 +0400 From: Ruslan Ermilov To: Yuri Pankov Message-ID: <20070606153154.GB14456@rambler-co.ru> References: <20070606135815.GA913@darklight.abyss> <20070606145904.GA14456@rambler-co.ru> <20070606150536.GB875@darklight.abyss> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070606150536.GB875@darklight.abyss> User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: No virus found Cc: freebsd-current@freebsd.org, Pav Lucistnik Subject: Re: /boot/mbr miscompiled? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 06 Jun 2007 15:33:09 -0000 On Wed, Jun 06, 2007 at 07:05:36PM +0400, Yuri Pankov wrote: > On Wed, Jun 06, 2007 at 06:59:04PM +0400, Ruslan Ermilov wrote: > > On Wed, Jun 06, 2007 at 05:58:15PM +0400, Yuri Pankov wrote: > > > Hi, > > > > > > I've noticed lately that I can't install /boot/mbr using boot0cfg. > > > > > > [root@darklight:~]# boot0cfg -B -b /boot/mbr ad4 > > > boot0cfg: /boot/mbr: unknown or incompatible boot code > > > > > > -r--r--r-- 1 root wheel - 512 Jun 6 17:45 /boot/mbr > > > /boot/mbr: x86 boot sector > > > > > I think you'll have to use "fdisk -B" to do that. > > (boot0cfg(8) only installs boot0 and boot0sio.) > > > > Thank you Ruslan. > > Shouldn't boot0cfg(8) manpage be updated accordingly (EXAMPLES section, > at least)? > 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. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer