1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

boot loader code

Discussion in 'Software Development' started by cyjoyp, Apr 27, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. cyjoyp

    cyjoyp Thread Starter

    Joined:
    Apr 27, 2009
    Messages:
    1
    hello guys,
    I am trying to create partitions on hard drive and boot from that hard drive programatically.
    . I m using IOCTL_DISK_SET_DRIVE_LAYOUT to create partitions and IOCTL_DISK_CREATE_DISK to write the signature of the hard drive (32 bytes). I am able to create the partition successfully but the executable code (boot loader code), the first 300 bytes in the mbr is not written to the disk.I find these bytes empty.
    I find no solution to write the executable code to the 0th sector of the hard drive and also the boot sector of the partition as well.

    Does any one know how to do it.???
     
  2. Elvandil

    Elvandil

    Joined:
    Aug 1, 2003
    Messages:
    51,988
    Copied word for word from here:

    http://www.diolan.com/pic/bootloader.html

    please read the rules.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/822194