Gentoo Archives: gentoo-user

From: "Johan Blåbäck" <johan.bluecreek@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Segfaulting cryptsetup in init
Date: Mon, 09 Feb 2009 17:19:30
Message-Id: 4990655B.5070207@gmail.com
In Reply to: Re: [gentoo-user] Segfaulting cryptsetup in init by Mike Kazantsev
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Mike Kazantsev wrote:
5 > On Mon, 09 Feb 2009 09:39:24 +0100
6 > Johan Blåbäck <johan.bluecreek@×××××.com> wrote:
7 >
8 >> I'm setting up this old computer of mine and why not encrypt it. I have
9 >> done this on several computers before, but never have I gotten these
10 >> kind of errors.
11 >
12 > You'll get segfault if you're trying to do something like luksOpen on a
13 > non-existing device.
14 >
15 > At least that was the reason for me, once, when I've tried to
16 > luksOpen /dev/sda2 instead of /dev/sda3, or something like that.
17 >
18 > Had it figured out by putting strace to initrd and running "strace
19 > cryptsetup luksOpen ..." instead of just cryptsetup - gave me something
20 > like "open('/dev/sdaX', ...) = -1 ENXIO (No such device or address)", so
21 > I had to double-check and found the mistake to be that trivial.
22 >
23
24 This was actually one of the first things I checked. Just forgot to
25 mention it. I solved it by adding a 'ls -l /dev' in the init, and there
26 I found out that /dev/sda1 was named /dev/hda1. But I still got the problem.
27
28 > Forgot to compile the Crypto Algorithms in the kernel instead of as
29 > modules? Since lvm runs, the lvm is obviously no module.
30
31 > HTH
32 > Sebastian
33
34 I'm quite sure that I have compiled in all of the algorithms I'm using.
35 But I will add some more just to be sure. Recompiling my kernel as I write.
36
37 Thanks to both of you.
38
39 - --
40 For security reasons, all text in this mail is double-rot13 encrypted.
41 -----BEGIN PGP SIGNATURE-----
42 Version: GnuPG v1.4.9 (GNU/Linux)
43 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
44
45 iEYEARECAAYFAkmQZVsACgkQ82oqndqg+41n6QCdGcoLnojw13UD40GlXkaZc6QX
46 dEkAni6+N/rU0MECoii2q/a7btNj1aRa
47 =QSRA
48 -----END PGP SIGNATURE-----