From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.web.de (mout.web.de [212.227.17.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 22 Sep 2014 07:41:44 +0200 (CEST) Received: from [192.168.123.201] ([78.50.236.91]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MA5qv-1XcEyn209B-00BKH6 for ; Mon, 22 Sep 2014 07:41:44 +0200 Message-ID: <541FB693.5090006@web.de> Date: Mon, 22 Sep 2014 07:41:39 +0200 From: Heiko Rosemann MIME-Version: 1.0 References: <4ec71eb85448b64e81fad49d5e30a986@airmail.cc> In-Reply-To: <4ec71eb85448b64e81fad49d5e30a986@airmail.cc> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] Kernel panic, cannot mount root fs on unknown block (hd0, 0) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/22/2014 12:50 AM, vaskez@airmail.cc wrote: > Several times I have set up virtual machines to test the cryptsetup > software. I can create and remove the encrypted volumes just fine > and mount them, however whenever I am finished setting up my system > and reboot, my kernel panics, ends, then says that it cannot mount > root fs on unknown block (hd0,0). I am sure that it is not a > misconfiguration with the kernel, as I have built kernels for > unencrypted systems and they have booted fine. Some information: You will need to setup an initramfs or modify the one provided with the gentoo install to open your encrypted volumes (at least the root volume). I do not remember how it is "supposed to be done" in gentoo, but I do remember it's not as simple as installing software in the right order. A good starting point would be http://wiki.gentoo.org/wiki/DM-Crypt_LUKS#Generating_an_initramfs - and as this is really distro specific (or maybe systemd takes care of it - I don't know, I won't be trying) it is really beyond the topic of this list. Good luck with your setup, Heiko - --=20 Mein PGP-Key zur Verifizierung: http://pgp.mit.edu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlQftpAACgkQ/Vb5NagElAWsdgCfZmOaFuUE/DQdEby9jzrBexuX Bj4AoLuIcwtEKhaAByqGiHVYFI8qLpnY =3DvkDn -----END PGP SIGNATURE-----