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

From: Nick Hibma <nick_at_van-laarhoven.org>
Date: Tue, 11 Aug 2009 14:49:51 +0200
> > :  > 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
Received on Tue Aug 11 2009 - 11:05:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:53 UTC