From owner-freebsd-fs@FreeBSD.ORG Wed Dec 3 09:31:40 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE4C8A44 for ; Wed, 3 Dec 2014 09:31:40 +0000 (UTC) Received: from smtp.ehu.es (smtp.lg.ehu.es [158.227.0.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A93DD952 for ; Wed, 3 Dec 2014 09:31:40 +0000 (UTC) Received: from smtp.ehu.es (localhost.localdomain [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id BBDDD77D2 for ; Wed, 3 Dec 2014 10:22:56 +0100 (CET) Received: from ncc-1701.we.lc.ehu.es (ncc-1701.we.lc.ehu.es [158.227.6.85]) by smtp2 (Postfix) with ESMTPSA id AC84177C7 for ; Wed, 3 Dec 2014 10:22:56 +0100 (CET) From: =?utf-8?Q?Jos=C3=A9_Mar=C3=ADa_Alcaide?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Using boot0 to redirect booting to another disk? Message-Id: <27E65CD9-4C97-4528-B218-A01EDB1B8CB1@ehu.es> Date: Wed, 3 Dec 2014 10:22:56 +0100 To: freebsd-fs@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4 (smtp2); Wed, 03 Dec 2014 10:22:56 +0100 (CET) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4 (postfix.imss71); Wed, 03 Dec 2014 10:22:56 +0100 (CET) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 09:31:41 -0000 Hi. I have an HP Proliant Microserver Gen8. Nice machine but picky BIOS. = When its hard disk controller is configured in SATA AHCI mode, there is = no way to choose the boot disk among those connected to the SATA ports. = I have four HDD attached to the backplane, and another drive connected = to a fifth SATA port originally intended for an optical drive. The four = HDD are arranged in a RAIDZ. Currently the machine is booting from an = USB flash device, but I would like to boot the FreeBSD installed on = fifth drive. The disk controller sees and reports the five disks just = fine, but as I said above, there is no way to choose the fifth disk as a = boot device. I wondered whether I could use boot0 to redirect the boot from a USB = flash device (pendrive or, still better, a microSD) to the fifth drive. = The idea comes from the fact that boot0 shows a "F5 - Drive 2" option = when it detects more than one drive. I tried to understand how boot0 = works reading its source code, and I experimented with the boot0cfg's = "-d disk" and "-o setdrv" options, to no avail. So I decided to ask for = help. :) Is that possible? Any help will be greatly appreciated. -- Jose M. Alcaide