On 09/01/2011 04:38, Daniel Braniss wrote: >> There was a post on the embedded list that suggested this work around: >> echo 'a 2' | fdisk -f /dev/stdin ad0 >> boot0cfg -s 2 ad0 >> >> There are 2 issues with this: >> 1) It can't be done without setting kern.geom.debugflags to 0x10. >> 2) It resulted in most/all commands resulting in the error message >> "Device not configured" including the second command and 'shutdown -r now= >> '. >> >> Both of which leave this really work around fairly broken. > the problem is that boot0cfg -s does NOT update the boot block, it fails! > the work around is: > boot0cfg -s -t n dev > then > gpart set -a active -i n dev > > danny > Hi Danny,
The bug does not seem to be in boot0cfg as: 1) It succeeds to write the new configuration to the boot block every time i have tried. 2) It does not touch the partition table at all only the mbr, so it was never designed to change the active partition. If this is not a bug in boot0 then its a bug in the man pages for boot0cfg as it does make reference to having to change the active slice to make this work. Tom
signature.asc
Description: OpenPGP digital signature