From owner-freebsd-questions@FreeBSD.ORG Sun Jan 20 18:41:03 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 E181C16A419 for ; Sun, 20 Jan 2008 18:41:03 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.freebsd.org (Postfix) with ESMTP id 82BD913C461 for ; Sun, 20 Jan 2008 18:41:03 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id m0KIf1Fj002701; Sun, 20 Jan 2008 19:41:01 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id DF5F7B82A; Sun, 20 Jan 2008 19:41:00 +0100 (CET) Date: Sun, 20 Jan 2008 19:41:00 +0100 From: Roland Smith To: Rakhesh Sasidharan Message-ID: <20080120184100.GA15880@slackbox.xs4all.nl> Mail-Followup-To: Rakhesh Sasidharan , freebsd-questions@freebsd.org References: <20080120212048.J91357@dogmatix.home.rakhesh.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <20080120212048.J91357@dogmatix.home.rakhesh.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org 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:41:04 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 20, 2008 at 09:25:36PM +0400, Rakhesh Sasidharan wrote: > I thought this should be easy but its not working ... :( >=20 > I have a USB disk /dev/da0. That's got a GELI key. I also have an externa= l=20 > hard-disk with partitions /dev/da1s1[a-f]. All GELI encrypted. >=20 > What I want is that while booting up these encrypted partitions are loade= d.=20 > And their key taken from the da0 USB disk. >=20 > I tried the obvious like mounting the USB disk in /etc/fstab and giving i= t=20 > a lower pass no. than the encrypted partitions. But turns out that doesn'= t=20 > work. The pass number in /etc/fstab only affects the fsck order. > FreeBSD tries to attach the GELI partitions before mounting local=20 > filesystems! Any way to delay this step till after the USB disk is mounte= d=20 > and the key available? Or any other suggestions? It _must_ do so in case any local partitions are encrypted (like e.g my /home). What you can do is set the noauto flag for those filesystems, and mount them be hand, or write a script for it. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHk5W8EnfvsMMhpyURAr3wAJwKlygay7QgCVbzPf976uAzmDCz8wCfXCOm r7fEhXSqDmfr49tlrkjEkXc= =qW4t -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--