Jump to content
IGNORED

how to create a valid MyDOS partition?


Beetle

Recommended Posts

Hi Atarians,

how would i need to configure a partition on CF card (Ultimate 1MB with SIDE2 or Incognito) to be able to use it with MyDOS and not SpartaDOS?

 

I made a 65535 sector partition with 256byte sectors with SDX FDISK, set it to D7: and configured U1MB to SDX disabled, boot drive D1:

 

The Machine boots MyDOS from D1 (SIO2IDE, 16MB ATR) and i configured D7: as hi density drive with 65535 sectors, then saved DOS files to D1 before cold boot.

Now D7 is shown as "7H" in the info line of Mydos menu, as expected. Directory of D7 is full of garbled characters and graphic symbols. Initializing of Drive 7 fails with Error 136. 

 

Does someone have a hint for me? Otherwise i'd need to try mounting the 16MB ATR through the SIDE2 Loader and cold boot, but i can't save that config in a profile, i guess.

 

I also tried to initialize the partition D7: with the SDX format tool, but i could not set the drive Mode from Sparta to MyDOS...

 

Greetings and thanks in advance,

Beetle

Link to comment
Share on other sites

Hi I think I have run into the same problem... I don't want SDX for everything..

The trick I found is: do Fdisk the CL/SD card and do not format the partition with SDX.

Boot up Mydos and "I" the partition with it but add a "/n" before the partition as in ( I /n d7: ) Don't for get to set up the density and size with the "O" and the "P" command first.

I worked fro me.. I now have a CL with SDX and Mydos partitions... Also when you "Fdisk" Mydos only likes 256 not 512 ... SDX can do both..

By the way SDX will read both dir's but Mydos only reads Mydos dir's..

 

Hope this helps..

 

Peter

  • Like 2
Link to comment
Share on other sites

For clarity, this is because without '/n', MYDOS attempts to issue a low-level format command on the volume, and since it's impossible to low-level format (by laying down tracks) a HDD partition, you get an error.

 

ATR emulation is different, BTW: it implements a 'dummy' format command (which returns a bogus bad sector list, since these are essentially emulated floppies), so you don't need the switch with disk images.

Link to comment
Share on other sites

  • 4 months later...
  • 8 months later...
On 9/21/2022 at 7:02 PM, Peter Rabitt said:

Don't for get to set up the density and size with the "O" and the "P" command first.

Can anybody help me with the setup?

I have IDE 2.0 Plus with a CF card.

Like Beetle, I made a 65535 sector partition with 256BPS with SDX FDISK and assigned it as D3.

 

I loaded MyDos from SIO2SD (D1).

Shall I issue "O" command first?

What answers shall I give? Drive size (in sectors): 65535 ?

What about command "P" and "I" ?

 

 

Link to comment
Share on other sites

1) Option P:
Drive, density: 3,D
for drive 3 double density (or 4,D)

 

2) Option O:
- Drive number or Return: 3 (or 4; Return configures DOS)
- Remove drive: N
- Is drive configurable: Y
- High capacity drive: Y
- Number of sectors: 65535

 

3) Option I:
format drive: /N D3: (or /N D4:)
Press A for enhanced density,
Y to format drive 3: Y

 

The order of O and P can be exchanged, only I must be last.

Hope this works for you.

Link to comment
Share on other sites

Thanks @CharlieChaplin

 

I think the order for option 'I' should be different:

D3: /N

 

However after confirming disk initialization with "Y" I immediately get an error code 139.

I just wondered - is there anything specific about IDE 2.0 Plus Interface - any settings that have to be changed for MyDos ?

Can I use FDISK from @flashjazzcat or do I need to use the toolkit from @drac030 for creating MyDos compatible partitions ?

 

[EDIT]

I could successfully format this partition (65535 sectors, 256 BPS) with SDX format command.

After deactivating SDX with IDE 2.0 switch and booting ATARI from MyDOS (from D1),

