joncampbell123 / dosbox-x

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

Physical mounting folder or image as CD-ROM so Windows 95/98 can detect it #1422

Open ognjenmi opened 4 years ago

ognjenmi commented 4 years ago

I am running Windows 98 inside DOSBox-X. It would be good to be possible to mount image or folder "physically" so Windows can detect it when booted with boot command.

nckstwrt commented 4 years ago

Not sure what you mean by "physically", does putting this in your conf: imgmount d "Windows 98 Second Edition.iso" -t iso -ide 2m do what you want? (does for me at least :) - shows up fine in Win98)

joncampbell123 commented 4 years ago

Current support can provide a CD-ROM drive from an ISO image if mounted before booting.

Providing a folder as a CD-ROM drive is more challenging, depending on whether the contents are "frozen" at boot time or if you expect it to update from the folder while Windows 98 is running.

mgrotke commented 3 years ago

Related to this issue. https://github.com/joncampbell123/dosbox-x/issues/316

Both commands (MOUNT and IMGMOUNT) work in the fake version of DOS emulated by DOSBox, but once a real OS boots (i.e. Windows 95/98), the MOUNT command no longer works.

I wanted to mount ~/Pictures/ as drive d or e in Windows 95 so that I could edit pictures using the old school MS Paint. Looks like my use case will not work.

crazii commented 3 years ago

Current support can provide a CD-ROM drive from an ISO image if mounted before booting.

Providing a folder as a CD-ROM drive is more challenging, depending on whether the contents are "frozen" at boot time or if you expect it to update from the folder while Windows 98 is running.

Mounting a folder for CD-ROM is not a good way concerning the CDROM capacity limit (maybe none). but Change ISO image after booting is mostly useful, and works like a real CD-ROM.

BTW, mounting/unmounting folder could be done via USB removable storage with a certain capacity(probably a driver needed for Win9x), My suggestion is that just forget about the update part. the DOS mode mounting have the same problem: del one file in host and execute DIR then it's gone in the box too; you can even "stay" in a folder that is deleted in the host, and even further you can try to write to the deleted folder (i.e. dir >> 123.txt) but the box will die.. it's just too uncommon and we can leave it be. Same behavior is acceptable in Win9x, the only different is to use "Refresh" command (F5) to update the mounted content.

Torinde commented 2 years ago

the DOS mode mounting have the same problem: del one file in host and execute DIR then it's gone in the box too; you can even "stay" in a folder that is deleted in the host, and even further you can try to write to the deleted folder (i.e. dir >> 123.txt) but the box will die.. it's just too uncommon and we can leave it be.

In 0.84.1

So, it seems the above behavior was corrected properly.

But:

If you try copying while in a subfolder of a folder you delete on host - you get an error message and prompt goes to the containing place that's still not deleted: image