VOGONS


First post, by kruwi

User metadata
Rank Member
Rank
Member

I used to have an emulated "msdos 6.22 system" set up with bochs. Now I'd like to use the harddisk image on which I have installed dos 6.22 with dosbox.

Unfortunately I have done a complete reinstallation of my main os (deinstalling suse 10.1 and installing suse 10.2) in the meantime. I have saved all my important documents (and also the dos 6.22 hd image), but I DID NOT save my bochs configuration file, which contains the specific geometry of the hd image.

Now my question is: Can I somehow "find out" the exact geometry of my harddisk image? Or is there a way to calculate it from its size? It is a 240 MB Image.

Thank You in advance!

Visit the end of the internet: www.groskreutz.de

Reply 1 of 13, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

On Linux: /sbin/fdisk -l <filename>

Reply 2 of 13, by kruwi

User metadata
Rank Member
Rank
Member

ok. So I have found out that the values have to be 512,63,16,487.
Now I have tried out the following commands:

z: mount c "/home/kruwi/diskettenbox" (My Disk Images Folder)

This works. The folder is mounted as drive c:.

Then I type this:

imgmount d "/home/kruwi/diskettenbox/hdddosbochs.img" -size 512,63,16,487

This leads to the following error:

Can't create disk from file.

What am I doing wrong?

And how do I actually boot from the image if I finally manage to mount it. Please do not just tell me "have a look at the wiki" because this is what I have already done. This still seems to be difficult for me, although I have been using dosbox quite intensively for about 1 year ... .

Visit the end of the internet: www.groskreutz.de

Reply 3 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Does one of those work?

imgmount ... -t hdd
imgmount ... -fs none

> And how do I actually boot from the image

boot -l c

1+1=10

Reply 4 of 13, by kruwi

User metadata
Rank Member
Rank
Member

Nothing's working yet.

So please: What do I have to do first:

Mount the folder containing the image? e.g.: mount c (?) "/home/kruwi/diskettenbox" ?

then imgmount the desired image? but how?

1. imgmount 3 (?) c (?) "/home/kruwi/diskettenbox/nameofimage" -size ...

or is it:
2. imgmount 3 (?) d (?) "c:\nameofimage" -size ... (as I have already mounted the folder als my "c:" drive?

????????

Actually one time something seemed to happen as dosbox closed (!) leaving the following error message in the console window: Speicherzugriffsfehler.

😠 😠 😠 😠 😠 😠

Visit the end of the internet: www.groskreutz.de

Reply 5 of 13, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

First: Do not load an external keyb if you want to boot. Instant crash.

There is also no need to mount the folder containing the image at all.

Example (one of my batch files):

imgmount c e:/transfer/dosspiele/w95.img -size 512,63,16,914
core normal
cycles 7000
boot -l c

Or:

imgmount 3 <file> -size ... -fs none
boot -l c

1+1=10

Reply 6 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Maybe you could before any proceeding verify that the image is intact,
like booting it in bochs.

Reply 7 of 13, by kruwi

User metadata
Rank Member
Rank
Member

Ok, I finally got it !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

😁 😁 😁 😁 😁

thanx (especially for the last post)

Visit the end of the internet: www.groskreutz.de

Reply 8 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

What was wrong? Keyb?

Reply 9 of 13, by kruwi

User metadata
Rank Member
Rank
Member

no, the problem was not related to keyb.

The solution was simple: Do not use "mount" at all to mount the folder containing the image, but straightly to mount the image using "imgmount".

Visit the end of the internet: www.groskreutz.de

Reply 10 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Hm maybe something's wrong in there then.

Could you please try this:
z: mount c "/home/kruwi/diskettenbox" (My Disk Images Folder)
imgmount d c:\hdddosbochs.img" -size 512,63,16,487

(but rename/copy the image file beforehand so it has a short 8.3 name)

Reply 11 of 13, by kruwi

User metadata
Rank Member
Rank
Member

This will give me a "message not found" error. And I have no clue what this actually means ... .

Visit the end of the internet: www.groskreutz.de

Reply 12 of 13, by kruwi

User metadata
Rank Member
Rank
Member

update: Yes, You were right wd. It works, but I had to change the name of the image into "hdddos.img" --- actually a 8+3 filename.

😁 😁

Visit the end of the internet: www.groskreutz.de

Reply 13 of 13, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

message not found is nice as well
it means that we made typo somewhere. (It can't find the message string needed which are stored in DOSbox in array to make it possible to translate them)

Water flows down the stream
How to ask questions the smart way!