On Mon, 30 Nov 1998, Shem Mazur wrote:

> I can run DOSEmu (which came with RedHat 5.1 Linux) just fine by:

> Could it be that the Win95 DOS version doesn't fit, so I should try DOS
> version 6.0 or something older?  Or, can I make the C: drive image
> bigger?

The initial drive isn't made to do much other than hold the basic progams
that come with dosemu.

To create a disk image, you need to use dd to create an image, and create
it 128 bytes larger than you want.  Then you make a dosemu header, and
tack it over the first 128 bytes.  I don't know if the utils come with
redhat, but they come in the main dosemu tree.

Simply so something like this (to make a 504meg 'disk'):

# dd if=/dev/zero of=diskimage bs=128 count=4128768
# mkhdimage -h 16 -s 63 -c 1024 > header
# dd if=header of=diskimage bs=128 conv=notrunc
# rm header
# sync

This will create a 504meg disk image, with a header at the start so that
dosemu will show it as having 1024 cylinders, 16 heads, and 63 spt.  The
'count=...' bit is simply ((1024*63*16)*4)+1.

Davey

Reply via email to