From owner-freebsd-fs@FreeBSD.ORG Thu Mar 15 10:55:21 2007 Return-Path: X-Original-To: freebsd-fs@FreeBSD.org Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23A2316A407; Thu, 15 Mar 2007 10:55:21 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from auriate.fluffles.net (cust.95.160.adsl.cistron.nl [195.64.95.160]) by mx1.freebsd.org (Postfix) with ESMTP id C76D213C469; Thu, 15 Mar 2007 10:55:20 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from destiny ([10.0.0.21]) by auriate.fluffles.net with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HRn0J-0006sJ-G1; Thu, 15 Mar 2007 11:16:15 +0100 Message-ID: <45F91CF0.6010506@fluffles.net> Date: Thu, 15 Mar 2007 11:16:16 +0100 From: Fluffles User-Agent: Thunderbird 1.5.0.8 (X11/20061114) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <20070120073117.GB60202@x12.dk> <200703061246.09687.antik@bsd.ee> <45ED5850.6050506@nipsi.de> <200703061420.36980.antik@bsd.ee> <20070307135017.GC2864@garage.freebsd.pl> <45F2EEBD.6070007@barryp.org> <86ps7evniu.fsf@dwp.des.no> In-Reply-To: <86ps7evniu.fsf@dwp.des.no> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-fs@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-questions@FreeBSD.org Subject: boot2 can't boot from USB? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 10:55:21 -0000 Dag-Erling Smørgrav wrote: > Barry Pederson writes: > >> Is there any hope for someday optionally using ZFS as a root filesystem? >> > > For that to be possible, both /boot/boot2 and /boot/loader need to > understand ZFS well enough to read files from it. There isn't much > room to spare in /boot/boot2, so we'd have to have a separate version > for ZFS and teach 'disklabel -B' how to pick the right one. > Sorry if this is offtopic. Am i right to assume that: - boot0 and boot1 both read from the disk via BIOS - boot2 tries to read from the disk directly, without BIOS ? If so, i may have found some bugs / problems with boot2. Long ago i tried to make a bootable USB pendrive with FreeBSD 6.1 on it. It failed to boot with the message "invalid slice" and i got a prompt like: FreeBSD/i386 BOOT Default: 0:ad(0,a)/boot/loader boot: Whatever i tried, it fails to load "Loader" or the kernel. Later, i tried FreeNAS which enables the user to write an image to an USB pendrive which contains a bootable FreeNAS installation. The copying went ok, but i got the same boot problem. I then tried it on three different systems with two different USB pendrives and they all had the same problem. All of the systems supported USB boot, and it does actually boot from USB how else could i see that FreeBSD boot prompt? Some systems are brand new: dualcore SLI motherboards, etc. It appears to me the boot2 program fails to read from USB. boot0 and boot1 appear not to have this problem since it uses the BIOS to read from the disk. Is this correct? Are USB boot problems by boot2 known, should i file a PR? Thanks, - Veronica