geli encrypted memory disk?

Frank J. Beckmann frank at barda.agala.net
Fri Sep 23 13:04:35 PDT 2005


Hi,

am Mittwoch, 21. September 2005 23:41 schrieb Pawel Jakub Dawidek:
> On Tue, Sep 20, 2005 at 05:33:57PM +0200, Frank J. Beckmann wrote:
> +> after upgrading to FreeBSD 6.0-BETA4 from the 17th I wanted to play a
> bit with +> geli. First try was an encryptet memory disk.
> +>
> +> dd if=/dev/zero of=/var/sdisk bs=2028 count=220
> +> mdconfig -a -t vnode -S 2048 -f /var/sdisk -u 3
> +> geli init -a AES -s 2048 /dev/md3
> +>
> +> Geli asks me the new password twice and then exits with the following
> error: +>
> +> Cannot store metadata on /dev/md3: Invalid argument.
> +>
> +> What am I doing wrong?
>
> You used 2028 block size with dd(1), you probably wanted to use 2048.

Yes, that was my fault, like Eric pointed out. It works now. I wanted to use 
2048, but I didn't see my typo. 

Now I could create a geli encryptet DVD. I create a file backed memory disk. 
Then I create an ISO image. I put the image on the memory disk, then I burn 
the file on the DVD. Now I can attach the DVD and the ISO file system is on 
the attached device.
-- 
Bye
Frank


More information about the freebsd-geom mailing list