Subject: 19991212 snapshot: Disklabel fails on Risc PC/Power-tec (ptsc)
To: NetBSD/arm32 mailing list <port-arm32@netbsd.org>
From: Kjetil B. Thomassen <kjetil@thomassen.priv.no>
List: port-arm32
Date: 01/03/2000 22:24:50
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?

I should make a PR on this, but I will wait and see what this email
brings about first.

Speaking of PRs, noone seems to have noticed PRs 8786 and 8787 that I
created last year.

TIA!

Kjetil B.
mailto:kjetil@thomassen.priv.no
http://home.eunet.no/~kjetilbt/