From owner-freebsd-questions@FreeBSD.ORG Sat Oct 24 01:14:44 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00230106566B for ; Sat, 24 Oct 2009 01:14:43 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 997F88FC16 for ; Sat, 24 Oct 2009 01:14:43 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id n9O1Eg1I018925; Fri, 23 Oct 2009 19:14:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id n9O1EgDv018922; Fri, 23 Oct 2009 19:14:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 23 Oct 2009 19:14:42 -0600 (MDT) From: Warren Block To: Sandra Kachelmann In-Reply-To: <91b92520910231723o204fb1f9w4fbf12388fc56ab1@mail.gmail.com> Message-ID: References: <91b92520910231723o204fb1f9w4fbf12388fc56ab1@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (wonkity.com [127.0.0.1]); Fri, 23 Oct 2009 19:14:43 -0600 (MDT) Cc: questions@freebsd.org Subject: Re: boot0cfg, how to use -m option X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2009 01:14:44 -0000 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