Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2017 10:40:26 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to change passphrase for FreeBSD 11.0 encrypted ZFS root?
Message-ID:  <9d558dc0-ce22-ab74-66f3-ed587e0b9da2@holgerdanske.com>
In-Reply-To: <CADyrUxN_QW0StUvRwKFC9KwkfErhn6YBBxeDYhWxxGz-SWVC0w@mail.gmail.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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/14/2017 09:28 AM, Jov wrote:
> On 06/14/2017 12:13 AM,David Christensen wrote:
>> I would now like to edit /boot/loader, to see if I can adjust the settings
>> so that GELI will decrypt my root partition using just a passphrase.
>>
>> When I boot the FreeBSD 11.0 i386 installer into single-user mode:
>>
>> # mount /dev/ada0s1a /mnt
>> mount /dev/ada0s1a: Invalid argument
>>
>> Why is mount(8) complaining?
>>
>> # ls -l /dev/ada0s1a
>> crw-r-----  1 root  operator  0x5b Jun 14 15:53 /dev/ada0s1a
 >
 > Not a ufs?
 > What's the output of gpart show?

Thank you for your reply.  Here is the relevant output:

# gpart show
=>      63  31277169  ada0  MBR  (15G)
         63         1        - free -  (512B)
         64  31277160     1  freebsd  [active]  (15G)
   31277224         8        - free -  (4.0K)

=>       0  31277160  ada0s1  BSD  (15G)
          0   4194304       1  freebsd-zfs  (2.0G)
    4194304   4194304       2  freebsd-swap  (2.0G)
    8388608  22888544       4  freebsd-zfs  (11G)
   31277152         8          - free -
...


So, it looks like ada0s1a is a ZFS VDEV.  That explains why mount is 
complaining.


Trying another approach:

# 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 mount '/bootpool': failed to create mountpoint

# zpool status
    pool: bootpool
   state: ONLINE
    scan: none requested
  config:

          NAME         STATE       READ WRITE CKSUM
          bootpool     ONLINE         0     0     0
            ada0s1a    ONLINE         0     0     0

errors: No known data errors

# find / -name bootpool
<nothing>


Exporting and attempting to import under /tmp produces similar results:

# zpool export bootpool

# zpool list
no pools available

# zpool import -R /tmp bootpool
cannot mount '/tmp/bootpool': failed to create mountpoint

# zpool status
    pool: bootpool
   state: ONLINE
    scan: none requested
  config:

          NAME         STATE       READ WRITE CKSUM
          bootpool     ONLINE         0     0     0
            ada0s1a    ONLINE         0     0     0

errors: No known data errors

# find / -name bootpool
<nothing>


How do I import and mount bootpool?


David


p.s. You and/or your mailer are not following the apparent style 
conventions of this mailing list:

1.  "Interleaved posting" style:

         https://en.wikipedia.org/wiki/Posting_style

2.  Omitting sender's e-mail address in replies.

3.  Indenting sender's text in replies.

4.  Removing obsolete text in replies as the discussion progresses.

But, I see no mention of the above style conventions on the mailing list 
info page:

     https://www.freebsd.org/community/mailinglists.html

I have repaired your replies in my replies (twice).  I request that you 
reconfigure your mailer and follow convention to improve readability and 
avoid unnecessary re-work.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9d558dc0-ce22-ab74-66f3-ed587e0b9da2>