From owner-freebsd-geom@FreeBSD.ORG Fri Sep 23 20:04:35 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0AA816A41F for ; Fri, 23 Sep 2005 20:04:35 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (I80e1.i.pppool.de [85.73.128.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED4B343D45 for ; Fri, 23 Sep 2005 20:04:33 +0000 (GMT) (envelope-from frank@barda.agala.net) Received: from mail.agala.net (barda [192.168.20.1]) by barda.agala.net (Postfix) with ESMTP id C8AA9119CBB for ; Fri, 23 Sep 2005 22:02:19 +0200 (CEST) Received: from abakus.agala.net (abakus.agala.net [192.168.223.2]) by mail.agala.net (Postfix) with ESMTP id F3A98119CBA for ; Fri, 23 Sep 2005 22:02:18 +0200 (CEST) From: "Frank J. Beckmann" Organization: agala naga doron To: freebsd-geom@freebsd.org Date: Fri, 23 Sep 2005 22:04:21 +0200 User-Agent: KMail/1.8.2 References: <200509201734.00353.frank@barda.agala.net> <20050921213630.GA1167@garage.freebsd.pl> In-Reply-To: <20050921213630.GA1167@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509232204.23606.frank@barda.agala.net> X-Scanned-By: emfilter 1.0 @ 192.168.20.1 X-DSPAM-Result: Innocent X-DSPAM-Processed: Fri Sep 23 22:02:21 2005 X-DSPAM-Confidence: 1.0000 X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 218,43345f4d641771199052252 X-DSPAM-Factors: 27, Organization*naga+doron, 0.40000, Message-Id*agala+net, 0.40000, > From*Frank, 0.40000, Subject*encrypted, 0.40000, > Content-Type*text+plain, 0.40000, References*GA1167+garage, 0.40000, > Content-Disposition*inline, 0.40000, Subject: Re: geli encrypted memory disk? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2005 20:04:35 -0000 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