From owner-freebsd-fs@FreeBSD.ORG Sun Jan 30 22:29:52 2011 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F54F106564A for ; Sun, 30 Jan 2011 22:29:52 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (mail.ip6.digiware.nl [IPv6:2001:4cb8:1:106::2]) by mx1.freebsd.org (Postfix) with ESMTP id 140608FC14 for ; Sun, 30 Jan 2011 22:29:51 +0000 (UTC) Received: from rack1.digiware.nl (localhost.digiware.nl [127.0.0.1]) by mail.digiware.nl (Postfix) with ESMTP id 8F5CF153446 for ; Sun, 30 Jan 2011 23:29:50 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from mail.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lO68w3vIGwxU for ; Sun, 30 Jan 2011 23:29:48 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:e169:4e7:c7ea:8c2d] (unknown [IPv6:2001:4cb8:3:1:e169:4e7:c7ea:8c2d]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.digiware.nl (Postfix) with ESMTPSA id 00A8F153435 for ; Sun, 30 Jan 2011 23:29:47 +0100 (CET) Message-ID: <4D45E65C.2040200@digiware.nl> Date: Sun, 30 Jan 2011 23:29:48 +0100 From: Willem Jan Withagen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: fs@freebsd.org References: <20110130143045.GA50566@icarus.home.lan> <4D457AB1.90109@digiware.nl> <20110130150226.GA51190@icarus.home.lan> <4D45BCE2.1020508@digiware.nl> In-Reply-To: <4D45BCE2.1020508@digiware.nl> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Errors booting of the ZFS alternative mirror disk 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: Sun, 30 Jan 2011 22:29:52 -0000 On 30-1-2011 20:32, Willem Jan Withagen wrote: >>>>> But with only the second disk in the system, it does not boot. Not >>>>> even when I put it in the bay of the first disk. >>>>> >>>>> On screen I get: >>>>> Error 1 lba 32 >>>>> Error 1 lba 1 >>>>> Error 1 lba 32 >>>>> Error 1 lba 1 >>>>> No ZFS pools located, can't boot This code stems from boot/boot2.c: static int drvread(void *buf, unsigned lba, unsigned nblk) { static unsigned c = 0x2d5c7c2f; v86.ctl = V86_ADDR | V86_CALLF | V86_FLAGS; v86.addr = XREADORG; /* call to xread in boot1 */ v86.es = VTOPSEG(buf); v86.eax = lba; v86.ebx = VTOPOFF(buf); v86.ecx = lba >> 16; v86.edx = nblk << 8 | dsk.drive v86int(); v86.ctl = V86_FLAGS; if (V86_CY(v86.efl)) { printf("error %u lba %u\n", v86.eax >> 8 & 0xff, lba); return -1; } return 0; } Suggesting that code from boot1 is used to read from the disk. Now the question would be why doesn't this then just work when I place the disk in at the first position. This is not going to be a charmer, diving back into assembly and old PC BIOS conventions.... Or could this occur when the MBR is not "correct"? --WjW