From owner-freebsd-current@FreeBSD.ORG Mon Apr 4 05:08:24 2005 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 9CDDD16A4CE; Mon, 4 Apr 2005 05:08:24 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F04E43D5E; Mon, 4 Apr 2005 05:08:24 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j34563a7094269; Sun, 3 Apr 2005 23:06:03 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 03 Apr 2005 23:06:21 -0600 (MDT) Message-Id: <20050403.230621.16875081.imp@bsdimp.com> To: ache@nagual.pp.ru From: "M. Warner Losh" In-Reply-To: <20050404042817.GB49953@nagual.pp.ru> References: <20050404025705.GA48464@nagual.pp.ru> <002a01c538ca$d12d8de0$142a15ac@Spud6000> <20050404042817.GB49953@nagual.pp.ru> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: dmp@bitfreak.org cc: current@freebsd.org Subject: Re: Can't change partition table anymore 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: Mon, 04 Apr 2005 05:08:24 -0000 In message: <20050404042817.GB49953@nagual.pp.ru> Andrey Chernov writes: : On Sun, Apr 03, 2005 at 09:00:12PM -0700, Darren Pilgrim wrote: : > > I can't write FreeBSD bootloader because reinstalled Windows overwrite it : > > with standard MBR and sysinstall don't allow to write bootloader anymore. : > > The only thing I not try yet in that situation was 'dd' - I was too lasy : > > to find needed byte. : > : > The MBR is the first sector of the disk. FWIW, if you're coexisting with : > Windows, it's easier to let Windows have its way with the MBR and use : > Windows' own boot loader. The setup is simple, copy a boot sector and edit : > a text file, and Windows won't mess with it. : : There are a lots of ways. When I don't know kern.geom.debugflags=16 trick : yet, I istall 3rd party boot manager under Windows. But all this is not : relevant to the discussed subject: why FreeBSD root can't change disk : partition without quasi-shamanic dance with unnatural and undocumented : sysctls? Why Linux root can do it freely? As you see in my other mail, this only happens when one partition overlaps the MBR and that partition has mounted partitions. Such a configuration is illegal, but tolerated, in the PC world. Warner