Subject: kern/26809: cats 2.0_BETA install fails due to incorrectly generated cd
To: None <gnats-bugs@gnats.NetBSD.org>
From: Chris Gilbert <chris@NetBSD.org>
List: netbsd-bugs
Date: 08/30/2004 18:32:40
>Number:         26809
>Category:       kern
>Synopsis:       cd disklabels appear to be wrong on cats
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 30 18:10:00 UTC 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: