joncampbell123 / dosbox-x

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

How do I mount a image file as a CD-ROM for Windows 98? #4082

Open BridgeHeadland opened 1 year ago

BridgeHeadland commented 1 year ago

Question

imgmount c -t hdd xxxxxxxx.img imgmount d -t hdd yyyyyyyy.img imgmount e -t hdd zzzzzzzz.img boot -L c:

This is my auto executable command I use to run Windows 98 in DOSBox. In my case, I can also open the same CD-ROM drive as in my main operating system (Windows 10), but I want to remount one of my image file to a virtual CD-ROM drive, to avoid having to use CDs all the time. I know I have to rewrite the command line imgmount 'YYYYYYYY' or 'ZZZZZZZZ' so that the image file behaves like a CD-ROM, I just don't know how.

Have you checked that no similar question(s) exist?

Code of Conduct & Contributing Guidelines

rderooy commented 1 year ago

You cannot mount a folder as a CD-ROM for use with a guest OS, such as Win98. With a guest OS, you can only use CD-ROM images (e.g., iso, cue), which you must mount BEFORE booting the guest OS.

Torinde commented 1 year ago

Per the wiki: you can try with imgmount D: yyyyyyyy.img -t cdrom

rderooy commented 1 year ago

Even the -t cdrom option is not needed, if the file extension is a recognised extension like .iso or .cue. And for the drive to mount it on, you can even get away with just the letter, without : suffix. e.g.,

imgmount d game.iso
Torinde commented 1 year ago

I think what he wants is for IMG file to be mounted as CD.

BridgeHeadland commented 1 year ago

@Torinde Sorry, but when I say image files, I also mean bin/cue and iso files. I don't know which category to put IMG, BUN/CUE and ISO in, that's why I call them all image files. :)

To me it doesn't matter if it's a folder, or an IMG, BIN/CUE and ISO, which behaves like a virtual CD-ROM drive, only the Windows 98 operating system thinks that a specific CD is in the actual computer, without the CD actually being inside. I tried the command lines, both with and without "-t cdrom" none of them worked, and I tried mounting both an IMG file and an ISO file.

rderooy commented 1 year ago

Did you check the wiki? In particular the known limiations part? https://dosbox-x.com/wiki/Guide%3AInstalling-Windows-98#_outstanding_issues

BridgeHeadland commented 1 year ago

@rderooy No, I didn't, but I see now that it's impossible for now. It would be much easier if one could run Windows 95 and later, just not as guest OSes.

The reason I want to mount an IMG, BIN/CUE or an ISO, as a CD-ROM is because I believe that the software will have a lower risk of crashing, if Windows 98SE thinks there is a real CD in the computer, which is a virtual computer, instead of the files from the CDs being in an otherwise empty drive D, for example. To be honest, I use No CD fix files for the game, which is the likely reason why the game crashes during the minigames and activities, in the game, which use load times, probably because there is supposed to be a CD in the computer. I am uploading the No CD fix files here. I'm hoping someone here can figure out what could be causing the game to crash. The reason for using the No CD fix is ​​because the game won't start without them, for some reason. You can, for example, open the files with a HEX editor. FGP_GOLD No CD fix.zip

rderooy commented 1 year ago

@BridgeHeadland I fail to see what your rant has to do with my comment. You just need to add a flag to the imgmount command as documented there.

BridgeHeadland commented 1 year ago

@rderooy I must have read it wrong, sorry.

Torinde commented 1 year ago

@rderooy, the Wiki guides for 98 and ME mention 95 in their "Known limitations" sections: image

Should those 95 references be changed to 98/ME?

rderooy commented 1 year ago

Yes, I had already updated it in the draft version for the next release

BridgeHeadland commented 1 year ago

Yesterday I uploaded the No CD fix files for the gold edition of the game with the Norwegian name PC-spillet om Flåklypa Grand Prix, which I hoped some experts could examine with a HEX editor, because the game crashed on the activities and minigames where it is used a lot loading time, unless there is no sound in Windows 98. I think I should remind you of that. I am now uploading the original executable so you can compare it with the No CD fix executable. FGP.ZIP

github-fanuser commented 1 year ago

I'm not sure what you are wanting to accomplish, There is a program called Virtual Clone Disk. I believe v5.4.5 supports Win98. Also, There is a program called ImDisk, I believe there is an older version that will run on Windows 98. Hope this helps. Good luck!