Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Aug 2005 17:40:54 +0200
From:      =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de>
To:        Petre Bandac <petre@kgb.ro>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dual boot with freebsd boot loader
Message-ID:  <42EF9406.3060103@cs.tu-berlin.de>
In-Reply-To: <20050802132819.50dee3cf@xxl.rdsbv.ro>
References:  <20050802132819.50dee3cf@xxl.rdsbv.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42EF9406.3060103>