Solved bootcode and protective mbr

If I run
Code:
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
is
Code:
gpart bootcode -b /boot/pmbr ada0
needed?

Here is the output for 1st command:

Code:
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0

partcode written to ada0p1
bootcode written to ada0

And here for 2nd command:

Code:
gpart bootcode -b /boot/pmbr ada0

bootcode written to ada0
 
No, you only need to run the first command

-b /boot/pmbr
instructs gpart to install a protective MBR on the specified disk.

-p /boot/gptboot -i 1

instructs gpart to install the bootcode /boot/gptboot to the first partition on the specified disk.

ada0
is the disk specified. You see, it's just 2 commands combined.
 
Back
Top