joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.81k stars 383 forks source link

Partitioning hdd image and other problems with win 98 #2608

Open nioptry opened 3 years ago

nioptry commented 3 years ago

Hello everybody! Guys, there are two questions related to Win98 to which I could not find an answer. I would be grateful if someone can help me!

  1. I have an hdd image (hdd98.img), how can I partition it? When installing the OS, I can only select the whole hdd and only one partition will be created - C:. Is there anything I can do about it?

  2. From the host machine, I decided to transfer the drivers for the emulated hardware. In DOS mode, I mounted hdd98.img and transferred the driver folder to it. But I found that in win 98 only a few files are visible in the folder (there should be 32 of them). I decided to enable the display of hidden files feature, but it didn't help. The folder properties contain the correct information (the number of files is 32), but only a few are visible. And these few refer to .dll files. I decided to archive the folder on the host machine. I transferred it to the emulated win98 and proceeded to unzipping ... Then I received an error (The folder name or path to the file is not correct). This error occurs when trying to unzip files of type .dll. I did all this in a third-party folder along the path C: \ Drivers. NOT in \ Windows or other system folders!

Sorry for my English!

rderooy commented 3 years ago

Hello @nioptry

On the wiki there are guides as to how to use disk images, and installing Win98 that I recommend. https://dosbox-x.com/wiki/Guide%3AManaging-image-files-in-DOSBox%E2%80%90X https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98

If you created a disk image with imgmake, it will automatically have a single primary partition using the entire "disk". It will also be formatted with an appropriate filesystem type (fat16 or 32), depending on the size of the disk image. There is no need to fdisk/format the disk image in Win98. If you want to have multiple drive letters, it is recommended to use a second disk image, as that is easier to maintain and better supported than multiple partitions in a single disk image.

As to issue 2, I'm a bit at a loss as I don't really understand the issue. Can you give a listing (or screenshot) of what files are in the folder from the host machine, and what is seen from Win98 (ideally both from the Win98 Explorer and a Win98 DOS prompt)?

nioptry commented 3 years ago

If you want to have multiple drive letters, it is recommended to use a second disk image, as that is easier to maintain and better supported than multiple partitions in a single disk image.

Thank you! I read the Wiki before installing and working with DOS and Win. I'll take a screenshot and submit. Please tell me how can I connect the second hdd image? I tried to register it in win98.config in the autoexec section (imgmount d / path to img) but when win98 starts it sees only hdd98.img (system). Does it need to be connected at the stage of installing win98 or ...?

rderooy commented 3 years ago

First create a 2nd HDD image with something like:

imgmake hdd2.img -size 200

And then simply add it in the [autoexec] section of your dosbox-x config file as such:

imgmount d hdd2.img

You can optionally specify to mount it as primary/secondary IDE device, but this is normally not needed.

imgmount c hdd.img -ide 1m
imgmount d hdd2.img -ide 1s

You can do this after you already installed win98, you do not need to reinstall.