Subject: Re: Problems installing NetBSD/atari 1.1-BETA on Falcon
To: None <port-atari@NetBSD.ORG>
From: Waldi Ravens <waldi@moacs.indiv.nl.net>
List: port-atari
Date: 11/20/1995 06:09:58
Hi Helmar,
Thanks for sending in the aptck report.
> Below you see the output of your 'aptck'-programm
> for my two SCSI disks CDC (sd1) and QUANTUM (sd2)
> (The QUANTUM will be used for NetBSD)
>
> I can't understand this output, but can only report the partition-list
> I see and have created with "HDDRIVER V.2.71 by Uwe Seimet 1993 :
> You see it as an comparision to the aptck-output on the right side.
>
>
> device : s10 (SCSI target 1 lun 0) [CDC 94181-15 ]
>
> --------- aptck-Output ----------
>
> sector size: 512 bytes
> medium size: 1193100 sectors
>
> root sector data:
> medium size: 1193100 ---- HDDRIVER-partition table
> start of bad sector list : 1
> length of bad sector list: 1 start end (in sectors)
> entry 0: BGM 2 195464 0 2 195462
> entry 1: BGM 195466 97795 1 195463 293254
> entry 2: BGM 293261 97795 2 293255 391046
> entry 3: XGM 391056 802044 3 391047 566989
I'll have a word about the hddriver report with Uwe, this doesn't
look correct. If it were, aptck could never have found an auxilary
root sector at sector 391056. According to the HDDRIVER table the
first auxilary root sector would have been sector 391047, which is
obviously not true. Whatever hddriver reports, those are definitely
not physical sectors as they appear on your disk.
Anyway, your root partition table contains the descriptions of 3 regular
partitions and 1 extended partition. There are no gaps between those
partitions, the sum of the sizes is 1193098 sectors, add the root
sector and the bad-sector-list sector => 1193100 sectors, which
happens to be the medium size => all sectors used.
> auxilary root at sector 391056: 4 566990 802283
> entry 0: BGM 1 175945 5 802284 1193082
> entry 1: XGM 175946 235298
This is the first error, the size of this subpartition should
have been 235297 (one less). You can correct this with a sector
editor (like Diskus or chkdisk3). Load physical sector 391056
in the editor. At location 0x01da you will see the following
bytes (in hexadecimal): 00 03 97 22. Change the last byte
from 22 to 21. Save the sector.
Be careful not to change any other bytes. Take your time and
double check before you save the modified sector.
> Capacity: 1193100
> auxilary root at sector 567002: Used: 1193083
> entry 0: BGM 1 235296 Free: 17
> entry 1: XGM 411243 390802
The next error. Again the size of this subpartition is one
sector too large. Load physical sector 567002 in the sector
editor, at offset 0x01da from the start of this sector you
see: 00 05 f6 92. Change the last byte from 92 to 91 and
save the sector.
Run aptck again, and unless the size of the last entry is
also wrong (I don't expect that), aptck should now tell
you that the AHDI partiton table is OK.
> device : s20 (SCSI target 2 lun 0) [QUANTUM LPS270S ]
>
> --------- aptck-Output ----------
>
> sector size: 512 bytes
> medium size: 528808 sectors
>
> root sector data:
> medium size: 528808 ---- HDDRIVER-partition table
> start of bad sector list : 1
> length of bad sector list: 1 start end (in sectors)
> entry 0: NBR 2 40962 0 2 40961
> entry 1: NBS 40964 65538 1 40962 166497
> entry 2: BGM 106502 65538 2 106498 172033
> entry 3: XGM 172040 356768 3 172034 176129
Similar to the above => all sectors used.
> 4 176130 180225
> auxilary root at sector 172040: 5 180226 362497
> entry 0: GEM 1 4097 6 362498 528794
> entry 1: XGM 4098 4099
Wrong, the size of this subpartition should have been one
less. Load physical sector 172040 in your sector editor,
at location 0x01da you see: 00 00 10 03. Change the last
byte from 03 to 02. Save the sector.
> Capacity: 528808
> auxilary root at sector 176138: Used: 528795
> entry 0: NBU 1 4097 Free: 13
> entry 1: XGM 8196 182275
Same story here. Load physical sector 176138 in the sector editor.
Have a look at offset 0x01da from the start of the sector, you
see: 00 02 c8 03. Change the last byte from 03 to 02 and save
the sector.
> auxilary root at sector 180236:
> entry 0: NBU 1 182273
> entry 1: XGM 190470 166299
Guess what! :-) Load physical sector 180236. At location 0x01da
you see: 00 02 89 9b. Change 9b to 9a and save the sector.
By now you've probably got the taste of it, and may be disappointed
to hear that this is the last one you have to fix. :-) Just run
`aptck s2' again, this time it should tell you everything is fine.
Waldi