Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: gunnyPosted on 1999-05-14 at 10:11:55ID: 1627946
you can do this in various ways, here 2 simple examples:
image bs=1024 count=20480".
1)
find out where your dosemu scripts were installed, very likely they will be in a subdirectory called "dexe" which can be found in the directory where your 2 mb hdimage is located (see /etc/dosemu.conf for the position of your hdimage).
change to this directory (could be /var/lib/dosemu/dexe),
and have a look at the "mkdexe" script. you could use it
to copy an allready existing partition into a file, getting an up and running dos-installation:
cd /var/lib/dosemu/dexe
./mkdexe ../new_hdimage -b /dev/hda1 -o noapp
this will create a file called new_hdimage under /var/lib/dosemu from your first ide partition (hda1) and should prompt you to edit the configuration files.
you will then have to edit /etc/dosemu.conf in order to change the hdimage to new_hdimage or whatever.
2)
you should be able to create a file as big as you'd like it by issuing "dd if=/dev/null of=/var/lib/dosemu/20mb_hd
put this file as the hdimage in your /etc/dosemu.conf, but set dosemu up to boot from drive A: so that you can boot from a bootdisk. then simply format drive C: and don't worry it won't be your real hd, but just the 20mb_hdimage file.
so do a "format c: /S" in order to copy the dos-system-files too.
after that change the /etc/dosemu.conf in order to boot out of the newly created hdimage!
notes:
- have a look at the README.txt that comes with dosemu (find it somewhere under /usr/doc/packages) or at the DOSEMU-HOWTO (/usr/doc/howto) they document everything if i made some mistake here
- you can use the "do_mtools" script out of the "dexe" directory in order to mount the image file as if it was a partition