Partition Manager feedback

General development discussion not covered by a specific forum
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Wed Nov 09, 2022 Could you please confirm the exact size of "One" so I can figure out which words hold the partition size and offset to the next partition.
I entered "50MB" in to IDETool as you requested. *free says 52,396,032 free, 32,768 used. I'm not sure how else to tell the "exact size" you're asking for.
JonAbbott wrote: Wed Nov 09, 2022
IanJeffray wrote: Tue Nov 08, 2022 what on earth is going on with my ADFS drive....
A debug log will probably explain what you're seeing, but if I was to guess:
  • the drive was initially formatted with an HForm that writes a MBR partition table
  • the MBR partition table has a 2.91GB partition entry that isn't the "official" Acorn type
  • the drive was later reformatted as "16GB" with a formatter that doesn't clear or update the MBR
So I suspect you have an MBR that's mismatched with the contents of the drive.
Well, as far as I'm aware, from what I remember, I'm "pretty sure" that's not likely to be the case. This is a "CloudDisc" CF card bought brand new from Amazon, put straight in this RiscPC and formatted with RISC OS 4's HForm to E+ format. And that's it. I'm "pretty sure" I did no other buggering about with any other HForm or partitioning before putting it in here. 2.91GB would be a completely bizarre size to pick anyway. Either way, PartMgr's not really showing the live reality of what the drive's doing in the machine :) I notice a weird "HardDisk1" text in the MBR in the debug log below though -- I'm -very- sure that wasn't me, nor would it be the default name from any Acorn HForm surely? (Windowsy?) I might throw the CF through a linux box and completely zero it and start again at some point, just to be able to be completely sure of what's on it, but that marginally misses the point that this is how it's ended up, working fine, and PartMgr is, I would say, mis-interpreting things.

debug.txt :

Code: Select all

PartMgr v0.90 30/10/22 DEBUG
OS Version=439
ADFS found
CDFS found
IDEFS found
BASIC END=44828

read_drives
===========

ADFS
----
Potentially 1 drives

