[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub gets confused when I upgrade the kernel



On Sun, 26 Feb 2012 20:54:31 +0000, Hendrik Boom wrote:

> I have two different Debian systems on my EEEPC -- stable and testing.
>

Let me see if I understand grub's interpretation of menu.lst correctly.
I have a boot stanza in my menu.lst:

title           Debian GNU/Linux, kernel 3.0.0-1-686-pae testing (squeeze-grub) OK
root            (hd0,5)
kernel          /vmlinuz-3.0.0-1-686-pae root=/dev/mapper/VG1-testing--root ro
initrd          /initrd.img-3.0.0-1-686-pae

this means that the kernel, /vmlinuz-3.0.0-1-686-pae, is taken from the 
top-level directory on partition (hd0, 5) which what used to be called /dev/sda6,
and that when this kernel is booted, it will use /dev/mapper/VG1-testing--root
as its root partition.  It's the /etc/fstab file within 
/dev/mapper/VG1-testing--root that it will use to find out what to 
mount on /boot, which should properly be the same (hd0, 5) that was
used to find the kernel.

And finally, when grub-update is run, it uses some of the options within
menu.lst when it creates the new one.  Here I mean options other than
just the existing hand-made static boot stanzas.

-- hendrik


Reply to: