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.
  1. cyjoyp

    cyjoyp Thread Starter

    Apr 27, 2009
    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


    Aug 1, 2003
    Copied word for word from here:


    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!

Thread Status:
Not open for further replies.

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