I'm trying to emulate windows with bochs on my android device. I've got the following drives: an empty disk image to install windows on, a virtual vvfat drive with the setup files, and a cdrom drive with the latest version of DOS. Bochs recognizes all drives correctly.
The problem is, when I boot into DOS, the disk image is not recognized. I used the vol command to identify the drives. A was assigned to the cdrom, B gave a read error, C was assigned to the virtual vvfat drive and the others were unassigned. The read error B gave, however, has nothing to do with the image file. If I disconnected all drives except for the cdrom, the error would still be there. It's probably an emulated floppy disk.
I think the problem is in the image file. I've made it using dd in terminal. I used the following configuration:
dd if=/dev/zero of=/sdcard/Win.img bs=64k count=8192
And formatted it with:
mkfs.vfat /sdcard/Win.img
It didn't work. Then I found out old windows versions only support up to 4 kB block or cluster size so I made a new one:
dd if=/dev/zero of=/sdcard/Win.img bs=4k count=131072
And again formatted it with mkfs.vfat.
Since it still didn't work I started experimenting on the filesystems and partitions. I've used fdisk to partition the image:
fdisk /sdcard/Win.img, n, p, 1, 1, 65
But still no result. Maybe I did something wrong here because when I printed the partition table it would say linux at the end.
My question is: does anyone know how to format a disk image with terminal so that it will be recognized by DOS?