From owner-freebsd-questions@FreeBSD.ORG Tue Feb 26 22:59:31 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EE59BC11 for ; Tue, 26 Feb 2013 22:59:31 +0000 (UTC) (envelope-from bw.mail.lists@gmail.com) Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by mx1.freebsd.org (Postfix) with ESMTP id 5EB717C5 for ; Tue, 26 Feb 2013 22:59:31 +0000 (UTC) Received: by mail-ee0-f52.google.com with SMTP id b15so2622983eek.25 for ; Tue, 26 Feb 2013 14:59:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=0O3zRcuSOyiHY6jp6RPiQaYINy07I2TLV/KGHsPOaSQ=; b=vn4RTHw9CSigLEvoKTM235k11d4EdD3KH//MNjiFVPJRjhdo1CMzewBkHaQJvvkHD/ XuKpGI60R3qJDoQ2/kACQBRO5jYn0yVsHSYqo1TcxnkaBd22pNgGWaoFfUZVNsLzrTdt RTBR5X5ijmIfxYb7hEmmratk0Xg46optPkG1fwQ1V7KjVjvR/w5qFHf0qZLqAOYbCsCm 3Glhp+XOCi+EM0ZjrrNXqfIKOQEfHL6x4ajO6btfRMtZfh3Sw/0CLvGmez/YbonAIMbp Mja7wTvmCzk4MoqvjYyVsozDSAeBpbqijDiRBR6FgEQU+uP4aH0xseyu2BqwwpAj4U6K 0kxQ== X-Received: by 10.14.210.8 with SMTP id t8mr39089eeo.35.1361919570363; Tue, 26 Feb 2013 14:59:30 -0800 (PST) Received: from [192.168.0.128] (dhcp-089-099-199-083.chello.nl. [89.99.199.83]) by mx.google.com with ESMTPS id t4sm3618340eel.0.2013.02.26.14.59.28 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Feb 2013 14:59:29 -0800 (PST) Message-ID: <512D3E4F.9050005@gmail.com> Date: Wed, 27 Feb 2013 00:59:27 +0200 From: "bw.mail.lists" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: SPAM: Re: ZFS root, error 2 when mounting root References: <5129E079.4040906@gmail.com> <512B7FD0.6040405@gmail.com> <512B8AB5.4070504@gmail.com> <5e43c05e188e34a05f9ccb8f3ebe3380@dweimer.net> <2F343E29-2099-420A-A91A-5BD61C8A8B62@balius.com> In-Reply-To: <2F343E29-2099-420A-A91A-5BD61C8A8B62@balius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 22:59:32 -0000 On 02/26/2013 04:31 PM, Chad M Stewart wrote: > > I've been down this road recently with 9.1-release. I ended up adding these lines to end of my script > > > ## The next two are "hacks" in my book, without the last line, on reboot > ## it gets stuck trying to find zfs:zroot/ROOT, but somehow the -f or reboot "fixes" > # this quirk > zpool export zroot > zpool import -f zroot > reboot > > Without the altroot it replaces the live CD mounts, and basically renders the system pointless, except that it works on reboot. :) I tried all sorts of other ways to make it work, mounting zroot and specifying a cache file, then cp the file over, etc., nothing I did worked except the above. There is probably a cleaner/better way but I was not able to find it. > I seem to remember trying that too, forced import, but after an unsuccessful reboot, not at the end of the script. It didn't work for me. Anyway, thanks for the answers, it's a bit more clear now.