Subject: install/36552: sysinst attempts to create a partition which ends beyond the end of disk
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <chris@netbsd.org>
List: netbsd-bugs
Date: 06/24/2007 19:55:00
>Number:         36552
>Category:       install
>Synopsis:       sysinst attempts to create a partition which ends beyond the end of disk
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 24 19:55:00 +0000 2007
>Originator:     Chris Gilbert
>Release:        4.0_BETA2
>Organization:
>Environment:
install taken from 200706200000Z (uname -a not easily available as the NIC doesn't work on the machine)
>Description:
When installing on a ASUS Pundit to a Maxtor 32049H2 the parition table created by sysinst places the end of the last partition beyond the end of the disk.

The install used the defaults for a full installation to the whole of the disk.  The default NetBSD partitions (everything on root, with root auto-growing) were used.  The swap partition size was increased from 128MB to 2048MB (note that the install works if 128MB is used)

The disk is a Maxtor 32049H2
(19470MB, 39560 cyl, 16 head, 63 sec, 512 bytes/sect x 39876480 sectors)

It's connected via a siside (SIS 96X UDMA6651)

Manually altering the netbsd partitions to remove the auto-grow for the root partition allows the installation to continue.

The command that fails is:

disklabel -w -r -f /tmp/disktab wd0 'Maxtor 32049H2'
disklabel: partition b: partition extends past  end of unit

the contents of /tmp/disktab is:
Maxtor 32049H2 |NetBSDF installation generated:\


>How-To-Repeat:
Attempt to do a full installation to the whol:dt=unknown:ty=winchester:\
e of a disk.
>Fix:
N/A:nc#39560:nt#16:ns#63:\