I am a little confused with this "freebsd-boot" partition.
What does the following line do?
Does it install the /boot/pmbr into the first sector (sector 0) of the device?
Does it install the /boot/gptboot file into the first sector of the root partition (AKA:"/") ?
The articles that I have been reading seem to say that the /boot/pmbr and /boot/gptboot are just installed into the boot partition (AKA: "freebsd-boot")
If they are only installed into the boot partition (AKA: "freebsd-boot"), then how the hell is the /boot/gptboot file going to be installed into the first sector of the root partition (AKA:"/")?
If I break down the command, it looks to me as if the "-b /boot/pmbr" file is installed into the the first sector (sector 0) of the device and the "-p /boot/gptboot -i 1" file is installed into the first sector of the boot partition (AKA: "freebsd-boot").
Shouldn't the "-p /boot/gptboot -i 1" be "-p /boot/gptboot -i 2", so that it is installed into the first sector of the root partition (AKA:"/")?
Let me ask it in another way:
If the "/boot/gptboot" file is installed into the the first sector of the boot partition (AKA: "freebsd-boot"), then how does it know how to boot the operating system on the root partition (AKA:"/")?
What does the following line do?
Code:
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0
Does it install the /boot/pmbr into the first sector (sector 0) of the device?
Does it install the /boot/gptboot file into the first sector of the root partition (AKA:"/") ?
The articles that I have been reading seem to say that the /boot/pmbr and /boot/gptboot are just installed into the boot partition (AKA: "freebsd-boot")
If they are only installed into the boot partition (AKA: "freebsd-boot"), then how the hell is the /boot/gptboot file going to be installed into the first sector of the root partition (AKA:"/")?
If I break down the command, it looks to me as if the "-b /boot/pmbr" file is installed into the the first sector (sector 0) of the device and the "-p /boot/gptboot -i 1" file is installed into the first sector of the boot partition (AKA: "freebsd-boot").
Shouldn't the "-p /boot/gptboot -i 1" be "-p /boot/gptboot -i 2", so that it is installed into the first sector of the root partition (AKA:"/")?
Let me ask it in another way:
If the "/boot/gptboot" file is installed into the the first sector of the boot partition (AKA: "freebsd-boot"), then how does it know how to boot the operating system on the root partition (AKA:"/")?