From owner-freebsd-questions@FreeBSD.ORG Tue Aug 2 15:41:39 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0897216A41F for ; Tue, 2 Aug 2005 15:41:39 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85D7643D48 for ; Tue, 2 Aug 2005 15:41:38 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from smtp.efacilitas.de (smtp.efacilitas.de [85.10.196.108]) by mail.efacilitas.de (Postfix) with ESMTP id 48D7A123A55; Tue, 2 Aug 2005 16:46:29 +0200 (CEST) Received: from eurystheus.local (port-212-202-37-29.dynamic.qsc.de [212.202.37.29]) by smtp.efacilitas.de (Postfix) with ESMTP id 73CB3C99C03; Tue, 2 Aug 2005 17:47:05 +0000 (UTC) Received: from localhost (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id F37CC12B135; Tue, 2 Aug 2005 17:41:02 +0200 (CEST) Received: from eurystheus.local ([192.168.1.67]) by localhost (eurystheus.locaL [192.168.1.67]) (amavisd-new, port 10024) with ESMTP id 38176-10; Tue, 2 Aug 2005 17:40:55 +0200 (CEST) Received: from [192.168.1.67] (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 9367E12B02A; Tue, 2 Aug 2005 17:40:55 +0200 (CEST) Message-ID: <42EF9406.3060103@cs.tu-berlin.de> Date: Tue, 02 Aug 2005 17:40:54 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050517 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Petre Bandac References: <20050802132819.50dee3cf@xxl.rdsbv.ro> In-Reply-To: <20050802132819.50dee3cf@xxl.rdsbv.ro> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at example.com Cc: freebsd-questions@freebsd.org Subject: Re: dual boot with freebsd boot loader 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: Tue, 02 Aug 2005 15:41:39 -0000 Petre Bandac wrote: > I have the following configuration > > ad0s1 - win xp with ntfs > ad0s2 - freebsd > > they were installed in the above order, so now I can use only freebsd > > is there a way to configure freebsd's boot loader to be able to boot > from the win partition (I googled around and found boot0cfg (8), but > didn't have the time to play with it) Yes, this is possible. # sysctl kern.geom.debugflags=16 // make the MBR writable # boot0cfg -s 1 /dev/ad0 // set default selection You'll find further information and even examples in the manpage of boot0cfg. > what I want to know is if (making a similarity with linux's lilo) I can > make the boot loader to have the options 1) boot win, 2) boot freebsd This should be the default behaviour of boot0. In case you didn't installed it yet you can do it with # sysctl kern.geom.debugflags=16 // make the MBR writable # boot0cfg -B /dev/ad0 // install boot0 Regards Björn -- Björn König (bkoenig@cs.tu-berlin.de) student at the Technische Universität Berlin http://bkoenig.alpha-tierchen.de/