vogons - very old games on new systems Last Visit : never :: 2010-8-01 @ 01:51 am : Now
?FAQ sSearch mMemberlist uUsergroups
rRegister pProfile "Messages lLog in
View posts : unanswered
Forum Index :: DOSBox Guides ::
up Sample usage of a harddisc image in DOSBOX
Reply with quote Sample usage of a harddisc image in DOSBOX :: 2004-11-27 @ 09:42 am
mirekluza
DOSBox Moderator
no avatar
Joined: 2003-08-21
Posts: 1697
While reading forums I encountered several times user problems with using disc image support in DOSBOX (great feature made by CANADACOW which enables to use alternative versions of DOS). Therefore I provide this practical sample which worked for me (I am not replacing README here - see there for details about commands IMGMOUNT and BOOT).
The following was tested using bootdiscs for MS DOS 5, MS DOS 6:

1. I created a 10 MB disc image using bximage.exe utility from Bochs http://bochs.sourceforge.net (below are details):

Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd] hd

Enter the hard disk size in megabytes, between 1 and 32255
[10]

I will create a hard disk image with
cyl=20
heads=16
sectors per track=63
total sectors=20160
total size=9.84 megabytes

What should I name the image?
[c.img]

Writing: [] Done.

I wrote 10321920 bytes to (null).

The following line should appear in your bochsrc:
ata0-master: type=disk, path="c.img", cylinders=20, heads=16, spt=63


2. I put the HD image (c.img) together with an image of a bootable floppy (msd60.ima) into the directory d:\dosbox on my disc.

3. Then I went on with creating of a patition on the disc. I started DOSBOX with the following lines:

mount d: d:\dosbox
imgmount 2 d:\c.img -size 512,63,16,20 -fs none
boot d:\msd60.ima


4. After DOS booted I started FDISK and created a primary DOS partition. When FDISK wanted to reboot later, it crashed/froze (depending on DOS version). I ignored it and ended DOSBOX (it is minor nuisance but FDISK already did its work).

5. I again restarted DOSBOX as in the point 3., but instead of FDISK I used: FORMAT C: /S
This formatted the disc and made it bootable.

6. Now the disc was usable - either for booting or when mounted from DOS shell.
For booting I did this:

mount d: d:\dosbox
imgmount c d:\c.img -size 512,63,16,20 -fs fat
boot -l c


WARNING: Do not copy files to harddisc image from DOSBOX shell when using DOSBOX 0.63 or lower version. It corrupts the image !!! This was fixed in CVS - so use CVS build if you want to do it.

DISK EXPLORER
If you need to get some files to/from the disc images, you can use the DiskExplorer available on http://hp.vector.co.jp/authors/VA013937...dex_e.html
(choose VMWare format).

IMGMOUNT defaults
If somebody is wondering why I did not specify parameter -t for IMGMOUNT: I did not have to, its default value is "hdd".
The parameter -fs has also a default value ("fat") - so "-fs fat" was also not needed.

Mirek
Post new topicReply to topic
Offline
page 1 of 1
All times are GMT
Moderate
Quick Reply & Options
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Powered by phpBB © 2001-2003 phpBB Group.
vogons and vogons site design and content herein is under a creative commons license 2002-2003 zetafleet.dom.
This site hosts no abandonware. There is no material that is knowingly illegal here.
zetafleet.dom will not be held responsible for users' posts.
This disclaimer is brought to you thanks to the BSA.