boot0cfg -s vs. GEOM_PART_*?
Marcel Moolenaar
xcllnt at mac.com
Sat Feb 21 10:48:43 PST 2009
On Feb 21, 2009, at 12:25 AM, Bjoern A. Zeeb wrote:
> Thanks. I see boot0cfg no longer errors but I am not sure if it does
> the right thing:
>
> boot0cfg -s 5 ad0
> (doesn't atter if it's 0 or 2 to the -s options) as
boot0cfg -s doesn't set the active flag on partitions. It
changes some magic offset in the boot code that is being
interpreted by the boot code.
> That leaves me to the question - what's the boot0cfg -s5 equivalent
> with gpart?
There's no equivalent to the -s option, because gpart doesn't
interpret or understand the boot code. You can change the
active partition with gpart though:
# gpart set -a active -i <slice> ad0
FYI,
--
Marcel Moolenaar
xcllnt at mac.com
More information about the freebsd-current
mailing list