Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2017 20:08:47 -0400
From:      Jim Ohlstein <jim@mailman-hosting.com>
To:        David Christensen <dpchrist@holgerdanske.com>, freebsd-questions@freebsd.org
Subject:   Re: FreeBSD 11.0 boot pool created by installer -- how to import and mount using installer?
Message-ID:  <51d6f981-a763-cdd0-648f-c36f2d757334@mailman-hosting.com>
In-Reply-To: <39a436b5-f09e-220b-954d-8ba272fa3101@holgerdanske.com>
References:  <1fb7f3d1-dfb5-ab75-ab75-12dcc81423ca@holgerdanske.com> <CADyrUxNgfu-g24hcQA9Fc-YATTJA0tmkq%2BN9u3Rta%2B1-Cp%2B=hw@mail.gmail.com> <b1143059-fe17-e024-4e6d-d6dfd4e56464@holgerdanske.com> <CADyrUxNwxNHqWCDXCezCgSWwGmOdshzZZnS09cepF5FZWx1=YA@mail.gmail.com> <CADyrUxMXoDMkumHUSU3=vMSU-PwXyJs73utph8KSaUeoz32Tdw@mail.gmail.com> <CADyrUxN_QW0StUvRwKFC9KwkfErhn6YBBxeDYhWxxGz-SWVC0w@mail.gmail.com> <39a436b5-f09e-220b-954d-8ba272fa3101@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

On 06/14/2017 08:03 PM, David Christensen wrote:
> freebsd-questions:
> 
> I have a FreeBSD 11.0 RELEASE i386 system that I created using the 
> FreeBSD installer (FreeBSD-11.0-RELEASE-i386-memstick.img):
> 
>          Partitioning                    Auto (ZFS)
> 
>          ZFS Configuration
>              Pool Type/Disks             Stripe 1 Disk
>                  Virtual Device type     stripe
>                  (device)                ada0
>              Pool Name                   zroot
>              Force 4K Sectors            YES
>              Encrypt Disks               YES
>              Partition Scheme            MBR (BIOS)
>              Swap Size                   2g
>              Mirror Swap                 NO
>              Encrypt Swap                YES
>              Install                     Proceed with Installation
> 
> 
> I broke the system by attempting to change the root pool passphrase.  I 
> might be able to fix it if I can edit /boot/loader.conf.
> 
> 
> Booting the FreeBSD installer into multi-user mode and then going to a 
> shell:
> 
> # zpool list
> no pools available
> 
> # zpool import
>      pool: bootpool
>        id: <redacted>
>     state: ONLINE
>    action: The pool can be imported using its name or numeric identifier.
>    config:
> 
>           bootpool    ONLINE
>             ada0s1a   ONLINE
> 
> # zpool import bootpool
> cannot import 'bootpool': pool may be in use from other system
> use '-f' to import anyway
> 
> # zpool import -f bootpool
> cannot mount '/bootpool': failed to created mountpoint
> 
> 
> Choosing Live CD produces the same end result.
> 
> 
> I previously obtained the same end result by booting into single-user mode.
> 
> 
> How do I import and mount bootpool using the installer that created it?

Try

# zpool import -f -o mountpoint=/mnt bootpool

-- 
Jim Ohlstein
Profesional Mailman Hosting
https://mailman-hosting.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51d6f981-a763-cdd0-648f-c36f2d757334>