Partition Manager feedback

General development discussion not covered by a specific forum
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Mon Nov 14, 2022 I went back to just the two 50MB partitions, with the second set as no-automount.
IDEFS now only sees two drives, and only automounts one. All good.
But PartMgr... it sees all the old ones still. Doooh. :( I expected all the rest of the space to be just "unallocated" - that's how it appears in IDETool.
And actually it's worse than that, because it was actually 'AA', 'BB', 'CC', 'DD', 'EE', 'FF' just before I did this, so these partitions you've come up with truly are phantoms! :(

Image
Do you need to configure the number of partitions with Simtec? I ask because HCCS uses *Configure IDEFSDiscs to track the number of partitions across all drives, so its perfectly plausible with HCCS to have more partitions on the drive than HCCS itself sees.
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Sat Jan 21, 2023 ZIDEFS is complete except for writing the partition table - I'll see if I have enough information to code it.
That's one thing that's a full indepdendent bit of BASIC - download from John's webpage if you've not already seen it.
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Sat Jan 21, 2023 Do you need to configure the number of partitions with Simtec?
No. The Simtec driver has no configurable options.
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Sat Jan 21, 2023 ZIDEFS - IanS's 16bit podules.
Try the attached. I've only tested with ZIDEFS v1.10 under Arculator, so use with caution.

It performs the *Configure ZIDEFSDrives, but you'll still need to power-cycle before ZIDEFS sees the changes.
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Sat Jan 21, 2023 It performs the *Configure ZIDEFSDrives, but you'll still need to power-cycle before ZIDEFS sees the changes.
It doesn't *configure ZIDEFSdiscs though ;) Interesting - never expected it to configure anything. Should set the cache too. Maybe.

I don't think I've tried PartMan in a machine with SCSI before. But with this PowerTec SCSI 3 card, it's got very confused. Definitely wrong, as there are no actual SCSIFS drives at all.
SCSInuts.png
SCSInuts.png (14.17 KiB) Viewed 18957 times
And what on earth has happened to the ADFS drive there? It's the 8GB DOM that I mentioned on StarDot ... why's PartMan think it's got an NTFS/exFAT partition inside the Filecore one?!

Might be nice if PartMan offered 495MB as a default drive size - 512MB is never a good choice for any drive with any 'reasonable' number of files on it (as the increase of LFAU outweighs the extra few MB in partition size)

I don't think ZIDEFS should be restricted to 512MB anyway - should it? On a RISC OS 3.1 machine, sure, but I'm testing on a RiscPC with RO Select (4.39) so expected to be offered the whole DOM as one partition. But I am offered E+ and 512byte LFAU ! Will need to check that I can create a ZIDEFS partition bigger than 512MB with HForm - can't see why not.

Anyway, it fails. "Failed to write the partition table".... "Write failed ZIDEFS 0 00000002" an then the 00000002 changes to lots of random numbers if I keep doing a cancel. Then I get a progress bar window with a GAP in the bar !
IMG_E7421.JPG
IMG_E7421.JPG (109.57 KiB) Viewed 18957 times
If I pick a 2048LFAU, I get "No such function/procedure in "Wimp Library" at line 700" and it crashes.

Here's a dump trying a 495MB partition with 1024LFAU which is what I usually pick with HForm.
Attachments
debug.zip
(3.82 KiB) Downloaded 4960 times
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

IanJeffray wrote: Fri Jan 27, 2023 I don't think ZIDEFS should be restricted to 512MB anyway - should it?
No. The ZIDEFS Partition program allows me to make a single partition for the whole DOM.
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

I ran this with an ARCIN32/Blitz card in the machine today (IDEFS 3.28). Instant machine hard lock-up!
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

Where to start! In order:
  1. "It doesn't *configure ZIDEFSdiscs though"
    It should have altered it, I'll double-check the code
  2. ADFS reporting an "NTFS or exFAT" partition
    The format utility used, is using the wrong partition type for the area covering FileCore:

    Code: Select all

    Partition 0
    -----------
    Partition type=&7    <----- NTFS or exFAT
    Start LBA     =&000000800
    Size in LBA   =&000EEF000
  3. SCSIFS reporting rogue drives
    Could you see what the following does:

    Code: Select all

    !&10000=-1
    SYS "SCSI_Initialise",2,0,&10000 TO A%
    PRINT ~A%, !&10000
  4. Default FileCore size
    Might be nice if PartMan offered 495MB as a default drive size - 512MB is never a good choice for any drive with any 'reasonable' number of files on it (as the increase of LFAU outweighs the extra few MB in partition size)
    Yes, I can set the default to just below where the LFAU increases to 2 sectors
  5. "I don't think ZIDEFS should be restricted to 512MB anyway"
    The only restriction on max size I currently have in place is 512MB for FileCore versions below 2.51 - this may need altering. What version is your FileCore Module?
  6. "Write failed ZIDEFS 0 00000002"
    ZIDEFS will attempt to use FileCore SWI in order of their "bitness". Could you confirm what version the ZIDEFS Module is and see which is the first SWI to succeed in the order below:

    Code: Select all

    SYS "OS_SWINumberFromString",,"ZIDEFS_DiscOp64"
    SYS "OS_SWINumberFromString",,"ZIDEFS_SectorDiscOp"
    SYS "OS_SWINumberFromString",,"ZIDEFS_SectorOp"
    SYS "OS_SWINumberFromString",,"ZIDEFS_DiscOp"
    
  7. Progress bar window with a GAP in the bar
    Yes, I'm aware of this issue but can't figure out why. Something is causing it when refreshing the drives - it doesn't occur when first loaded
  8. If I pick a 2048 LFAU, I get "No such function/procedure in "Wimp Library" at line 700" and it crashes
    It will always call FNwrite_partition_table_ZIDEFS regardless of the LFAU size. As I couldn't reproduce this, I wonder if there's memory corruption occurring. BASIC can corrupt memory if an error occurs - it's a long standing bug when LOCAL is used that's never been fixed. If you had an error prompt prior to trying LFAU 2048, it might have caused memory corruption
  9. ARCIN32/Blitz card... Instant machine hard lock-up!
    It's possible it didn't detect it as an APDL Podule, or I need to change the way it scans drives to work around an issue in IDEFS. Could you grab a debug log please, so I can see what caused the lock-up
JonAbbott
Posts: 3311
Joined: Thu Apr 11, 2013
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Fri Jan 27, 2023 6. "Write failed ZIDEFS 0 00000002"
Ignore point 6 above, I've rewritten ZIDEFS using low-level IDE commands to read/write to the drive - see if it behaves any better.
1. "It doesn't *configure ZIDEFSdiscs though"
It configures ZIDEFSDrives to match the number of partitions across all ZIDEFS discs. It doesn't touch ZIDEFSDiscs.
Would you like it to *Configure ZIDEFSDiscs at the time it scans the physical drives, or when writing the partition table?
3. SCSIFS reporting rogue drives
I'd still like to see what response you get from that check, but I have added a check for the drive size in the meantime.
4. Default FileCore size
I've changed the default to 495MB for FileCore versions below 2.51
User avatar
IanJeffray
Posts: 165
Joined: Mon Jan 18, 2021

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Sun Jan 29, 2023 [*]"I don't think ZIDEFS should be restricted to 512MB anyway"
The only restriction on max size I currently have in place is 512MB for FileCore versions below 2.51 - this may need altering. What version is your FileCore Module?
3.21 (Select 3i4 - RISC OS 4.39).
JonAbbott wrote: Sun Jan 29, 2023 [*]ARCIN32/Blitz card... Instant machine hard lock-up!
It's possible it didn't detect it as an APDL Podule, or I need to change the way it scans drives to work around an issue in IDEFS. Could you grab a debug log please, so I can see what caused the lock-up
[/list]
Tried again today (by accident). No lock up. But no IDEFS in the window either! Will get debug log and your other requests later - will try 0.92.

FWIW, I think everything I've got with an ADFS IDE drive, reports a <unknown> FAT or exFAT partition inside it. You may be convinced you're showing ground truth, but it's not "useful" truth, IMO.
Post Reply