Date: Fri, 23 Oct 2009 19:14:42 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Sandra Kachelmann <s.kachelmann@googlemail.com> Cc: questions@freebsd.org Subject: Re: boot0cfg, how to use -m option Message-ID: <alpine.BSF.2.00.0910231859310.18536@wonkity.com> In-Reply-To: <91b92520910231723o204fb1f9w4fbf12388fc56ab1@mail.gmail.com> References: <91b92520910231723o204fb1f9w4fbf12388fc56ab1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 24 Oct 2009, Sandra Kachelmann wrote: > I installed the FreeBSD boot loader and have now the following options: > > F1 Win > F2 Win > F3 FreeBSD > F4 FreeBSD > > F6 PXE > > Now I wan't to enable only partition 1 and 3 and PXE (F1, F3, F6). > > The manpage of boot0cfg says: > > -m mask > Specify slices to be enabled/disabled, where mask is an integer > between 0 (no slices enabled) and 0xf (all four slices enabled). > > which I find very confusing. > > Could someone explain me what value (and why?) I have to chose to > achieve the above mentioned. I can't say I've used that, but it appears to just be bit values. They should be: Partition Mask bit value 1 1 2 2 3 4 4 8 Add together the ones you need. For partitions 1 and 3, it would be 1+4, so... 5. I don't know if boot0cfg wants that as a plain decimal or the leading 0x of a hex format, and the man page doesn't explicitly say. It implies hex, but I suspect it wants decimal. Again, untested. -Warren Block * Rapid City, South Dakota USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0910231859310.18536>