From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RVuWE-0007O8-06 for garchives@archives.gentoo.org; Thu, 01 Dec 2011 00:28:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11D6D21C04E; Thu, 1 Dec 2011 00:28:38 +0000 (UTC) Received: from karnak.local (cpc2-lutn10-2-0-cust603.9-3.cable.virginmedia.com [81.97.90.92]) by pigeon.gentoo.org (Postfix) with ESMTP id 9002821C038 for ; Thu, 1 Dec 2011 00:27:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id AB23F3003 for ; Thu, 1 Dec 2011 00:27:14 +0000 (GMT) X-Virus-Scanned: amavisd-new at local Received: from karnak.local ([127.0.0.1]) by localhost (karnak.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x8bAlqpRW03r for ; Thu, 1 Dec 2011 00:27:13 +0000 (GMT) Received: from karnak.local (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id EF6EB3002 for ; Thu, 1 Dec 2011 00:27:12 +0000 (GMT) Date: Thu, 1 Dec 2011 00:27:06 +0000 From: David W Noon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Full disk encryption Message-ID: <20111201002706.5a77f2fd@karnak.local> In-Reply-To: <20111130232656.45b21f47@digimed.co.uk> References: <20111130152753.176a9a08@hactar.digimed.co.uk> <4ED67664.1060302@gmail.com> <20111130202828.34f30c74@karnak.local> <20111130214733.19888eb1@digimed.co.uk> <20111130220735.5105ba14@karnak.local> <20111130232656.45b21f47@digimed.co.uk> Organization: Luton Operatic Society X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.5; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/TaItlYTFD+sx_T4ZGu4lcnI"; protocol="application/pgp-signature" X-Archives-Salt: 09ec8930-c5b9-4607-9ecc-17e8ccf4a33c X-Archives-Hash: 644b5ba3e78841370428a4b1c7630035 --Sig_/TaItlYTFD+sx_T4ZGu4lcnI Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 30 Nov 2011 23:26:56 +0000, Neil Bothwick wrote about Re: [gentoo-user] Re: Full disk encryption: > On Wed, 30 Nov 2011 22:07:35 +0000, David W Noon wrote: >=20 > > > Why do you need e2fsprogs on an initramfs? =20 > >=20 > > One needs e2fsck to do a "preen" prior to mounting the required > > volume(s). >=20 > Why not mount root read-only, just like in a non-initramfs system? >=20 > Any e2fsck commands will be run during the boot runlevel, before > remounting root rw. Unfortunately, the system does not work that way. When running inside an initramfs, one cannot load executable content from mount points -- only from within the initramfs. So, while it is perfectly possible to do "ls /mnt/root/sbin/e2fsck" (assuming the root partition has been mounted ro as /mnt/root), it is not possible to load and execute that program. [And, yes, I have adjusted the PATH and LD_LIBRARY_PATH shell variables to address the program and library directories on the mounted root partition.] After performing a switch_root to the actual root partition, this restriction is lifted. When running without (or with the default) initramfs, the root partition itself becomes the active filesystem, so loading programs from /sbin or /bin and libraries from /lib works as expected. This might be one of Dale's problems, if he was trying to use commands from the root filesystem within the initramfs. --=20 Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwnoon@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* --Sig_/TaItlYTFD+sx_T4ZGu4lcnI Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk7WyeAACgkQc9/LpQ70v4/uLwCePtetWUHCWqHNzYEvBLsd9CO3 K88AoKDRRvXnoBeUXDWNBYPv9CDQ7vYN =Pzhg -----END PGP SIGNATURE----- --Sig_/TaItlYTFD+sx_T4ZGu4lcnI--