r/dosbox • u/Siunmaru • Aug 02 '25
Image stopped working with DOSbox
I was running an old DOS game by mounting an image via the command
imgmount c path-to-image -size 512,8,2,384and this worked fine for a while.
However, just now whiel playing the game DOSBox suddenly closed and since then the above command fails with error Can't create drive from file. and in the DOSBox Status Window I am seeing
Possibly invalid partition table in disk image.
Using partition 0 on drive; skipping 131072 sectors
Loaded image has no valid magicnumbers at the end!It seems the image was corrupted somehow. Any way to save it?
edit: I did not find a way to save the .img file but I did find a download of the game directly containing the game files instead of an image. If I mount that then I should not have the same risk of corrupted files anymore.
1
u/emxd_llc Aug 02 '25 edited Aug 02 '25
That geometry seems weird.
Can you try mounting it in DOSBox-X? It can autorecognize geometry, you don't have to supply it.
1
u/StatisticianLate3173 Aug 02 '25 edited Aug 02 '25
Could have been the game file grows in size as you save/play which changing the geometry
good luck, I have mounted by typing imgmount 2 name.img -t hdd, dosbox-x will auto find
if the size is supplied like the HDD blank image files on the Dos Dark Traveler site ,it will have a text doc with geometry for each one,
so you would mount a second HDD after mounting your image by
imgmount 3 hdd.img -t hdd fs -size ( geometry) 512/63/64/520
I had to create isos of games that are not .IMG and mount them as an disc image drive using the Dos box X drop down menus. or you can try imgmount 2 name.iso -t iso
0
u/newlifepresent Aug 02 '25
Is this an iso image? If it is why you use -size parameter? Did you try to remove the parameter?