NetBSD Problem Report #36552

From  Sun Jun 24 19:50:54 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 529CA63B8E6
	for <>; Sun, 24 Jun 2007 19:50:54 +0000 (UTC)
Message-Id: <>
Date: Sun, 24 Jun 2007 13:33:01 +0000 (UTC)
Subject: sysinst attempts to create a partition which ends beyond the end of disk
X-Send-Pr-Version: www-1.0

>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
>Last-Modified:  Sun Jun 24 22:24:57 +0000 2007
>Originator:     Chris Gilbert
>Release:        4.0_BETA2 and 4.99.20
install for 4.0_BETA2 taken from 200706200000Z
-current uname -a:
NetBSD 4.99.20 NetBSD 4.99.20 (GENERIC) #0: Fri Jun 22 15:18:27 PDT 2007  builds@wb43:/home/builds/ab/HEAD/i386/200706220002Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386

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)

After a few more install attempts it seems that the swap value just had to be different to the already partitioned value to cause this problem.

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 (this is failure when using 128MB of Swap):
Maxtor 32049H2 |NetBSD installation generated:\

Note that the values of pa+pb(39877362) > su (39876480) 

This suggests some kind of math botch when adding on the free space to the root partition.

Also of relevance (having scan read the sysinst code) is that the system has 1GB of memory, of which dmesg shows:
total memory = 959 MB
rbus: rbus_min_start set to 0x40000000
avail memory = 932 MB
I believe 64MB is allocated to the SIS graphics card.

Attempt to do a full installation to the whole of a disk, changing the swap size from the previous install.




NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.