From owner-freebsd-questions@FreeBSD.ORG Wed Oct 10 17:54:00 2007 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 3B42916A418 for ; Wed, 10 Oct 2007 17:54:00 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id A24B413C461 for ; Wed, 10 Oct 2007 17:53:59 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id l9AHrnC7057381; Wed, 10 Oct 2007 19:53:50 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 7C0E6B869; Wed, 10 Oct 2007 19:53:49 +0200 (CEST) Date: Wed, 10 Oct 2007 19:53:49 +0200 From: Roland Smith To: Steve Bertrand Message-ID: <20071010175349.GB9770@slackbox.xs4all.nl> Mail-Followup-To: Steve Bertrand , freebsd-questions@freebsd.org References: <470CCDE2.9090603@ibctech.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <470CCDE2.9090603@ibctech.ca> 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.16 (2007-06-09) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Booting a GELI encrypted hard 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: Wed, 10 Oct 2007 17:54:00 -0000 --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 10, 2007 at 09:04:34AM -0400, Steve Bertrand wrote: > Hi all, >=20 > I am voraciously attempting to get a FreeBSD system to boot from a GELI > encrypted hard disk, but am having problems. You don't need to encrypt the whole harddisk. You can encrypt separate slices. There is no need to encrypt stuff like / or /usr; what is there that needs to be kept secret? =20 > All of my searches lead to the same problem...GELI passphrase can not be > entered correctly upon boot. I have tried everything I have found on the > web (including disabling 'kbdmux' in the kernel) to no avail. With a normal AT keyboard I can enter the passphrase without problems, for a non-root partition. > Does anyone have a suggestion for a workaround? Put all the data that really needs to be encrypted on a separate slice, and encrypt that. Leave the rest unencrypted, especially /boot. As a rule of thumb; don't bother encrypting anything that you can just download from the internet. :-) Here's how it looks on my machine; Filesystem Size Used Avail Capacity Mounted on /dev/ar0s1a 496M 126M 330M 28% / devfs 1.0K 1.0K 0B 100% /dev /dev/ar0s1g.eli 120G 82G 28G 75% /home /dev/ar0s1e 496M 16K 456M 0% /tmp /dev/ar0s1f 19G 4.7G 13G 26% /usr /dev/ar0s1d 1.9G 152M 1.6G 8% /var As you can see only /home is encrypted because the rest doesn't hold data worth encrypting. If you encrypted / and /usr, you might actually make the system more vulnerable to a known-plaintext attack, because there are a lot of files with well-known contents there. 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) --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHDRGtEnfvsMMhpyURAv9KAJ9b3Yb3y56/lYZ8Ely/iJ5OeDjxigCeKPIx GLGryANKAu93RJyyDQqMaz4= =IJ5y -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv--