Extended bootloader (HDD)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

Extended bootloader (HDD)

Post 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.
Don't think a ****, but in ukrainian schools English is TOO BAD!
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Extended bootloader (HDD)

Post 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.
If you have seen bad English in my words, tell me what's wrong, please.
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

Re: Extended bootloader (HDD)

Post by djsilence »

oh... yeah, I forgot. Thanks.
Don't think a ****, but in ukrainian schools English is TOO BAD!
Post Reply