How to change passphrase for FreeBSD 11.0 encrypted ZFS root?
David Christensen
dpchrist at holgerdanske.com
Wed Jun 14 17:41:08 UTC 2017
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.
More information about the freebsd-questions
mailing list