[Gllug] Problem with encrypted Debian root.

David Damerell damerell at chiark.greenend.org.uk
Sun Jul 18 14:38:53 UTC 2010


On Friday, 16 Jul 2010, Andrew Back wrote:
>On 15 July 2010 17:47, David Damerell <damerell at chiark.greenend.org.uk> wrote:
>> On Thursday, 15 Jul 2010, Andrew Back wrote:
>>>title           Debian GNU/Linux, kernel 2.6.26-2-686
>>>root            (hd0,1)
>>>kernel          /vmlinuz-2.6.26-2-686 root=/dev/mapper/mosschops-root ro
>>>initrd          /initrd.img-2.6.26-2-686
>>>It prompts me for a passphrase and boots as expected. I only have one
>>>kernel version installed, and this and the corresponding initrd.img
>>>are versioned and in /boot (not root as the above entry, which works,
>>>suggests), and with vmlinuz and initrd.img links in /.
>>Are you sure hd0,1 is what you think it is? (Is /boot a separate
>>partition?)
>/dev/sda1 is a luks partition with LVM on top and LVs for an ext3 root
>and for swap. /dev/sda2 is /boot and simply ext3.

Wait a minute, Grub 1 (but not Grub 2) counts partitions from 0. So
(hd0,1) is /dev/sda2 to Grub 1, isn't it? So _if_ you're using Grub 1
this makes perfect sense, assuming the kernel has the brains to figure
out where the real root partition is... somehow?

I think I'm into guesswork now. However, I observe Grub can't possibly
read anything on /dev/sda1, so it's always going to need the
(versioned) filenames from /boot and to find the files there...

-- 
David Damerell <damerell at chiark.greenend.org.uk> Distortion Field!
Today is First Potmos, July.
Tomorrow will be First Teleute, July.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list