Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Feb 2010 13:22:53 -0600
From:      Peter Steele <psteele@maxiscale.com>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   RE: How can I force boot from alternate drive with boot.config?
Message-ID:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB3849F770@MBX03.exg5.exghost.com>
In-Reply-To: <23F2E2B0457F4046AD8350DAFB86C41130D434E7@MBX03.exg5.exghost.com>
References:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B2699@MBX03.exg5.exghost.com> <20100208175621.GA43054@zibbi.meraka.csir.co.za> <7B9397B189EB6E46A5EE7B4C8A4BB7CB383B2775@MBX03.exg5.exghost.com> <20100208193540.GA53234@zibbi.meraka.csir.co.za> <23F2E2B0457F4046AD8350DAFB86C41130D434E7@MBX03.exg5.exghost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>> So, more precisely, if I wanted to boot from drive 1, I'd use this?
>>>=20
>>> 1:ad(1p3)/boot/loader
>>
>>Yes, unless there are more bugs hiding. :-) I fixed a few in August last =
year.
>
>Well, I'll give it a try and let you know if I find new bugs... :-)

I just tried this and it works as advertised--thanks. One question though: =
Why does this string list the device number twice? The man page describes i=
t as

bios_drive:interface(unit,[slice,]part)filename

where bios_drive is the "drive number as recognized by the BIOS.  0 for the=
  first drive, 1 for the second drive, etc.", and unit is the "unit number =
of the drive on the interface being used. 0 for the first drive, 1 for the =
second drive, etc."

This sounds like it's describing the same thing, but not exactly, but I've =
always used the same value in both fields and it's always worked. Is there =
a case where these values might be different? In the test I just did I boot=
ed from the fourth drive of a four drive system using

3:ad(3p4)/boot/loader

I know my hardware and knew ad10 mapped to the fourth drive and would be re=
ferenced as drive 3 in this context. But how would I determine this generic=
ally? For example, given something like /dev/adN, how do I know what number=
 I'd use for this drive in boot.config?




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