Booting from Drive D

I wrote a small assembly program to write self into the boot sector and load the boot sector from the D drive (0x81) to 0x7C00, but it doesn't boot the D drive, it ends up booting from C. I have diagnostic info pumping out and everything seems kosher, except that it's using the boot code from D in the context of booting C. I'm trying to emulate a simple boot manager that boots from the first partition on drive D. Any hints?


Any help would be appreciated.


Thanks in advance,


Mark.


Comments

  • : I wrote a small assembly program to write self into the boot sector and load the boot sector from the D drive (0x81) to 0x7C00, but it doesn't boot the D drive, it ends up booting from C. I have diagnostic info pumping out and everything seems kosher, except that it's using the boot code from D in the context of booting C. I'm trying to emulate a simple boot manager that boots from the first partition on drive D. Any hints?


    : Any help would be appreciated.


    : Thanks in advance,


    : Mark.


    You're problem is that the BIOS decides which boot sector on which

    drive is booted at start up. To get it to boot from drive D, you'll

    have to go into BIOS and change the "Boot order".





    URL:http://acheronx.resnet.tamu.edu/home/

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories