Hello all!

I saw that Flex86 can run Windoze and decided to give it a try.
My question is how to set up the Win95 harddisk image? 
Here's what I did for 300MB image:
# dd if=/dev/zero of=/mnt/d/imgfile bs=1024 count=307200
# losetup /dev/loop0 /mnt/d/imgfile
# mkfs -V -t msdos -v /dev/loop0
# mkdir /mnt/winimg
# mount -t vfat /dev/loop0 /mnt/winimg

# Copy almost all c:\windows and c:\ directories contents to /mnt/winimg

# umount /mnt/winimg/
# losetup -d /dev/loop0

I took conf/msdos file as an example:

------------------------8<---------------------
# number of megabytes for vm
memory = 4
plugin = ./plugins/bochs/plugin-bochs.so
bochs-opt boot: c
#bochs-opt diskc: file="../../10M.vga", cyl=306, heads=4, spt=17
bochs-opt diskc: file="/mnt/d/imgfile", cyl=900, heads=16, spt=63
------------------------8<---------------------
Are the above settings correct for a 300MB image? ----^-----^----^--

------------------------8<---------------------
#bochs-opt floppya: 1_44=../../1.44a, status=inserted
bochs-opt keyboard_serial_delay: 200
bochs-opt floppy_command_delay: 500
bochs-opt vga_update_interval: 200000
bochs-opt mouse: enabled=0
bochs-opt private_colormap: enabled=0
bochs-opt i440fxsupport: enabled=0
bochs-opt newharddrivesupport: enabled=1
bochs-opt ips: 1000000
#bochs-opt time0: 938581955
bochs-init
# The system BIOS
load-rom file=../bios/BIOS-plex86-2000_0817a address=0xf0000
# The VGA BIOS
load-rom file=../bios/VGABIOS-elpin-2.40 address=0xc0000
# syntax for disassembly
db_syntax = at&t
# Maximum depth that the scan-before-execute code will try
# to recursively prescan code in the current code page, by
# following intra-page branches.
prescan_depth = 3
#prescan_depth = 1
------------------------8<---------------------

When I run './plex86 -f plex86.conf.win' I get 'This is not a bootable
disk. Please insert a bootable floppy and press any key to try again
...'

What have I done wrong?

TIA,
Uri Shohet
-- 
Registered Linux User #166615 (http://counter.li.org)

Reply via email to