Subject: install/9226: Disklabel fails on Risc PC with Power-tec SCSI-2 (ptsc) (arm32)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kjetil@thomassen.priv.no>
List: netbsd-bugs
Date: 01/18/2000 11:52:23
>Number:         9226
>Category:       install
>Synopsis:       Disklabel fails on Risc PC with Power-tec SCSI-2 (ptsc) (arm32)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    install-manager (NetBSD system installation bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 18 11:48:00 2000
>Last-Modified:
>Originator:     Kjetil B. Thomassen
>Organization:
>Release:        1.4.1
>Environment:
http://home.eunet.no/~kjetilbt/MyRiscPC/
>Description:
Date: Mon, 3 Jan 2000 22:24:50 +0000 (GMT)
From: "Kjetil B. Thomassen" <kjetil@thomassen.priv.no>
Subject: 19991212 snapshot: Disklabel fails on Risc PC/Power-tec (ptsc)
To: NetBSD/arm32 mailing list <port-arm32@netbsd.org>

I have just tried the latest RPCINST kernel that Mark put up on 14
December last year, and that works fine up to the point where it tries
to do a new disklabel.

This is on a:
http://home.eunet.no/~kjetilbt/MyRiscPC/

The problem is that it fails when it tries to relabel my NetBSD/arm32
1.3_ALHA HP drive (sd0).

Here is what sysinst tells me:
/sbin/newfs /dev/rsd0a

Warning: 1 sector(s) in last cylinder unallocated
/dev/rsd0a: 314324 sectors in 275 cylinders of 9 tracks, 127 sectors
Superblock....
             , 311056,
writedisklabel: Invalid partition format
ewfs: ioctl (WDINFO): Operation not permitted
newfs: /dev/rsd0a: can't rewrite disk label


The disklabel has to be rewritten, as the layout is not the same as it
used to be, but the FS was made OK, fsck claims it is OK, and I can
mount it without problems.


This problem sounds very familiar, and could be the same as I have
struggled with all along. Namely the feature that was put in there so
that people would not accidentally erase their RISC OS partitions.

That same piece of code required the user to run bb_riscbsd on the
drive, even on Power-tec drives, where it should not be necessary.

If that is the case, could someone please fix this code and make a new
install kernel?

>How-To-Repeat:
Try to install NetBSD/arm32 1.4.1 on a SCSI drive connected a Power-tec
SCSI-2 card in a Risc PC.

>Fix:
Probably just a matter of fixing disklabel to support the Power-tec
partition table.
>Audit-Trail:
>Unformatted: