Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harddisk corruption when expanding to 32M #69

Open
sjaaq opened this issue Feb 1, 2021 · 8 comments
Open

Harddisk corruption when expanding to 32M #69

sjaaq opened this issue Feb 1, 2021 · 8 comments

Comments

@sjaaq
Copy link

sjaaq commented Feb 1, 2021

I am working on a MSX application that is running in DOS2.xx from a HD image. I have put all the files in a zip and are using the following parameters to run the image, ie:

https://webmsx.org/?M=MSX2E&Z80_CLOCK_MODE=2&P=OPL4&MOUSE_MODE=1&HARDDISK_FILES_URL=https://host.com/download/disk.zip&MOBILE_MODE=0

This worked until the image expanded from 16M to 32M. Now it won't boot DOS anymore but goes straight to BASIC. If I do a FILES command in basic it throws an "Bad drive name" error.
image

The 32M size is reported when webmsx starts, the 16M size I was able to verify using the CALL FDISK command. CALL FDISK with a 32M partition actually freezes the interface:
image

The strange thing is, the image still had 4M free, so I am not sure why it changed to a 32M image. I am also building a disk image file to use for OpenMSX, which still reports 4MB free. If I use the (16M) image in webmsx, it does boot, but fails at the command2.com (assumed):

image

I guess those images are not compatible.

@sjaaq
Copy link
Author

sjaaq commented Feb 4, 2021

I have found a workaround. I have created a new HD images from WebMSX (32M). This image is mountable in linux. So I just insert the files in the WebMSX image and use that one with the HARDDISK_URL parameter.

@ppeccin
Copy link
Owner

ppeccin commented Feb 4, 2021 via email

@sjaaq
Copy link
Author

sjaaq commented Feb 4, 2021

Hello Paulo,

In the opening post, I was using HARDDISK_FILES_URL which pointed to a zip file. That one broke when it expanded from 16 to 32M.

The application am I working on has been in development in the past year and I was able to run it on multiple devices in that time with the HARDDISK_FILES_URL parameter.

I can only assume it is some kind of bug in the import function, as you described.

Best regards,
Maarten

@ppeccin
Copy link
Owner

ppeccin commented Feb 4, 2021 via email

@sjaaq
Copy link
Author

sjaaq commented Feb 4, 2021

Hello Paulo,

Yes, I am sure about the parameter used. I did some testing:

  • When creating, for instance, a zip file with 22M of MOD files, the DOS2 files and the NMP.COM mod player, the image is correct.
  • When creating a zip file with my "application" it does not. This is because the "application" uses a 12M data file currently. I think there is something about large files that breaks the disk image.

I will send you a link to the zip file containing a 12M dat file and the mod player. This results in an non bootable image. I'm not sure how to send you anything in a private message. Does github support that?

Here is the link:
https://webmsx.org/?M=MSX2E&Z80_CLOCK_MODE=2&P=OPL4&MOUSE_MODE=1&HARDDISK_FILES_URL=https://nopmsx.nl/download/temp/webmsx_issue69.zip&MOBILE_MODE=0

Maarten

@ppeccin
Copy link
Owner

ppeccin commented Feb 8, 2021 via email

@sjaaq
Copy link
Author

sjaaq commented Feb 8, 2021

Not sure if you read my previous post correctly but I cannot send you private links, I do not have any other way to contact you. So i have posted the link in public, see above!

@ppeccin
Copy link
Owner

ppeccin commented Feb 8, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants