NetBSD Problem Report #26809

Received: (qmail 13865 invoked by uid 605); 30 Aug 2004 18:09:45 -0000
Message-Id: <20040830183240.7b83e4e8.chris@NetBSD.org>
Date: Mon, 30 Aug 2004 18:32:40 +0100
From: Chris Gilbert <chris@NetBSD.org>
Sender: gnats-bugs-owner@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: cats 2.0_BETA install fails due to incorrectly generated cd
 disklabel

>Number:         26809
>Category:       kern
>Synopsis:       cd disklabels appear to be wrong on cats
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 30 18:10:00 +0000 2004
>Closed-Date:    Sat Oct 09 16:32:09 +0000 2004
>Last-Modified:  Sat Oct 09 16:32:09 +0000 2004
>Originator:     
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: 2.0_BETA NetBSD 2.0_BETA (INSTALL)
Architecture: arm
Machine: cats

>Description:
	While attempting to install 2.0_BETA on one of my cats, I found that the system wasn't able to mount /dev/cd0a, and was giving a not configured error.  Investigtating the disklabel shows that it doesn't think there is an a partition.  It appears that cats is generating the wrong disklabel, eg: 
type: ATAPI
disk: mydisc
label: fictitious
flags: removable
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 658
total sectors: 65730
rpm: 300
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:    262920         0    ISO9660       0             # (Cyl.      0 -   2629+)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partition d: partition extends past end of unit

	Under 1.6.2/cats the label appears as:
# /dev/rcd0c:
type: ATAPI
disk: RICOH   CD-R/RW
label: fictitious
flags: removable
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 658
total sectors: 65730
rpm: 300
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:    262920         0    ISO9660                      # (Cyl.    0 - 2629*)
 c:    262920         0    ISO9660                      # (Cyl.    0 - 2629*)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partition a: partition extends past end of unit
disklabel: partition c: partition extends past end of unit

Also on 2.0_BETA/i386 the label appears as:
# /dev/rcd0d:
type: ATAPI
disk: mydisc
label: fictitious
flags: removable
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 658
total sectors: 65730
rpm: 300
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    262920         0     4.2BSD      0     0     0  # (Cyl.      0 -   2629+)
 d:    262920         0    ISO9660       0             # (Cyl.      0 -   2629+)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partition a: partition extends past end of unit
disklabel: partition d: partition extends past end of unit

Note that the line "disk: mydisk" is faked on 2.0/i386, whereas under 1.6.2/cats it's the name of the drive.  I'd also have expected that partition a should be ISO9660, no 4.2BSD.

Note I've tried two different cd-rom drives, incase one is broken.

I'll also tried a 1.6ZG/i386 box, and it gives the same label as 2.0/i386.

The cd will mount on cats using /dev/cd0c, but sysinst expects to use cd0a, which makes install trickier.

>How-To-Repeat:
	make the iso image for cats, burn to cd, boot from it, and attempt to install a cats system.
	Attempt to do a CD based install on a cats system.
>Fix:
	Unknown.

>Release-Note:
>Audit-Trail:

From: Richard Earnshaw <rearnsha@netbsd.org>
To: Chris Gilbert <chris@netbsd.org>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/26809: cats 2.0_BETA install fails due to incorrectly
	generated cd disklabel
Date: Tue, 31 Aug 2004 10:45:21 +0100

 This is a duplicate of install/26564

 R.

From: Chris Gilbert <chris@dokein.co.uk>
To: Richard Earnshaw <rearnsha@netbsd.org>
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: kern/26809: cats 2.0_BETA install fails due to incorrectly
 generated cd disklabel
Date: Tue, 31 Aug 2004 23:56:55 +0100

 On Tue, 31 Aug 2004 10:45:21 +0100
 Richard Earnshaw <rearnsha@netbsd.org> wrote:

 > This is a duplicate of install/26564
 > 
 > R.

 Ack, yes, so it is, i didn't spot that, I searched for disklabel in the pr's...

 I'll close this PR and add a note to 26564.

 Thanks.
 Chris
State-Changed-From-To: open->closed 
State-Changed-By: chris 
State-Changed-When: Sat Oct 9 16:31:28 UTC 2004 
State-Changed-Why:  
This PR was fixed, and pulled up to the 2.0 branch. 
>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.