Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2013 00:59:27 +0200
From:      "bw.mail.lists" <bw.mail.lists@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: SPAM: Re: ZFS root, error 2 when mounting root
Message-ID:  <512D3E4F.9050005@gmail.com>
In-Reply-To: <2F343E29-2099-420A-A91A-5BD61C8A8B62@balius.com>
References:  <5129E079.4040906@gmail.com> <F3EDE81C-EFE5-404D-9559-E4E7AAF14D60@kraus-haus.org> <512B7FD0.6040405@gmail.com> <D011786B-A200-4F2A-94EA-B8C7BF741D1B@kraus-haus.org> <512B8AB5.4070504@gmail.com> <5e43c05e188e34a05f9ccb8f3ebe3380@dweimer.net> <2F343E29-2099-420A-A91A-5BD61C8A8B62@balius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?512D3E4F.9050005>