Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2010 02:59:37 GMT
From:      Brian R Jones <bjones@castlejones.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/148253: sysinstall partition=<SIZE> creates invalid partition type
Message-ID:  <201006300259.o5U2xbKR047449@www.freebsd.org>
Resent-Message-ID: <201006300300.o5U30GJd075971@freefall.freebsd.org>

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

>Number:         148253
>Category:       misc
>Synopsis:       sysinstall partition=<SIZE> 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=<SIZE> 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:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>



>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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