Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2009 03:38:10 +0200
From:      Bernt Hansson <bernt@bah.homeip.net>
To:        mike@sentex.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Geom_eli problems
Message-ID:  <4A135F02.1080906@bah.homeip.net>
In-Reply-To: <2hl6151da28m4e9ur1h6l7rn5mckg0fut3@4ax.com>
References:  <4A12A466.3020202@bah.homeip.net> <2hl6151da28m4e9ur1h6l7rn5mckg0fut3@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
mike@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A135F02.1080906>