LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unexpected grub entries after Kernel update with Yast2 (https://www.linuxquestions.org/questions/linux-newbie-8/unexpected-grub-entries-after-kernel-update-with-yast2-927734/)

motux 02-05-2012 08:00 AM

Unexpected grub entries after Kernel update with Yast2
 
Hi all!

First of all I probably have to excuse as my question might already have been answered in one of these forums. Unfortunately I could not limit my search requests as to get less than a thousand results...
So my problem is: I'm using grub2 as boot menu for my openSuse 11.4 distro. Now, everytime I install a kernel update (yast2), my menu.lst in /boot gets updated as well as the grub.conf - but incorrectly! Some time ago I moved my system from one hd to another. So what changed was hd number (0,3 -> 0,0) and id (...FUJITSU -> SAMSUNG...).
This is what current entries look like:
a.) menu.lst
root (hd0,3)
kernel /boot/c root=/dev/disk/by-id/ata-FUJITSU_yyy-part4 resume=/dev/disk/by-id/ata-SAMSUNG_xxx-part1 splash=silent showopts vga=0x36e
initrd /boot/initrd-2.6.37.6-0.11-desktop

b.) grub.conf
root (hd0,0)
kernel /boot/vmlinuz-2.6.37.6-0.9-desktop root=/dev/disk/by-id/ata-SAMSUNG_xxx-part1 resume=/dev/sda2 splash=silent showopts vga=0x367
initrd /boot/initrd-2.6.37.6-0.9-desktop

What is weird (in my eyes):
a.) has correct initrd entry (vmlinuz-2.6.37.6-0.11-desktop) while root-entry and kernel is wrong (kernel hd device: old Fujitsu-ID, expected root: hd0,0 as in b.)

Theres a hint in grub.conf as follows:
# Modified by YaST2. Last modification on Tue Aug 30 01:16:15 CEST 2011
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

However, when I look at the bootloader file I get these parameters (among others):
LOADER_TYPE="grub"
LOADER_LOCATION="boot"
DEFAULT_NAME="openSUSE 11.4 - 2.6.37.6-0.7"
DEFAULT_APPEND="resume=/dev/disk/by-id/ata-SAMSUNG_xxx-part1 splash=silent showopts"
XEN_KERNEL_APPEND=(see above)

Now I'm confused! Where does Yast get the (wrong/old) Fujitsu hard disk from and why referencing the wrong hd-no (0,3) instead (0,0)? How can I see if the "perl-Bootloader" is effective/installed/...? I do not know anything about it (meaning I did not install it by purpose).

Help is really apprechiated. I don't want to edit my boot menu before booting and afterwards modify my grub-files after each and every kernel update!

BR and thX in advance!
motux


All times are GMT -5. The time now is 06:27 PM.