From owner-freebsd-bugs@FreeBSD.ORG Wed Jun 30 03:00:16 2010 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 B0EEF1065670 for ; Wed, 30 Jun 2010 03:00:16 +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 740188FC16 for ; Wed, 30 Jun 2010 03:00:16 +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 o5U30GCr075972 for ; Wed, 30 Jun 2010 03:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5U30GJd075971; Wed, 30 Jun 2010 03:00:16 GMT (envelope-from gnats) Resent-Date: Wed, 30 Jun 2010 03:00:16 GMT Resent-Message-Id: <201006300300.o5U30GJd075971@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, Brian R Jones Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51B221065673 for ; Wed, 30 Jun 2010 02:59:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3FD438FC13 for ; Wed, 30 Jun 2010 02:59:38 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5U2xbNe047451 for ; Wed, 30 Jun 2010 02:59:37 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o5U2xbKR047449; Wed, 30 Jun 2010 02:59:37 GMT (envelope-from nobody) Message-Id: <201006300259.o5U2xbKR047449@www.freebsd.org> Date: Wed, 30 Jun 2010 02:59:37 GMT From: Brian R Jones To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/148253: sysinstall partition= creates invalid partition type 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: Wed, 30 Jun 2010 03:00:16 -0000 >Number: 148253 >Category: misc >Synopsis: sysinstall partition= creates invalid partition type >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 30 03:00:16 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Brian R Jones >Release: 8.0-RELEASE-amd64 >Organization: >Environment: FreeBSD brj1-dbg.alacritech.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: when using sysinstall for automated install (using install.cfg), or from command line, the partition= option of diskPartitionEditor creates a partition of type 0x03 instead of 0xa5. The command line problem is no big deal, as fdisk can be used, but for jumpstart, It's an absolute PITA. >How-To-Repeat: easiest to demo from command line: Start by erasing all of MBR [brj1-sut]atkstat# dd if=/dev/zero of=/dev/ad8 bs=512 count=64 then use sysinstal to create partition [brj1-sut]atkstat# sysinstall debug=YES nonInteractive=YES disk=ad8 \ partition=100G bootManager=boot diskPartitionEditor diskPartitionWrite and use fdisk to view result [brj1-sut]atkstat# fdisk /dev/ad8 ******* Working on device /dev/ad8 ******* parameters extracted from in-core disklabel are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 3 (0x03),(XENIX /usr file system) start 63, size 209714337 (102399 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: >Fix: >Release-Note: >Audit-Trail: >Unformatted: