Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2010 19:48:52 +0300
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: boot and boot0cfg problem 
Message-ID:  <E1NwecW-000G8V-SC@kabab.cs.huji.ac.il>
In-Reply-To: <73161269963850@web103.yandex.ru> 
References:  <E1NwWSU-000BDD-KZ@kabab.cs.huji.ac.il>  <4BB1CE95.2090502@yandex.ru> <E1NwZER-000DPW-Mc@kabab.cs.huji.ac.il>  <73161269963850@web103.yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
> 30.03.10, 14:03, "Daniel Braniss" <danny@cs.huji.ac.il>:
> 
> > > On 30.03.2010 12:05, Daniel Braniss wrote:
> >  > > so it seems that someone is preventing changes to the partition table!
> >  > > btw, this problem was not present in older boot0 (1.0) where the active
> >  > > partition flag is ignored.
> >  > 
> >  > You can change active partition via gpart(8).
> >  > 
> >  Hi Andrey,
> >  I'm sorry, I've reread the manual, and can't find the write magic.
> 
> Yes, i also doesn't remember where it can be read. Only in g_part_mbr.c :)
> Try this:
> # gpart set -a active -i 1 ada2
> This will set active first partition on ada2:
> # gpart show ada2
> =>        63  1250263665  ada2  MBR  (596G)
>           63    40965687     1  !7  [active]  (20G)
>     40965750  1209292875     2  !7  (577G)
>   1250258625        5103        - free -  (2.5M)
> 
> >  btw, boot0cfg does call geom but something seems to be broken.
> I'll look boot0cfg code today and probably made a patch.
ok, that worked!
now if you can get boot0cfg to work that would realy be nice.
thanks,
	danny





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1NwecW-000G8V-SC>