Hi,
Without going into much background for what I have done to get where I am now, in short, I am writing a scripted install for FreeBSD. I have everything completed successfully except one final step. When I write my disk partition information I execute this:
[cmd=]fdisk -BI -a -b /boot/mbr ad0[/CODE]
Once everything is done and installed successfully and I go to boot I am prompted with a
Ok, that tells the BIOS can't find the proper active partition.
Ok, so I run fdisk to print the fdisk configuration file.
..odd, it tells me partition one is the active paritition. Ok, so hs a good measure I run sysinstall -> custom -> parititions -> "S" to set the bootable flag on ad0s1.
Lets run fdisk -p again.
Odd...looks the same
...Reboot
Success!
But why?
Here is my dilemma: I do not know what sysinstall does to write disk/boot information so that the BIOS knows where to find the active parittion. That is to say, the configuration that fdisk holds is exactly the same both prior to and after running sysinstall. Is there another command I need to execute to "seal the deal" on marking what is the true active partition? What exactly does sysinstall do outside of just running writing fdisk information.
Any help would be greatly appreciated!
Without going into much background for what I have done to get where I am now, in short, I am writing a scripted install for FreeBSD. I have everything completed successfully except one final step. When I write my disk partition information I execute this:
[cmd=]fdisk -BI -a -b /boot/mbr ad0[/CODE]
Once everything is done and installed successfully and I go to boot I am prompted with a
Code:
No Operating System Installed
Ok, so I run fdisk to print the fdisk configuration file.
Code:
$ fdisk -p ad0
g c41610 h16 s63
p 1 0xa5 63 41942817
a 1
..odd, it tells me partition one is the active paritition. Ok, so hs a good measure I run sysinstall -> custom -> parititions -> "S" to set the bootable flag on ad0s1.
Lets run fdisk -p again.
Code:
$ fdisk -p ad0
g c41610 h16 s63
p 1 0xa5 63 41942817
a 1
Odd...looks the same
...Reboot
Success!
But why?
Here is my dilemma: I do not know what sysinstall does to write disk/boot information so that the BIOS knows where to find the active parittion. That is to say, the configuration that fdisk holds is exactly the same both prior to and after running sysinstall. Is there another command I need to execute to "seal the deal" on marking what is the true active partition? What exactly does sysinstall do outside of just running writing fdisk information.
Any help would be greatly appreciated!