NetBSD Problem Report #36552

From martin@duskware.de  Sun Jun 24 19:50:54 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 529CA63B8E6
	for <gnats-bugs@gnats.netbsd.org>; Sun, 24 Jun 2007 19:50:54 +0000 (UTC)
Message-Id: <20070624133301.800DD63B882@narn.NetBSD.org>
Date: Sun, 24 Jun 2007 13:33:01 +0000 (UTC)
From: chris@netbsd.org
Reply-To: chris@netbsd.org
To: netbsd-bugs-owner@NetBSD.org
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
>Organization:
>Environment:
install for 4.0_BETA2 taken from 200706200000Z
-current uname -a:
NetBSD bsdcon.dokein.co.uk 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

>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)

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:\
	:dt=unknown:ty=winchester:\
	:nc#39560:nt#16:ns#63:\
        :sc#1008:su#39876480:\
        :se#512:\
        :pa#39613392:oa#63:ta=4.2BSD:ba#16384:fa#2048:ta=4.2BSD:\
        :pb#263970:ob#39613455:tb=swap:\
        :pc#39876417:oc#63:tc=unused:\
        :pd#39876480:od#0:td=unused:\
        :pe#0:oe#0:te=unused:\
        :pf#0:of#0:tf=unused:\
        :pg#0:og#0:tg=unused:\
        :ph#0:oh#0:th=unused:\
        :pi#0:oi#0:ti=unused:\
        :pj#0:oj#0:tj=unused:\
        :pk#0:ok#0:tk=unused:\
        :pl#0:ol#0:tl=unused:\
        :pm#0:om#0:tm=unused:\
        :pn#0:on#0:tn=unused:\
        :po#0:oo#0:to=unused:\
        :pp#0:op#0:tp=unused:

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.

>How-To-Repeat:
Attempt to do a full installation to the whole of a disk, changing the swap size from the previous install.
>Fix:
N/A

>Release-Note:

>Audit-Trail:

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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