MyDos shows:

000 FREE SECTORS

when I try to display directory content of D3:

Edited by TheMontezuma
Link to comment
Share on other sites

SDX format command can only create SpartaDOS file systems for HDD partitions. It can create a MyDOS disk, but in a very limited way: floppies only, and SD and DD only (90k and 180k).

 

On my dsk I have no partitions which can be formatted in MyDOS format (all 512 bytes per sector, so Sparta only). I remember though that I was several times able to boot MyDOS from an ATR image (on my IDE+, that is), then format another image using MyDOS menu. The command sequence was: O first, then I, and disk number with /N. I do not remember if the space was needed.

 

I tried to do that with an emulated IDE+ under Altirra, but when I wanted to add a 256-byte-per-sector partition there, the FDISK (v.4.85) unexpectedly has deleted the entire partition table. So I will now have to re-reate that somehow before proceeding...

Link to comment
Share on other sites

I did one more test - I created a new disk with RespeQt (65535 sectors, 256 BPS) and I was able to format it using MyDos.

It looks like that it is a problem with APT partition or with IDE...

 

Long time ago (with old BIOS and with a partition created with FDISK2 from KMK Toolkit) I was able to create 256 BPS partitions, which could be formatted from MyDos.

 

[EDIT]

FYI:

I use 1GB CF card which I initialized with FDISK (4.73).

I have no FAT - the whole space is allocated for APT.

I created only one partition (65536 sectors, 256 BPS, D3, A--M flags).

As mentioned before, this partition could be formatted by SDX.

Edited by TheMontezuma
Link to comment
Share on other sites

I have created a new VHD image under the emulator, used FDISK to create one partition on it, 65535 sectors, 256 bytes per sector. Booted MyDOS 4.55 from an ATR.

 

Choose "O" in the menu. "Drive number or Return?" 3. "Remove drive?" N. "Is drive configurable?" Y. "High capacity drive?" Y. "Drive size (in sectors)?" 65535.

 

Choose "I":

 

image.thumb.png.c20dd0606840e64f1a510e99abc7f8c4.png

Choose "3":

 

image.thumb.png.2af96059d63883562ea02a6f09ca5ddd.png

Success, no problems whatsoever.

  • Like 4
Link to comment
Share on other sites

14 hours ago, drac030 said:

I have created a new VHD image under the emulator, used FDISK to create one partition on it, 65535 sectors, 256 bytes per sector. Booted MyDOS 4.55 from an ATR.

 

Choose "O" in the menu. "Drive number or Return?" 3. "Remove drive?" N. "Is drive configurable?" Y. "High capacity drive?" Y. "Drive size (in sectors)?" 65535.

 

Choose "I":

 

image.thumb.png.c20dd0606840e64f1a510e99abc7f8c4.png

Choose "3":

 

image.thumb.png.2af96059d63883562ea02a6f09ca5ddd.png

Success, no problems whatsoever.

Thank you for testing.

At least now I know how it should work. However emulation is not the real hardware and my IDE 2 still does not work.

In the last step - initialization ('I') I get error code 139.

 

I tried to downgrade the IDE 2 bios, but I stopped at ver 1.2, since the interface did not recoginze the existing SDX partition (created with FJC FDISK).

Then I updated the bios to the latest 1.9 and SDX partitions work well again.

 

@drac030

I wondered if you could test it on the real interface? Maybe with another CF card, not to destroy your precious data :)

I think I have the revision C (I'm not sure how to tell):

 

 

 

 

 

 

 

 

myide2.jpg

Edited by TheMontezuma
Link to comment
Share on other sites

13 hours ago, CharlieChaplin said:

Another option is to use FMTDIR, the DOS Dir formatter by CSS.

Never used it with IDE+2, but it worked alright with Blackbox and msc-IDE.

 

 

MYDOSUS.zip 80.47 kB · 3 downloads

Thanks a lot, @CharlieChaplin

The tool formatted the partition without any issues.

However it shows the number of sectors found as 65534 (although I entered 65535 in FDISK).

I created more partitions and still formatting via MyDOS was failing (regardles if I entered 65534 or 65535 sectors) and was successful with FMTDIR.

 

I wrote DOS files on the hdd and could boot ATARI from it. I also copied some other stuff, like NUMEN demo and enjoyed how quickly it loads :)

 

 

 

 

Link to comment
Share on other sites

Good to hear, that at least this tool works !

(Afaik, just like SIO2SD does not work with every SD-card, the IDE+2 does not work with every CF card.)

No clue why there are only 65534 sectors instead of 65535 sectors - unused sector 720 maybe ...  🤣

 

 

In the 90s I had a msc-IDE interface and think I had similar problems with formatting with MyDOS, so I simply used FmtDir, given to me by a friend who had a Blackbox. Also had a HDI interface for 1.44MB floppies in my collection and had difficulties formatting with 1.44MB, so I used the tools Percom.COM by Carsten Strotmann (Phoenix Softcrew) to format the HD disk and then FmtDir to create a valid directory. (There are newer versions of Percom.COM now by E.Puetz.)

 

Link to comment
Share on other sites

What board are you using to provide 90-degree use of the IDE+2?  Is there a memory expansion in there, and if so, did you try without the 90-degree adapter?  Probably a silly question, but did you clean the ECI contacts?  I've had trouble with that before.  And you might run drac030's RW-CRC to test the validity of the connection and card.  I've run into the "off by one" issue with several of Puff's software, most notably VTOCFIX.  I've always found it to be harmless.  You also might try drac030's original FDISK.COM.  Although IIRC, you can't use it with the more recent bios versions.  I think I'm still on 1.4, but have my Black Box hooked up ATM.  

Link to comment
Share on other sites

38 minutes ago, TheMontezuma said:

In the last step - initialization ('I') I get error code 139.

Then there is probably something wrong with your copy of MyDOS. At least I would guess so. 139 is "unrecognized SIO command", and I saw under Altirra's debugger that MyDOS sends these commands: S, N, O, P. Out of these, "O" is not supported (it cannot be, because HDD partitions are not resizable), but MyDOS 4.55 ignores the status in this one case and proceeds. I think I remember MyDOS 4.50 behaving the same way.

 

Downgrading or upgrading the BIOS will not do anything in this respect, because this is not a bug, it has always worked so, even in the days of KMK/JŻ IDE.

 

38 minutes ago, TheMontezuma said:

I wondered if you could test it on the real interface? Maybe with another CF card, not to destroy your precious data

I do not have a CF card in my real interface, I use spinning-platter HDD. Also, having experienced adventures yesterday with adding one more partition under FDISK 4.85, I am of course quite a bit reluctant to do the same on my HDD.

 

Also, there is not a real point: Altirra emulation is rather good, it usually behaves 100% realistically (maybe except for the I/O speed, but that is a nuance).

32 minutes ago, TheMontezuma said:

However it shows the number of sectors found as 65534 (although I entered 65535 in FDISK).

BTW. I think "65535" in FDISK may mean 65535 "real" sectors, 512-bytes each. To setup a 256-byte partition it is probably enough to enter 32767, which indeed translates to 65534/256. I am not sure about it, though.

Edited by drac030
typos
  • Like 1
Link to comment
Share on other sites

48 minutes ago, drac030 said:

I think "65535" in FDISK may mean 65535 "real" sectors, 512-bytes each. To setup a 256-byte partition it is probably enough to enter 32767, which indeed translates to 65534/256.

Multiple logical sectors are not packed into physical sectors, so 65535 is indeed the correct number regardless of the sector size (65535 sectors at 256 bytes each will result in a 16MB partition, albeit 256 bytes short of that since there's no sector 0).

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...