From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 18:29:38 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE4CF16A419 for ; Sun, 20 Jan 2008 18:29:38 +0000 (UTC) (envelope-from fbsd06+SK=d329cc7e@mlists.homeunix.com) Received: from mxout-04.mxes.net (mxout-04.mxes.net [216.86.168.179]) by mx1.freebsd.org (Postfix) with ESMTP id A25BA13C457 for ; Sun, 20 Jan 2008 18:29:38 +0000 (UTC) (envelope-from fbsd06+SK=d329cc7e@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 DCACFD05BF for ; Sun, 20 Jan 2008 13:29:35 -0500 (EST) Date: Sun, 20 Jan 2008 18:29:31 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080120182931.58aba4d2@gumby.homeunix.com.> In-Reply-To: <20080120212048.J91357@dogmatix.home.rakhesh.com> References: <20080120212048.J91357@dogmatix.home.rakhesh.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.5; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: GELI key from a USB disk 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: Sun, 20 Jan 2008 18:29:38 -0000 On Sun, 20 Jan 2008 21:25:36 +0400 (GST) Rakhesh Sasidharan wrote: > Hi, > > I thought this should be easy but its not working ... :( > > I have a USB disk /dev/da0. That's got a GELI key. I also have an > external hard-disk with partitions /dev/da1s1[a-f]. All GELI > encrypted. > > What I want is that while booting up these encrypted partitions are > loaded. And their key taken from the da0 USB disk. > > I tried the obvious like mounting the USB disk in /etc/fstab and > giving it a lower pass no. than the encrypted partitions. But turns > out that doesn't work. Pass number has nothing to do with mounting order, but ... >FreeBSD tries to attach the GELI partitions > before mounting local filesystems! It has to, you have to attach a geli encrypted device before mounting the .eli device. You probably need to write a script to do the attach, fsck and mount.