[NanoBSD] Can't use boot0cfg for changing the booting slice

Nick Hibma nick at van-laarhoven.org
Tue Aug 11 13:05:36 UTC 2009


> > :  > But, after the reboot my system still reboot from the slice 1 (but
> > :  > the boot loader show correctly that the default choice is now the
> > :  > 2)! Where is my problem ?
> > :
> > : Are you sure you're booting from slice 1?
> > : Is fstab on slice 2 pointing to slice 1?
> >
> > Also, boot0cfg won't mark the slice as ACTIVE, just remember that was
> > the last slice you booted from...  To mark it active, you must use
> > fdisk.  If by 'active' you mean 'what mount reports root as' then I
> > think John's suggestion is right on the money...

Perhaps you could change the line in the update script from

	boot0cfg -s $oslice $NANO_DRIVE

to

	boot0cfg -s $oslice $NANO_DRIVE
	echo "a $oslice" | fdisk -f /dev/stdin $NANO_DRIVE

That's taken from our own version of the update script, but should fit in 
the NanoBSD update script.

Nick




More information about the freebsd-embedded mailing list