From owner-freebsd-questions@FreeBSD.ORG Tue Feb 26 14:31:10 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5D923964 for ; Tue, 26 Feb 2013 14:31:10 +0000 (UTC) (envelope-from cms@balius.com) Received: from in.mx.balius.com (68-189-209-140.static.ftwo.tx.charter.com [68.189.209.140]) by mx1.freebsd.org (Postfix) with ESMTP id 3D0DE7E0 for ; Tue, 26 Feb 2013 14:31:09 +0000 (UTC) Received: from [10.0.0.82] (68-189-209-142.static.ftwo.tx.charter.com [68.189.209.142]) by in.mx.balius.com (Postfix) with ESMTPSA id 0F30078887; Tue, 26 Feb 2013 14:31:03 +0000 (GMT) Subject: Re: SPAM: Re: ZFS root, error 2 when mounting root Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Chad M Stewart X-Mac: It Just Works! In-Reply-To: <5e43c05e188e34a05f9ccb8f3ebe3380@dweimer.net> Date: Tue, 26 Feb 2013 08:31:02 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <2F343E29-2099-420A-A91A-5BD61C8A8B62@balius.com> References: <5129E079.4040906@gmail.com> <512B7FD0.6040405@gmail.com> <512B8AB5.4070504@gmail.com> <5e43c05e188e34a05f9ccb8f3ebe3380@dweimer.net> To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.1283) 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 14:31:10 -0000 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. -Chad=