Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 2010 10:25:54 -0600
From:      Peter Steele <psteele@maxiscale.com>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   How can I force boot from alternate drive with boot.config?
Message-ID:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B2699@MBX03.exg5.exghost.com>

next in thread | raw e-mail | index | archive | help
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 FreeBS=
D. 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 thi=
s same trick. The boot loader only seems to recognize MBR partitions when i=
t 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 f=
or 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 drive=
s are configured with GPT partitions, how can I force the system to boot fr=
om the second drive using boot.config?




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