DOSEMU

  • If you don't want your home directory mapped as 'd', go into the autoexec.bat for the dos disk, and fix the lredir command
  • If you want to add an image to be mapped when EMUDOS starts, add it to the $_hdimage command like this: $_hdimage = "/etc/dosemu/drives/c /etc/dosemu/blah.img" (no relative paths)
  • The easiest way to create an image is to use the mkfatimage16 utility like this: mkfatimage16 -k 5000 > blah.img (makes a 5 MB image)
    • Then, run dosemu
    • Go to drive D:
    • do format d:
    • do sys c: d: to put FreeDOS on it
  • exit DOSEMU by doing exitemu
  • If you want to mount this with mtools, you must put a line in /etc/mtools.conf like this: drive y: file="/etc/dosemu/blah.img" partition=1 offset=128
    • you can check this by doing mdir y:. You should see your system files
    • you sort of can mount this with mount -o loop, BUT this is a hack...I skip the DOSEMU stuff and partition stuff.
      • losetup -o 8832 /dev/loop0 /etc/dosemu/blah.img
      • mount -t msdos /dev/loop0 /mnt/tmp/
      • (then to unmount) umount /mnt/tmp, losetup -d /dev/loop0
      • clearly, it is MUCH safer to deal with this from mtools

Making HD Images

thanks to this page

  • Making a raw 10MB disk
    dd if=/dev/zero of=disk.img bs=1M seek=10 count=0

  • Make a DOS filesystem
    mkdosfs /tmp/disk.img

  • Insert a boot sector into the disk image (copy the 446 byte bboot code from a booting system--floppy, for example)
    dd if=bootsect.img of=disk.img bs=1 count=446 seek=62 skip=62 conv=notrunc

  • Mount the disk image and copy in all the necessary data
    mount -oloop /tmp/disk.img /mnt/tmp

Problems with Memdisk and booting disks I made

Had the same problem as this guy, who then very helpfully told me to roll back to memdisk version 2.11. Works!

-- MattWalsh - 13 Aug 2005

Topic revision: r2 - 14 Aug 2005 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback