Discussion:
MAME with more than one HDD partition
(too old to reply)
Bobbi Webber-Manners
2019-09-22 00:40:41 UTC
Permalink
Is there any way to connect multiple HDD partitions to MAME? I usually start MAME like this:

mame -w apple2ee -sl6 diskii -sl7 cffa202 -hard1 ../Disks/HDD/hd.chd

But trying to add another partition using -hard2 does not work.

Do I need a raw CFFA2 disk format with a partition table? If so, how do I create one? I have MicroDrive/Turbo in my real Apple II so I have raw disk images from that, but the partition table is probably completely different.
m***@gmail.com
2019-09-25 20:05:54 UTC
Permalink
CFFA2 doesn't have a partition table, it's just the first 32 MB of the drive is partition 1, the second 32 MB is partition 2, etc, etc.
Bobbi Webber-Manners
2019-09-25 22:31:39 UTC
Permalink
Post by m***@gmail.com
CFFA2 doesn't have a partition table, it's just the first 32 MB of the drive is partition 1, the second 32 MB is partition 2, etc, etc.
Ah cool. In that case I just need to rip the first 128KB off my CF card image then ...
Peter Ferrie
2019-09-26 16:59:40 UTC
Permalink
Though it seems to be limited to only two partitions.
Maybe it's just me, but I haven't managed to get partitions 3 and 4 accessible in ProDOS 2.4, for example.
Bobbi Webber-Manners
2019-09-26 18:48:56 UTC
Permalink
Post by Peter Ferrie
Though it seems to be limited to only two partitions.
Maybe it's just me, but I haven't managed to get partitions 3 and 4 accessible in ProDOS 2.4, for example.
I didn't have any luck just concatenating the .PO files for the first two partitions. I can see s7d1 but not s7d2. I didn't spend much time trying to get this to work though, since I can live without it!
Peter Ferrie
2019-09-26 22:49:16 UTC
Permalink
The .PO files need to be exactly 32Mb large (i.e. 0x2000000 bytes, not 0x1FFFE00 bytes which is likely what they were).
Bobbi Webber-Manners
2019-09-26 22:53:19 UTC
Permalink
Post by Peter Ferrie
The .PO files need to be exactly 32Mb large (i.e. 0x2000000 bytes, not 0x1FFFE00 bytes which is likely what they were).
Let me see ... 33553920 bytes, which is 0x1FFFE00 - you are right!

I will pad them out with some zeroes and try again.
Bobbi Webber-Manners
2019-09-26 22:56:33 UTC
Permalink
Post by Bobbi Webber-Manners
Post by Peter Ferrie
The .PO files need to be exactly 32Mb large (i.e. 0x2000000 bytes, not 0x1FFFE00 bytes which is likely what they were).
Let me see ... 33553920 bytes, which is 0x1FFFE00 - you are right!
I will pad them out with some zeroes and try again.
Yep, that did the trick!

Loading...