dosbox-pure icon indicating copy to clipboard operation
dosbox-pure copied to clipboard

Any way to mount win9x.img and a folder together ?

Open crashGG opened this issue 3 years ago • 3 comments
trafficstars

I see that the latest 0.97 already supports mounting a directory as a FAT disk, so now I want to mount win98.img, boot as the C disk, and then mount a directory "game" as the D disk. How to do this?

my dosbox.conf:

[autoexec] mount d game imgmount c win98.img -t hdd -size 512,63,16,1011 boot -l c

after the win98 guest boot,I can't find the D drive in the explorer.How to do this?

crashGG avatar Jul 15 '22 06:07 crashGG

Currently the only way to get a mounted directory or ZIP file when running an installed operating system via the built-in start menu. Doing mount/imgmount/boot in the command line or via dosbox.conf doesn't do anything that original DOSBox wouldn't do, so it also doesn't set up the FAT disk emulation of mounted directories. But I guess that could be added. Let's say if in DOS, D: is a CDROM drive it would add the IDE CDROM with that image or if D: is something else like a mounted directory it would set it up as a FAT disk. The only problem is, where would modifications to the D: FAT disk be stored. It's not possible to write them back to the real directory that was mounted from so the only way this is possible with the start menu is by storing all changes to the FAT file system into a separate file that just grows when sectors on the emulated hard drive are modified. It could discard any changes but I guess that would be insufficient.

schellingb avatar Jul 16 '22 13:07 schellingb

Can the data written back by virtual FAT be migrated from memory to a specific RAW file? This bypasses the problem that the BOOT command generates an image while being separated from the host file system. Furthermore, this write-back RAW also supports the boot image, which can provide the function of separating the read and write of the boot image, so that the boot image can be started many times and the original vanilla state can be maintained?

crashGG avatar Jul 16 '22 14:07 crashGG

You can do what you want with a external copy-on-write FUSE filesystem, but it's both kind of slow and linux only. As well as a pain to configure. Also the slight problem that when something is first written to file, the whole disc gets copied, not just the written bytes (afaict). So basically it boots slower the first time, and everytime you delete the copies because you shut down improperly and corrupted the disk copies.

I'm very impressed with the core mounting 'real directories' on emulated OSes btw - this is key to the reliability of dosbox shutting down whenever you want, more less. Hopefully you'll refine it enough that i don't ever have to touch fdisk from the windows 95 era ever again.

i30817 avatar Jul 19 '22 19:07 i30817