GELI Passphrase changing

RW rwmaillists at googlemail.com
Tue Jun 26 15:42:42 UTC 2012


On Tue, 26 Jun 2012 17:52:28 +0300
icameto icameto wrote:

> Hi everyone,
> 
> I d like to ask you a question about geli and pasphrase changing.
> 
> # dd if=/dev/random of=/root/da1.key  bs=64 count=1
> 
> # geli init -s 4096 -K /root/da1.key /dev/da1
> 
> # geli attach -k /root/da1.key /dev/da1
> 
> How can I change the passphrase for my GELI device? Please give me an
> advice. I have not change the old key file . When I enter this
> command, I get an error .
> 
> # geli setkey -k /etc/geli/da1.key /dev/da1.eli
>   geli: Cannot read metadata from /dev/da1.eli: Invalid argument.

That should probably be -K. You've already attached the device so you
don't need the old passphrase or keyfile.


More information about the freebsd-geom mailing list