From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 13 07:30:14 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98259106573B for ; Mon, 13 Jun 2011 07:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BFC818FC18 for ; Mon, 13 Jun 2011 07:30:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5D7UBw7079108 for ; Mon, 13 Jun 2011 07:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5D7UB76079107; Mon, 13 Jun 2011 07:30:11 GMT (envelope-from gnats) Resent-Date: Mon, 13 Jun 2011 07:30:11 GMT Resent-Message-Id: <201106130730.p5D7UB76079107@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eir Nym Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71ED11065670 for ; Mon, 13 Jun 2011 07:22:35 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 62CE18FC14 for ; Mon, 13 Jun 2011 07:22:35 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p5D7MZVa062967 for ; Mon, 13 Jun 2011 07:22:35 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p5D7MZ9L062962; Mon, 13 Jun 2011 07:22:35 GMT (envelope-from nobody) Message-Id: <201106130722.p5D7MZ9L062962@red.freebsd.org> Date: Mon, 13 Jun 2011 07:22:35 GMT From: Eir Nym To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/157819: [geom] gpart(8): drop serial from MBR X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2011 07:30:14 -0000 >Number: 157819 >Category: kern >Synopsis: [geom] gpart(8): drop serial from MBR >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 13 07:30:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eir Nym >Release: FreeBSD-Current r222913 >Organization: Private Person >Environment: >Description: boot0cfg is aware about "serial number" field in MBR code, gpart(8) is not. If this field is broken, Windows Vista/7 (XP?) doesn't want to boot. >How-To-Repeat: Install Windows with MBR partition scheme, install FreeBSD without installer like this: # gpart add -t freebsd ada0 # gpart create -s MBR ada0s3 # bsdlabel -wB ada0s3 # newfs ada0s3a # mount ada0s3a /mnt // here unpack FreeBSD distro into /mnt and do initial configuration. # dd if=/dev/ada0 of=orig.mbr # gpart bootcode -b /mnt/boot/boot0 ada0 # boot0cfg -v ada0 if you do `boot0cfg -Bvb /mnt/boot/boot0` instead of `gpart bootcode` MBR serial will be preserved and windows vista/7 (xp?) will boot correctly. >Fix: be aware about MBR serial on MBR partition scheme >Release-Note: >Audit-Trail: >Unformatted: