Page 1 of 1

Extended bootloader (HDD)

Posted: Mon Mar 30, 2009 5:42 am
by djsilence
Hi, guys.

I think about creating bootloader on HDD which will get me support to load Windows. See:
My first partition on C: is FAT32 formatted with my own bootloader. On the sector right after boot is written Windows bootsector. I have boot menu with which I can load my OS from any partition of any drive (like a Windows one) and If I have Windows installed on some partition - I write it to my boot menu. Then during loading I select Windows item and bootloader do the next:
1. Load to 0x7C00 the next sector after bootsector in C: (which is Windows bootsector).
2. Goes down into real mode.
3. Jump to 0x7C00.

Is it normal? Or is there some another way?

Daniel.

Re: Extended bootloader (HDD)

Posted: Mon Mar 30, 2009 12:24 pm
by egos
It's normal, but in FAT32 after boot sector usually is stored the FSINFO structure (sector #1). You can use sector #6 for that purpose, because right there is stored backup copy of the Windows boot sector.

Re: Extended bootloader (HDD)

Posted: Tue Mar 31, 2009 7:45 am
by djsilence
oh... yeah, I forgot. Thanks.