From owner-freebsd-questions@FreeBSD.ORG Tue Apr 10 16:55:01 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8073E16A400 for ; Tue, 10 Apr 2007 16:55:01 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 52D1013C465 for ; Tue, 10 Apr 2007 16:55:01 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id CA5365199A; Tue, 10 Apr 2007 12:54:59 -0400 (EDT) Date: Tue, 10 Apr 2007 17:54:56 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070410175456.3b2b6f89@gumby.homeunix.com> In-Reply-To: <20070321221550.GB72124@slackbox.xs4all.nl> References: <20070320190305.O29971@chylonia.3miasto.net> <20070320223619.6c18cd08@gumby.homeunix.com> <20070320231504.GB38069@slackbox.xs4all.nl> <20070321001321.5dea258f@gumby.homeunix.com> <20070321070251.GA50637@slackbox.xs4all.nl> <20070321183319.72ceab4c@gumby.homeunix.com> <20070321221550.GB72124@slackbox.xs4all.nl> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Roland Smith Subject: Re: gbde and geli - differences X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 16:55:01 -0000 On Wed, 21 Mar 2007 23:15:50 +0100 Roland Smith wrote: > On Wed, Mar 21, 2007 at 06:33:19PM +0000, RW wrote: > > How do you attach the dvd content? > > > > # geli attach /dev/cd0 > > Cannot read metadata from /dev/cd0: Invalid argument. > > > > geli attach -r /dev/cd0 > > Cannot read metadata from /dev/cd0: Invalid argument. > > I get the same error. Odd. I thought I used that trick before. It > definitely works on the USB drives that I use as primary backup (no > memory disk necessary in that case). I asked about this in the geom list. It turns out that the md device needs to have the same sector size as the DVD (2048 bytes). If you create it like this: mdconfig -a -t vnode -S 2048 -f imagefile it all works correctly.