ADFS::4 - Legacy IDE drive (Master)
IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 7945 0000 0010 0000 0240 003F 01DD 7FB0 0000   J.Ey......@.?.......
000010 : 2020 2020 2020 2020 2020 2020 3030 3030 3144 4644               0000D1DF
000020 : 0002 0002 0004 3230 3132 3130 3234 4346 2043 4152   ......02210142FCC RA
000030 : 4420 2020 2020 2020 2020 2020 2020 2020 2020 2020    D                  
000040 : 2020 2020 2020 2020 2020 2020 2020 8001 0000 0F00                 ......
000050 : 0000 0200 0000 0007 7945 0010 003F 7FB0 01DD 0100   ........Ey..?.......
000060 : 7FB0 01DD 0000 0007 0003 0078 0078 0078 0078 0000   ..........x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0080 0000 7028 5004 4000 0000 0004 4000 003F 0000   ....(p.P.@.....@?...
000090 : 0000 0000 0000 604F 0000 0000 0000 0000 0000 0000   ......O`............
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000130 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : C1F4 0000 0000 0092 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media based drive
Drive using LBA addressing
Physical drive is ADFS 4
LBA Size   =512
Size in LBA=&001DD7FB0
Removable  =0

IDEFS
-----
IDEFS detected as Simtec v130
Potentially 4 physical drives
DiscOp 3/IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 0FE2 0000 0010 0000 0200 003F 003E 89E0 0000   J...........?.>.....
000010 : 4344 3238 3532 3539 3936 3530 3039 3235 3238 3039   DC822595690590528290
000020 : 0001 0001 0004 3234 312D 3032 3330 5349 4C49 434F   ......42-12003ISILOC
000030 : 4E53 5953 5445 4D53 2049 4E43 2032 4742 2020 2020   SNSYETSMI CN2 BG    
000040 : 2020 2020 2020 2020 2020 2020 2020 0001 0000 0F00                 ......
000050 : 0000 0200 0000 0003 0FE2 0010 003F 89E0 003E 0100   ............?...>...
000060 : 89E0 003E 0000 0407 0003 0078 0078 0078 0078 0000   ..>.......x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000090 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 3036   ..................60
000130 : 3032 3031 6238 0000 0000 0000 0000 0000 0000 0000   20108b..............
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media drive
Drive supports LBA addressing
Physical drive is IDEFS 2
LBA Size    =512
Size in LBA =&0003E89E0
D_Removable%=0

add_partitions_FileCore
=======================
ADFS discop(0,1,&6,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000006,..,&200
  ADFS_SectorOp,,1,&80000006,..,&200

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 13 0B 00 02 01 86 20 00 01 A1 FB 02   .?........ .....
&000010 : 00 60 FF BA 00 00 00 00 00 00 00 00 00 00 00 00   .`..............
&000020 : 00 00 00 00 03 00 00 00 00 01 07 00 01 00 00 00   ................
&000030 : 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 6D   ...............m

                                              ^^ ^^ ^^
Non-ADFS partition found at cylinder &0 / LBA &0 type 0

Full DiscRec is in Zone 963 at LBA &EED700
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

ADFS discop(0,1,&EED700,&0,..,&40)
  ADFS_SectorDiscOp,,1,&80EED700,..,&40
  ADFS_SectorOp,,1,&80EED700,..,&40

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 1B 0C 82 FF 09 3F 10 00 13 0B 00 02 01 86 20 00   .....?........ .
&000010 : 01 A1 FB 02 00 60 FF BA DD AD 31 36 47 42 20 20   .....`....16GB  
&000020 : 20 20 20 20 00 00 04 00 03 00 00 00 00 01 07 00       ............
&000030 : 01 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive ::16GB
  not found

add_partitions_GPT
==================
ADFS 4 checking for GPT partition table

ADFS discop(0,1,&0,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000000,..,&200
  ADFS_SectorOp,,1,&80000000,..,&200

Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000040 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000050 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000060 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000070 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000080 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000090 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000C0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000100 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000110 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000120 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000130 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000140 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000150 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000160 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000170 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000180 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000190 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 FF   ................
&0001C0 : FF FE AD FF FF FE 01 00 00 00 AF 7F DD 01 00 00   ................
&0001D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA   ..............U.


add_partitions_MBR
==================
ADFS 4 checking for MBR partition table
ADFS discop(0,1,&0,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000000,..,&200
  ADFS_SectorOp,,1,&80000000,..,&200

Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000040 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000050 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000060 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000070 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000080 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000090 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000C0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000100 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000110 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000120 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000130 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000140 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000150 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000160 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000170 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000180 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000190 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 FF   ................
&0001C0 : FF FE AD FF FF FE 01 00 00 00 AF 7F DD 01 00 00   ................
&0001D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA   ..............U.

MBR partition table found

Partition 0
-----------
Partition type=&AD
Start LBA     =&000000001
Size in LBA   =&001DD7FAF
ADFS discop(0,1,&7,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000007,..,&200
  ADFS_SectorOp,,1,&80000007,..,&200

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 25 12 00 13 0B 00 02 00 86 20 00 01 A1 FB 02   .%........ .....
&000010 : 00 5E FF BA C8 AD 48 61 72 64 44 69 73 6B 31 0D   .^....HardDisk1.
&000020 : 00 00 00 00 03 00 00 00 00 01 07 00 01 00 00 00   ................
&000030 : 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 77   ...............w

Full DiscRec is in Zone 963 at LBA &EED700
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

ADFS discop(0,1,&EED701,&0,..,&40)
  ADFS_SectorDiscOp,,1,&80EED701,..,&40
  ADFS_SectorOp,,1,&80EED701,..,&40

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 18 18 80 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive ::
  not found
Full-disc FileCore overlayed over MBR partitions

add_partitions_IDEFS
====================
unpartitioned, trying for a full FileCore

add_partitions_FileCore
=======================
IDEFS discop(1,1,&6,&0,..,&200)
  IDEFS_SectorDiscOp,,1,&40000006,..,&200
  IDEFS_SectorOp,,1,&40000006,..,&200
Failed to find a valid FileCore structure
BASIC END=45AE4
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Wed Nov 09, 2022 I'm "pretty sure" that's not likely to be the case.
From the log:
  • there's a valid MBR partition table with a 16GB partition
  • the drive was originally formatted as "HardDisc1"
  • its been renamed to "16GB"
  • BASIC somehow managed to translate IF P%=0 AND (type%=1 OR type%=2) to TRUE when type%=0
  • There's a bug in FS.ADFS which isn't setting the drive prefix so it failed to find ADFS::16GB
I've fixed the bug in FS.ADFS, but have no idea how BASIC equated that IF statement to TRUE. We'll have to see what it does when I give you the next update to test.
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Wed Nov 09, 2022 I entered "50MB" in to IDETool as you requested. *free says 52,396,032 free, 32,768 used. I'm not sure how else to tell the "exact size" you're asking for.
See if the attached reads the partitions correctly on the Simtec - it's a bit of a stab in the dark.
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Wed Nov 09, 2022 [*]the drive was originally formatted as "HardDisc1"
Not by me. And a bit of googling shows that "HardDisk1" (with a k, as per the debug.txt) does indeed seem to be what Windows calls its drives internally.

Anyway, on to the latest version of version 0.90 ....
JonAbbott wrote: Wed Nov 09, 2022 See if the attached reads the partitions correctly on the Simtec - it's a bit of a stab in the dark.
"No such function/procedure at line 182"
That's an EVAL("FNread_partition_table_... ack.

Then it just quits.

That still happens if I RMKILL IDEFS, so I guess something in the ADFS bit bugged out?

Code: Select all

PartMgr v0.90 31/10/22 DEBUG
OS Version=439
ADFS found
CDFS found
IDEFS found
BASIC END=45290

read_drives
===========

ADFS
----
Potentially 1 drives

ADFS::4 - Legacy IDE drive (Master)
IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 7945 0000 0010 0000 0240 003F 01DD 7FB0 0000   J.Ey......@.?.......
000010 : 2020 2020 2020 2020 2020 2020 3030 3030 3144 4644               0000D1DF
000020 : 0002 0002 0004 3230 3132 3130 3234 4346 2043 4152   ......02210142FCC RA
000030 : 4420 2020 2020 2020 2020 2020 2020 2020 2020 2020    D                  
000040 : 2020 2020 2020 2020 2020 2020 2020 8001 0000 0F00                 ......
000050 : 0000 0200 0000 0007 7945 0010 003F 7FB0 01DD 0100   ........Ey..?.......
000060 : 7FB0 01DD 0000 0007 0003 0078 0078 0078 0078 0000   ..........x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0080 0000 7028 5004 4000 0000 0004 4000 003F 0000   ....(p.P.@.....@?...
000090 : 0000 0000 0000 604F 0000 0000 0000 0000 0000 0000   ......O`............
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000130 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : C1F4 0000 0000 0092 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media based drive
Drive using LBA addressing
Physical drive is ADFS 4
LBA Size   =512
Size in LBA=&001DD7FB0
Removable  =0

IDEFS
-----
IDEFS detected as Simtec v130
Potentially 4 physical drives
DiscOp 3/IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 0FE2 0000 0010 0000 0200 003F 003E 89E0 0000   J...........?.>.....
000010 : 4344 3238 3532 3539 3936 3530 3039 3235 3238 3039   DC822595690590528290
000020 : 0001 0001 0004 3234 312D 3032 3330 5349 4C49 434F   ......42-12003ISILOC
000030 : 4E53 5953 5445 4D53 2049 4E43 2032 4742 2020 2020   SNSYETSMI CN2 BG    
000040 : 2020 2020 2020 2020 2020 2020 2020 0001 0000 0F00                 ......
000050 : 0000 0200 0000 0003 0FE2 0010 003F 89E0 003E 0100   ............?...>...
000060 : 89E0 003E 0000 0407 0003 0078 0078 0078 0078 0000   ..>.......x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000090 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 3036   ..................60
000130 : 3032 3031 6238 0000 0000 0000 0000 0000 0000 0000   20108b..............
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media drive
Drive supports LBA addressing
Physical drive is IDEFS 2
LBA Size    =512
Size in LBA =&0003E89E0
D_Removable%=0
Error: No such function/procedure at line 182
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Wed Nov 09, 2022 "No such function/procedure at line 182"
Sorry about that, try the attached with the Simtec.
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Thu Nov 10, 2022
IanJeffray wrote: Wed Nov 09, 2022 "No such function/procedure at line 182"
Sorry about that, try the attached with the Simtec.
Well, err, umm...
0.90_new_new.png
0.90_new_new.png (10.79 KiB) Viewed 19617 times

Code: Select all

PartMgr v0.90 10/11/22 DEBUG
OS Version=439
ADFS found
CDFS found
IDEFS found
BASIC END=452BC

read_drives
===========

ADFS
----
Potentially 1 drives

ADFS::4 - Legacy IDE drive (Master)
IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 7945 0000 0010 0000 0240 003F 01DD 7FB0 0000   J.Ey......@.?.......
000010 : 2020 2020 2020 2020 2020 2020 3030 3030 3144 4644               0000D1DF
000020 : 0002 0002 0004 3230 3132 3130 3234 4346 2043 4152   ......02210142FCC RA
000030 : 4420 2020 2020 2020 2020 2020 2020 2020 2020 2020    D                  
000040 : 2020 2020 2020 2020 2020 2020 2020 8001 0000 0F00                 ......
000050 : 0000 0200 0000 0007 7945 0010 003F 7FB0 01DD 0100   ........Ey..?.......
000060 : 7FB0 01DD 0000 0007 0003 0078 0078 0078 0078 0000   ..........x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0080 0000 7028 5004 4000 0000 0004 4000 003F 0000   ....(p.P.@.....@?...
000090 : 0000 0000 0000 604F 0000 0000 0000 0000 0000 0000   ......O`............
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000130 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : C1F4 0000 0000 0092 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media based drive
Drive using LBA addressing
Physical drive is ADFS 4
LBA Size   =512
Size in LBA=&001DD7FB0
Removable  =0

IDEFS
-----
IDEFS detected as Simtec v130
Potentially 4 physical drives
DiscOp 3/IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 0FE2 0000 0010 0000 0200 003F 003E 89E0 0000   J...........?.>.....
000010 : 4344 3238 3532 3539 3936 3530 3039 3235 3238 3039   DC822595690590528290
000020 : 0001 0001 0004 3234 312D 3032 3330 5349 4C49 434F   ......42-12003ISILOC
000030 : 4E53 5953 5445 4D53 2049 4E43 2032 4742 2020 2020   SNSYETSMI CN2 BG    
000040 : 2020 2020 2020 2020 2020 2020 2020 0001 0000 0F00                 ......
000050 : 0000 0200 0000 0003 0FE2 0010 003F 89E0 003E 0100   ............?...>...
000060 : 89E0 003E 0000 0407 0003 0078 0078 0078 0078 0000   ..>.......x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000090 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 3036   ..................60
000130 : 3032 3031 6238 0000 0000 0000 0000 0000 0000 0000   20108b..............
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media drive
Drive supports LBA addressing
Physical drive is IDEFS 2
LBA Size    =512
Size in LBA =&0003E89E0
D_Removable%=0

add_partitions_FileCore
=======================
ADFS discop(0,1,&6,&0,..,&200)
  ADFS_SectorDiscOp,,1,&6,..,&200
Failed to find a valid FileCore structure

add_partitions_GPT
==================
ADFS 4 checking for GPT partition table

ADFS discop(0,1,&0,&0,..,&200)
  ADFS_SectorDiscOp,,1,&0,..,&200

add_partitions_MBR
==================
ADFS 4 checking for MBR partition table
ADFS discop(0,1,&0,&0,..,&200)
  ADFS_SectorDiscOp,,1,&0,..,&200

add_partitions_IDEFS
====================
 discop_Simtec(1,1,&6,&0,..,&200)
 discop_Simtec(1,1,&6,&0,..,&200)

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0A 00 00 01 0D 20 00 1B 02 00 00   .?........ .....
&000010 : 00 00 20 03 00 00 4F 6E 65 0D 00 00 00 00 00 00   .. ...One.......
&000020 : CD 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 42 CB 00 18   ............B...

                                              ^^ ^^ ^^
Non-ADFS partition found at cylinder &CB / LBA &31F50 type 2

 discop_Simtec(1,1,&31F50,&0,..,&200)
Address :        0        4        8        C
&000000 : 00000000 00000000 00000000 00000000   ................
&000010 : 00000000 00000000 00000000 00000000   ................
&000020 : 00000000 00000000 00000000 00000000   ................
&000030 : 00000000 00000000 00000000 00000000   ................
&000040 : 00000000 00000000 00000000 00000000   ................
&000050 : 00000000 00000000 00000000 00000000   ................
&000060 : 00000000 00000000 00000000 00000000   ................
&000070 : 00000000 00000000 00000000 00000000   ................
&000080 : 00000000 00000000 00000000 00000000   ................
&000090 : 00000000 00000000 00000000 00000000   ................
&0000A0 : 00000000 00000000 00000000 00000000   ................

Invalid RISC iX partition table

Full DiscRec is in Zone 6 at LBA &BAC0
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=10

 discop_Simtec(1,1,&BAC0,&0,..,&40)

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 45 08 82 FF 09 3F 10 00 0F 0A 00 00 01 0D 20 00   E....?........ .
&000010 : 1B 02 00 00 00 00 20 03 00 00 4F 6E 65 0D 00 00   ...... ...One...
&000020 : 00 00 00 00 CD 0F 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::One
Matching FileCore disc found as IDEFS::4
Free=&0031F8000
OS Size in LBA=&000019000
 discop_Simtec(1,1,&19006,&0,..,&200)
 discop_Simtec(1,1,&19006,&0,..,&200)

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0A 00 00 01 0D 20 00 1B 02 00 00   .?........ .....
&000010 : 00 A0 1E 03 00 00 54 77 6F 0D 00 00 00 00 00 00   ......Two.......
&000020 : CD 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 42 CB 00 CE   ............B...

Full DiscRec is in Zone 6 at LBA &BAC0
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=10

 discop_Simtec(1,1,&24AC0,&0,..,&40)

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 30 08 82 FF 09 3F 10 00 0F 0A 00 00 01 0D 20 00   0....?........ .
&000010 : 1B 02 00 00 00 A0 1E 03 00 00 54 77 6F 0D 00 00   ..........Two...
&000020 : 00 00 00 00 CD 0F 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::Two
Matching FileCore disc found as IDEFS::5
Free=&0031E2000
OS Size in LBA=&000018F50
 discop_Simtec(1,1,&31F56,&0,..,&200)

Unallocated block
-----------------
P_Start_LBA_Low%=&31F50
P_Start_LBA_High%=&0
P_Size_In_LBA_Low%=&CE0B0
P_Size_In_LBA_High%=&0


Unallocated block
-----------------
P_Start_LBA_Low%=&100000
P_Start_LBA_High%=&0
P_Size_In_LBA_Low%=&2E89E0
P_Size_In_LBA_High%=&0

BASIC END=466D8
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Thu Nov 10, 2022 Well, err, umm...
Please try the attached.
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Thu Nov 10, 2022 Please try the attached.
Looking pretty good now, both ADFS and Simtec. :D
partmgr_090_new_new_new.png
partmgr_090_new_new_new.png (12.2 KiB) Viewed 19602 times
The "(unmounted)" line is the only wrong/confusing bit I think... because it thinks there's a FileCore in a FileCore for ADFS?

I wonder why the Simtec partitions are showing as different sizes - they were both created identically as "50MB".

Anyway, here's the debug.txt as usual:

Code: Select all

PartMgr v0.90 10/11/22 DEBUG
OS Version=439
ADFS found
CDFS found
IDEFS found
BASIC END=45288

read_drives
===========

ADFS
----
Potentially 1 drives

ADFS::4 - Legacy IDE drive (Master)
IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 7945 0000 0010 0000 0240 003F 01DD 7FB0 0000   J.Ey......@.?.......
000010 : 2020 2020 2020 2020 2020 2020 3030 3030 3144 4644               0000D1DF
000020 : 0002 0002 0004 3230 3132 3130 3234 4346 2043 4152   ......02210142FCC RA
000030 : 4420 2020 2020 2020 2020 2020 2020 2020 2020 2020    D                  
000040 : 2020 2020 2020 2020 2020 2020 2020 8001 0000 0F00                 ......
000050 : 0000 0200 0000 0007 7945 0010 003F 7FB0 01DD 0100   ........Ey..?.......
000060 : 7FB0 01DD 0000 0007 0003 0078 0078 0078 0078 0000   ..........x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0080 0000 7028 5004 4000 0000 0004 4000 003F 0000   ....(p.P.@.....@?...
000090 : 0000 0000 0000 604F 0000 0000 0000 0000 0000 0000   ......O`............
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000130 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : C1F4 0000 0000 0092 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media based drive
Drive using LBA addressing
Physical drive is ADFS 4
LBA Size   =512
Size in LBA=&001DD7FB0
Removable  =0

IDEFS
-----
IDEFS detected as Simtec v130
Potentially 4 physical drives
DiscOp 3/IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 0FE2 0000 0010 0000 0200 003F 003E 89E0 0000   J...........?.>.....
000010 : 4344 3238 3532 3539 3936 3530 3039 3235 3238 3039   DC822595690590528290
000020 : 0001 0001 0004 3234 312D 3032 3330 5349 4C49 434F   ......42-12003ISILOC
000030 : 4E53 5953 5445 4D53 2049 4E43 2032 4742 2020 2020   SNSYETSMI CN2 BG    
000040 : 2020 2020 2020 2020 2020 2020 2020 0001 0000 0F00                 ......
000050 : 0000 0200 0000 0003 0FE2 0010 003F 89E0 003E 0100   ............?...>...
000060 : 89E0 003E 0000 0407 0003 0078 0078 0078 0078 0000   ..>.......x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000080 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000090 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 3036   ..................60
000130 : 3032 3031 6238 0000 0000 0000 0000 0000 0000 0000   20108b..............
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000160 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000   ....................
000250 : 0000 0000 0000 0000 0000 0000                       ............

Magnetic media drive
Drive supports LBA addressing
Physical drive is IDEFS 2
LBA Size    =512
Size in LBA =&0003E89E0
D_Removable%=0

add_partitions_FileCore
=======================
ADFS discop(0,1,&6,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000006,..,&200

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 13 0B 00 02 01 86 20 00 01 A1 FB 02   .?........ .....
&000010 : 00 60 FF BA 00 00 00 00 00 00 00 00 00 00 00 00   .`..............
&000020 : 00 00 00 00 03 00 00 00 00 01 07 00 01 00 00 00   ................
&000030 : 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 6D   ...............m

Full DiscRec is in Zone 963 at LBA &EED700
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

ADFS discop(0,1,&EED700,&0,..,&40)
  ADFS_SectorDiscOp,,1,&80EED700,..,&40

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 1F 0C 82 FF 09 3F 10 00 13 0B 00 02 01 86 20 00   .....?........ .
&000010 : 01 A1 FB 02 00 60 FF BA E1 AD 31 36 47 42 20 20   .....`....16GB  
&000020 : 20 20 20 20 00 00 04 00 03 00 00 00 00 01 07 00       ............
&000030 : 01 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive ADFS::16GB
Matching FileCore disc found as ADFS::4
Free=&3A8874800
OS Size in LBA=&001DD7FB0

add_partitions_GPT
==================
ADFS 4 checking for GPT partition table

ADFS discop(0,1,&0,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000000,..,&200

Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000040 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000050 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000060 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000070 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000080 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000090 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000C0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000100 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000110 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000120 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000130 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000140 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000150 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000160 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000170 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000180 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000190 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 FF   ................
&0001C0 : FF FE AD FF FF FE 01 00 00 00 AF 7F DD 01 00 00   ................
&0001D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA   ..............U.


add_partitions_MBR
==================
ADFS 4 checking for MBR partition table
ADFS discop(0,1,&0,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000000,..,&200

Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000040 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000050 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000060 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000070 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000080 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000090 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000C0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0000F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000100 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000110 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000120 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000130 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000140 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000150 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000160 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000170 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000180 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000190 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 FF   ................
&0001C0 : FF FE AD FF FF FE 01 00 00 00 AF 7F DD 01 00 00   ................
&0001D0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001E0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&0001F0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA   ..............U.

MBR partition table found

Partition 0
-----------
Partition type=&AD
Start LBA     =&000000001
Size in LBA   =&001DD7FAF
ADFS discop(0,1,&7,&0,..,&200)
  ADFS_SectorDiscOp,,1,&80000007,..,&200

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 25 12 00 13 0B 00 02 00 86 20 00 01 A1 FB 02   .%........ .....
&000010 : 00 5E FF BA C8 AD 48 61 72 64 44 69 73 6B 31 0D   .^....HardDisk1.
&000020 : 00 00 00 00 03 00 00 00 00 01 07 00 01 00 00 00   ................
&000030 : 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 77   ...............w

Full DiscRec is in Zone 963 at LBA &EED700
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

ADFS discop(0,1,&EED701,&0,..,&40)
  ADFS_SectorDiscOp,,1,&80EED701,..,&40

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 18 18 80 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive ADFS::
  not found
Full-disc FileCore overlayed over MBR partitions

add_partitions_IDEFS
====================
 discop_Simtec(1,1,&6,&0,..,&200)
 discop_Simtec(1,1,&6,&0,..,&200)

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0A 00 00 01 0D 20 00 1B 02 00 00   .?........ .....
&000010 : 00 00 20 03 00 00 4F 6E 65 0D 00 00 00 00 00 00   .. ...One.......
&000020 : CD 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 42 CB 00 18   ............B...

                                              ^^ ^^ ^^
Non-ADFS partition found at cylinder &CB / LBA &31F50 type 2

 discop_Simtec(1,1,&31F50,&0,..,&200)
Address :        0        4        8        C
&000000 : 00000000 00000000 00000000 00000000   ................
&000010 : 00000000 00000000 00000000 00000000   ................
&000020 : 00000000 00000000 00000000 00000000   ................
&000030 : 00000000 00000000 00000000 00000000   ................
&000040 : 00000000 00000000 00000000 00000000   ................
&000050 : 00000000 00000000 00000000 00000000   ................
&000060 : 00000000 00000000 00000000 00000000   ................
&000070 : 00000000 00000000 00000000 00000000   ................
&000080 : 00000000 00000000 00000000 00000000   ................
&000090 : 00000000 00000000 00000000 00000000   ................
&0000A0 : 00000000 00000000 00000000 00000000   ................

Invalid RISC iX partition table

Full DiscRec is in Zone 6 at LBA &BAC0
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=10

 discop_Simtec(1,1,&BAC0,&0,..,&40)

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 45 08 82 FF 09 3F 10 00 0F 0A 00 00 01 0D 20 00   E....?........ .
&000010 : 1B 02 00 00 00 00 20 03 00 00 4F 6E 65 0D 00 00   ...... ...One...
&000020 : 00 00 00 00 CD 0F 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::One
Matching FileCore disc found as IDEFS::4
Free=&0031F8000
OS Size in LBA=&000019000
 discop_Simtec(1,1,&19006,&0,..,&200)
 discop_Simtec(1,1,&19006,&0,..,&200)

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0A 00 00 01 0D 20 00 1B 02 00 00   .?........ .....
&000010 : 00 A0 1E 03 00 00 54 77 6F 0D 00 00 00 00 00 00   ......Two.......
&000020 : CD 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 42 CB 00 CE   ............B...

Full DiscRec is in Zone 6 at LBA &BAC0
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=10

 discop_Simtec(1,1,&24AC0,&0,..,&40)

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 30 08 82 FF 09 3F 10 00 0F 0A 00 00 01 0D 20 00   0....?........ .
&000010 : 1B 02 00 00 00 A0 1E 03 00 00 54 77 6F 0D 00 00   ..........Two...
&000020 : 00 00 00 00 CD 0F 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::Two
Matching FileCore disc found as IDEFS::5
Free=&0031E2000
OS Size in LBA=&000018F50
 discop_Simtec(1,1,&31F56,&0,..,&200)

Unallocated block
-----------------
P_Start_LBA_Low%=&31F50
P_Start_LBA_High%=&0
P_Size_In_LBA_Low%=&3B6A90
P_Size_In_LBA_High%=&0

BASIC END=467EC
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

I gave this version a spin on my 'main' RiscPC, with Unipod - Simtec IDEFS with 32GB "HyperDisk" DOM.
And ... NADA? Nothing at all in the window.
Here's the debug.txt from that...

Code: Select all

PartMgr v0.90 10/11/22 DEBUG
OS Version=439
ADFS found
CDFS found
IDEFS found
BASIC END=45288

read_drives
===========

CDFS
----
CDFS::0 found

IDEFS
-----
IDEFS detected as Simtec v130
Potentially 4 physical drives
BASIC END=456C0
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

Looking better.
IanJeffray wrote: Thu Nov 10, 2022 The "(unmounted)" line is the only wrong/confusing bit I think... because it thinks there's a FileCore in a FileCore for ADFS?
That's exactly what's on the drive. A "full-disc" FileCore:

Code: Select all

ADFS discop(0,1,&6,&0,..,&200)
Full DiscRec is in Zone 963 at LBA &EED700
...with an MBR partition that's FileCore:

Code: Select all

MBR partition table found
Partition 0
-----------
Partition type=&AD
Start LBA     =&000000001
Size in LBA   =&001DD7FAF
ADFS discop(0,1,&7,&0,..,&200)
It's a quirk of the version of HForm used. Probably with good intentions, HForm now creates an MBR partition to cover the FileCore area. Unfortunately, it doesn't set the correct LBA; in your case its offset by 1 LBA. My code knows it's a FileCore partition but looked in the wrong LBA for the FileCore details (7 instead of 6) hence why it's showing as "(unmounted)" instead of "16GB"

I'll adjust the MBR handler so it shows FileCore partitions as "Reserved" if it doesn't find a matching FileCore drive.

For the Unipod can you see what the following does:

Code: Select all

SYS "IDEFS_Enumerate",-1 TO A%
PRINT ~A%
FOR Z%=&10000 TO &11000 STEP 4:!Z%=-1:NEXT
IF A%<>0 THEN SWI "IDEFS_Enquire",A%,&10000:*MEMORY B 10000+200
Post Reply