All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Rosemann <heiko.rosemann@web.de>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Kernel panic, cannot mount root fs on unknown block (hd0, 0)
Date: Mon, 22 Sep 2014 07:41:39 +0200	[thread overview]
Message-ID: <541FB693.5090006@web.de> (raw)
In-Reply-To: <4ec71eb85448b64e81fad49d5e30a986@airmail.cc>

-----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
- -- 
Mein PGP-Key zur Verifizierung: http://pgp.mit.edu

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQftpAACgkQ/Vb5NagElAWsdgCfZmOaFuUE/DQdEby9jzrBexuX
Bj4AoLuIcwtEKhaAByqGiHVYFI8qLpnY
=vkDn
-----END PGP SIGNATURE-----

  reply	other threads:[~2014-09-22  5:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-21 22:50 [dm-crypt] Kernel panic, cannot mount root fs on unknown block (hd0, 0) vaskez
2014-09-22  5:41 ` Heiko Rosemann [this message]
2014-09-22 10:02   ` Arno Wagner
2014-09-22 19:07     ` Sven Eschenberg
2014-09-22 20:59       ` Arno Wagner
2014-09-22 23:39         ` Sven Eschenberg
2014-09-23  8:46           ` Arno Wagner
2014-09-22 16:10 ` Sven Eschenberg
2014-09-25 19:25   ` vaskez
2014-09-25 22:57     ` Sven Eschenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=541FB693.5090006@web.de \
    --to=heiko.rosemann@web.de \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.