[Techtalk] Grub defaults after new kernel image install
Gina Lanik
geekgrrl at geekgrrl.priv.at
Tue Jul 25 18:42:46 UTC 2006
On Tue, Jul 25, 2006 at 11:08:46AM -0700, Carla Schroder wrote:
> On Tuesday 25 July 2006 10:45, Gina Lanik wrote:
[...]
> > I agree - but riddle me this - how would I find out the last booted
> > kernel/stanza when 'savedefault' is in every one? ;-)
> > E.g. three different initrds but the same title? I remember searching like
> > crazy but couldn't find an answer.
>
> You won't know until you reboot and see the boot menu. I use 'savedefault' on
> my test machines, because I usually need to reboot a lot and it's just too
> much work to sit and wait for the boot menu and then pick the last one I
> used. Oh the suffering. For a production machine it's not very practical.
>
> Not sure what you mean by 'three different initrds but the same title',
> because every stanza must have a different title. That's how GRUB tells them
> apart. Here is a snippet from my test Kubuntu box:
[...]
My bad, I didn't explain properly, memory failed me and it was a little bit
different problem, sorry Carla!
`uname -r` yielded 2.6.7-1-686-smp, and I had the following (and a few more
like this) in my menu.lst:
title Debian GNU/Linux, kernel 2.6.7-1-686-smp (hjp/hd0)
root (hd0,0)
kernel /vmlinuz-2.6.7-1-686-smp root=/dev/vgroot/lv_root ro
initrd /initrd.img-2.6.7-1-686-smp-hjp
savedefault
boot
title Debian GNU/Linux, kernel 2.6.7-1-686-smp (hjp/hd1)
root (hd1,0)
kernel /vmlinuz-2.6.7-1-686-smp root=/dev/vgroot/lv_root ro
initrd /initrd.img-2.6.7-1-686-smp-hjp
savedefault
boot
title Debian GNU/Linux, kernel 2.6.7-1-686-smp (hjp2/hd0)
root (hd0,0)
kernel /vmlinuz-2.6.7-1-686-smp root=/dev/vgroot/lv_root ro
initrd /initrd.img-2.6.7-1-686-smp-hjp2
savedefault
boot
title Debian GNU/Linux, kernel 2.6.7-1-686-smp (hjp2/hd1)
root (hd1,0)
kernel /vmlinuz-2.6.7-1-686-smp root=/dev/vgroot/lv_root ro
initrd /initrd.img-2.6.7-1-686-smp-hjp2
savedefault
boot
How do I determine which one was booted last except for rebooting and
checking which one grub "suggests" due to savedefault? Maybe I didn't
understand the concept properly?
The background on this was that I was trying to clean up unusable
initrd-images on a production box...
Cheers,
Gina
--
Gina Lanik :: LinuxChix member
SysAdmin & DBA :: http://www.linuxchix.org/
http://www.geekgrrl.priv.at/ :: LUGA member
http://nilasae.livejournal.com/ :: http://www.luga.at/
More information about the Techtalk
mailing list