NetBSD Problem Report #29211

From www@netbsd.org  Thu Feb  3 09:32:26 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id B66D463B400; Thu,  3 Feb 2005 09:32:26 +0000 (UTC)
Message-Id: <20050203093226.B66D463B400@narn.netbsd.org>
Date: Thu,  3 Feb 2005 09:32:26 +0000 (UTC)
From: spam@pianocast.net
Reply-To: spam@pianocast.net
To: gnats-bugs@netbsd.org
Subject: Old partition name limits on kernel "config" directive
X-Send-Pr-Version: www-1.0

>Number:         29211
>Category:       kern
>Synopsis:       Old partition name limits on kernel "config" directive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 03 09:33:00 +0000 2005
>Last-Modified:  Thu Feb 03 11:09:01 +0000 2005
>Originator:     Dave B
>Release:        2.0
>Organization:
>Environment:
NetBSD xxxxxx 2.0_STABLE NetBSD 2.0_STABLE (XXXXXX) #0: Tue Jan 25 12:51:25 EST 2005  netbsd@xxxxxx:/usr/src/sys/arch/i386/compile/XXXXXX i386
>Description:
  Under a recent i386 netbsd-2 checkout (and maybe under earlier RELs,
although I happened to notice it under 2.0) the name limit on
partitions in the

    config <exec_name> root on <rootdev> [stuff]

directive of kernel config files doesn't appear to support the updated
16 partition-per-drive limit.  In other words, the statement

    config	netbsd	root on sd0o

results in an error ("invalid root device name `sd0o'"), whereas if
one sets up sd0h with geometry identical to that of sd0o, this one,

    config	netbsd	root on sd0h

will succeed.  I'm guessing that it's because h is in the first 8
partitions and o is not?
>How-To-Repeat:
Try to make a kernel with a root fs hard-coded to a partition with a letter above "h", e.g.:

	config	netbsd	root on wd0i
>Fix:
re-assign partitions in your disklabel so a lower-lettered partition maps to where your root fs is

>Audit-Trail:
From: Quentin Garnier <cube@cubidou.net>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/29211: Old partition name limits on kernel "config" directive
Date: Thu, 3 Feb 2005 12:08:07 +0100

 --WplhKdTI2c8ulnbP
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Thu, Feb 03, 2005 at 09:33:00AM +0000, spam@pianocast.net wrote:
 > >Number:         29211
 > >Category:       kern
 > >Synopsis:       Old partition name limits on kernel "config" directive
 [...]
 > >Description:
 >   Under a recent i386 netbsd-2 checkout (and maybe under earlier RELs,
 > although I happened to notice it under 2.0) the name limit on
 > partitions in the
 >=20
 >     config <exec_name> root on <rootdev> [stuff]
 >=20
 > directive of kernel config files doesn't appear to support the updated
 > 16 partition-per-drive limit.  In other words, the statement
 >=20
 >     config	netbsd	root on sd0o
 >=20
 > results in an error ("invalid root device name `sd0o'"), whereas if
 > one sets up sd0h with geometry identical to that of sd0o, this one,
 >=20
 >     config	netbsd	root on sd0h
 >=20
 > will succeed.  I'm guessing that it's because h is in the first 8
 > partitions and o is not?

 This is because config(8) doesn't know about the kludgy way we assign
 minors to partitions on i386.

 A workaround would be to do

 config netbsd root on major 4 minor 524294

 Right now I don't see a clean way to correct that issue.  Introducing
 MD code in config(8) would be gross.

 --=20
 Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
 "When I find the controls, I'll go where I like, I'll know where I want
 to be, but maybe for now I'll stay right here on a silent sea."
 KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

 --WplhKdTI2c8ulnbP
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (NetBSD)

 iQEVAwUBQgIGF9goQloHrPnoAQLoxggAjhEDXhvbHeSiXubD4H+VhPnA56ctuxaJ
 7TrnJ+FKQc95FWNT4DXTXfte3gZ2EIXB4CxNt3Sj44iU9lA7N5m4vXQB08oGhbYm
 5riRvI8CuxGkXPhl2vEampMFk3U4u6+kfDCagCJwPwTaZ6VBrkQ3DO59sHtXIY/J
 GFECO1qTrdtGbqc+pk8VxmYlDtVIqyw6l+rpCt6S5/ElWPDUV0iuz+3t1e06HSxV
 tqZL3wLbmrJ84uro3fs1i7PJYXHIDt6hNJzqkyQvSZfsIGSfPQFbon2w8ljI3LTi
 kzOb2RuuSoPtwMnN6TtQ4rkBiTl+DOjmYWeOMd0pHODS8AE8YnJIIA==
 =sFJ7
 -----END PGP SIGNATURE-----

 --WplhKdTI2c8ulnbP--

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.