Geom_eli problems

Bernt Hansson bernt at bah.homeip.net
Wed May 20 01:38:36 UTC 2009


mike at sentex.net said the following on 2009-05-20 03:05:
> On Tue, 19 May 2009 14:21:58 +0200, in sentex.lists.freebsd.questions
> you wrote:
> 
>> Hello list.
>>
>> I'm running this;
>>
>> FreeBSD 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009 
>>     root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>>
>> and I'm trying to encrypt my usb memory with geli.
>>
>> But it does not work according to the handbook or this homepage
>> http://cb.vu/unixtoolbox.xhtml#cryptpart
>>
>> This works
>>
>> geli init -s 4096 -l 256 /dev/da0
>> Enter new passphrase:
>> Reenter new passphrase:
> 
> 
> Hi,
> 	Try with the key example from the manpage
> 
>           dd if=/dev/random of=/tmp/disk.key bs=64 count=1
>            geli init -s 4096 -K /tmp/disk.key /dev/da0
>            Enter new passphrase:
>            Reenter new passphrase:
>            # geli attach -k /tmp/disk.key /dev/da0
>            Enter passphrase:
>            # newfs /dev/da0.eli
>            # mount /dev/da0.eli /mnt
>            ...
>            # umount /mnt
>            # geli detach da0.eli

geli attach -k /root/da0.key /dev/da0
geli: Cannot read metadata from /dev/da0: Invalid argument.


More information about the freebsd-questions mailing list