Page 1 of 1

Writing boot loader to Microsoft Virtual PC Virtual Hard Dri

Posted: Sat May 21, 2005 11:06 am
by Mark Ingram
Hi, im having great difficultly in trying to write my custom boot loader code straight into the virtual hard disk. Has anyone managed todo this already?

I know it is possible, i just dont know how.

Any info on this subject would be most appreciated!

Thanks

Re:Writing boot loader to Microsoft Virtual PC Virtual Hard

Posted: Sat May 21, 2005 3:59 pm
by Kemp
I personally have two virtual machines set up and two hard drives, one with Win 98 and one with my OS.

Machine 1 has both with the 98 disk as the boot disk so I can use the usual tools to write to the OS disk which is set as the second disk.

Machine 2 has the OS disk as the boot disk.

This way I boot machine 1, write the boot sector and other stuff as needed, shut it down (or save the state usually) and then boot machine 2.

Re:Writing boot loader to Microsoft Virtual PC Virtual Hard

Posted: Sun May 22, 2005 12:38 pm
by Skute
Cheers thanks, I was more after a way of "making" a bootsector straight into the virtual hard disk file manually. But ive now resorted to using a Win98 floppy boot disk image, so that i can create a fat12 harddrive and format it etc. Then i can look for the boot sector in the virtual hard disk file and replace it myself. Thanks

Re:Writing boot loader to Microsoft Virtual PC Virtual Hard

Posted: Sun May 22, 2005 3:37 pm
by Kemp
I may be misunderstanding you again, but if you mean you want to write the bootsector straight to the file that's used as the virtual hard drive then you can do this very simply using a hex editor. Simply open your assembled sector and the hard drive file in a hex editor and copy it over.