From owner-freebsd-fs@freebsd.org Wed Feb 15 15:43:01 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8609ECE0A52 for ; Wed, 15 Feb 2017 15:43:01 +0000 (UTC) (envelope-from ppauly@gmail.com) Received: from mail-yb0-x22a.google.com (mail-yb0-x22a.google.com [IPv6:2607:f8b0:4002:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 45E6D1039 for ; Wed, 15 Feb 2017 15:43:01 +0000 (UTC) (envelope-from ppauly@gmail.com) Received: by mail-yb0-x22a.google.com with SMTP id 123so45784798ybe.3 for ; Wed, 15 Feb 2017 07:43:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=nAnSnx8A5b5wkzxtPxwV+LA2OqyytP9K3OVkj/PIL3E=; b=dF20xyVBhoAI0hvxR7z48WrAsaI8yYx2sR0MfQZIbibL66gpZC+1BJJU27XpVeG4Iv J1t5gzqs+aioBvNVmegsMPq4cN4e87zmnALDv4SWVoW3IweiIs0pqJd/eR3yqa5cH3wJ 8YxfMo62M1UBBjoq8iQnOvNcYCo+X4WXVLX93PmOfGX+GwXYmFplVl1CgGyK5TJEn68d GZP9IlBfRPSoj6UbmItakpQ3mEYZakYqGhvxaEy8qZbEp6TzRhLnSlF7JV7GwOVXwpnQ uQGnPyqleTUMNs6858ezoNOuXkFi0F5gqZ065H1e++7xOxf4NLzYkw5AvCsCQH5cfqah xZqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=nAnSnx8A5b5wkzxtPxwV+LA2OqyytP9K3OVkj/PIL3E=; b=SD4kTq2MfgZ7JI3QVsq3x5IO0SZ8XhF0CKuqWds2atGYEVdPGJhSUFUHn3Zc5yGJiI 0ZerR51xjuImJ5bm69QvkiJ9zSavRImQmQiyWkKHhVvWU6HzGySfJ1HBSjm/kTmOB4N/ ujR6kQ6KqJVPg+BVCXTH64rNUmoqkzkNQ9OO1dyJIQ/UUuLRjCmJXNHp3fT5sfu9LDQA 9JlLf48yVCu6adjp+fSw77u5oNzrfDWfqoYO1spT2kvUihFbpF9xC16cSXav1cGqzm6c DyZx5GMUDkWyLKrb0URORNGOEUHrjRLoXi0J6KewQnx46lLYuerULE2goUHLXEEDo4QQ Igew== X-Gm-Message-State: AMke39mgikV4qGC5vy2B9L4ZRYDH9av1M37Z/TfZNaxtTCmXdn25Clh6b02eX+fo8yfkguC5Ii6BmtIYs3ke2A== X-Received: by 10.37.199.197 with SMTP id w188mr26002944ybe.4.1487173380178; Wed, 15 Feb 2017 07:43:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.13.251.71 with HTTP; Wed, 15 Feb 2017 07:42:59 -0800 (PST) In-Reply-To: <20170215160254.696d3a1e@fabiankeil.de> References: <20170215160254.696d3a1e@fabiankeil.de> From: Peter Pauly Date: Wed, 15 Feb 2017 10:42:59 -0500 Message-ID: Subject: Re: Moving a bootable ZFS USB between systems To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 15:43:01 -0000 I didn't realize I could retry the mount by typing in zfs:zroot/ROOT/default at the mountroot> prompt. I hadn't even seen the prompt previously because of output that came out over the top of it. I retried the mount and it finished booting correctly. I'm currently not savvy enough with FreeBSD to do source builds, I'll have to read up on that. I've done it on OpenBSD for errata patches so it can't be too bad. Thanks for your help Fabian. On Wed, Feb 15, 2017 at 10:02 AM, Fabian Keil wrote: > Peter Pauly wrote: > > > I installed FreeBSD 11 with an encrypted GELI root and ZFS (zroot) on a > > USB stick. My intention was to boot off of it on several systems. It > > works fine on the original system but not on a second system. > > > > I get this message: > > Mounting from zfs:zroot/ROOT/default failed with error 5. > > > > The USB stick is da0. > > > > The geli part looks like it works, but the zfs mount fails. > > Assuming the boot ends at the mountroot prompt, this is likely the > result of a known bug that is only triggered on some systems: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208882 > > You could try the patch from the PR. It has been included in > ElectroBSD since more than a year now without causing any known > issues. > > > Should I be able to move the stick between systems or do I need to do a > > zpool export zroot first? If so, where is the best place to put this > > (rc.shutdown?) > > In general, moving USB sticks around should not require any special steps. > > Fabian >