Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 2010 19:56:21 +0200
From:      John Hay <jhay@meraka.org.za>
To:        Peter Steele <psteele@maxiscale.com>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: How can I force boot from alternate drive with boot.config?
Message-ID:  <20100208175621.GA43054@zibbi.meraka.csir.co.za>
In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B2699@MBX03.exg5.exghost.com>
References:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B2699@MBX03.exg5.exghost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 08, 2010 at 10:25:54AM -0600, Peter Steele wrote:
> I've asked this on the -questions list but haven't had any feedback. I have a system configured with multiple identical drives each loaded with FreeBSD. When I was using MBR partitioning, I could create a boot.config to force the system to boot from a specific drive. For example, if I wanted to boot from the second drive, I'd create a boot.config with:
> 
> 
> 
> 1:ad(1,a)/boot/loader
> 
> 
> 
> We've switched to GPT partitioning and I can't seem to find a way to do this same trick. The boot loader only seems to recognize MBR partitions when it comes to this feature. I looked at the boot.c source code and there doesn't seem to be anything specifically related to GPT partitioning. I cannot for example say something like:
> 
> 
> 
> 1:ad(1,p3)/boot/loader
> 
> 
> 
> where p3 is the root partition in my GPT partitioned drives. So I'm puzzled: If I have a two drive system with BSD loaded on both drives and the drives are configured with GPT partitions, how can I force the system to boot from the second drive using boot.config?
> 

I use: ad(0p3)/boot/loader

John
-- 
John Hay -- jhay@meraka.csir.co.za / jhay@FreeBSD.org



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