Recently I have started with writting bootloader from scratch. I am following osdev.wiki to write bootloader. But I donnt want to use floppy any more for running and testing my bootloader. I want to install it on hdd image.
So that I am following this tutorial http://www.adayinthelifeof.nl/2011/10/1 ... sk-images/ to create a hdd image, but I dont know how can I write my bootloader on MBR of hdd.
This is my hdd image configuration:
Now I wanted to know that how can I install my bootloader on MBR of HDD? or can I install bootloader on any one of the prtition partition and how?Disk gboot.img: 33 MB, 33546240 bytes
16 heads, 63 sectors/track, 65 cylinders, total 65520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5ace641b
Device Boot Start End Blocks Id System
gboot.img1 * 63 12287 6112+ 83 Linux
gboot.img2 * 12288 16383 2048 6 FAT16
gboot.img3 16384 65519 24568 5 Extended
gboot.img5 18432 59391 20480 83 Linux
gboot.img6 61440 65519 2040 b W95 FAT32
Any help will be appreciated.
Thank You.