Modify Startup Options

I am using openSUSE 12.2 (64-bit).

Upon booting up openSUSE 12.2, I am presented with the Startup Option screen. One of the three bootup options reads as follows:

 **GNU GRUB 2 -- openSUSE 12.2 - GNU GRUB 2**

If I make that selection, I get “Error 15: File not found”. Therefore, I would like to remove that option from the boot up menu screen (which I think is GNU GRUB 2 v. 0.97).

I tried

sudo update-grub

but it is not a valid command…

So, how do I remove that? I am very inexperienced with these things, so I might need extra detailed instructions.

Thanks.

It sounds like you either updated 12.1 > 12.2 and as a result are using grub legacy
or
When you installed 12.2 you selected Grub Legacy rather than the default Grub 2

So, first, can you confirm how you installed 12.2
And are you using Gnome or KDE

You are right, I went from 12.1 to 12.2 approximately one month ago. However, I do not remember having been asked what kind of GRUB to install.
I am using KDE as a desktop environment.

Because the upgrade would keep the old grub

In a terminal do

su -
kdesu kwrite /boot/grub/menu.lst

enter your password when requested
You can edit this file carefully to remove the entry in question, it will be more than: GNU GRUB 2 – openSUSE 12.2 - GNU GRUB 2
I think, that part is just the Menu title

If in doubt, copy the entire content of the file here and I’ll edit it for you

Here’s the contents of menu.lst

# Modified by YaST2. Last modification on Tue Sep 25 22:56:48 CDT 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader

default 1
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title GNU GRUB 2 -- openSUSE 12.2 - GNU GRUB 2
    kernel (hd0,1)/boot/grub2/core.img root=/dev/disk/by-id/ata-ST3500320AS_9QMAETGT-part2 resume=/dev/disk/by-id/ata-ST3500320AS_9QMAETGT-part1 splash=silent quiet video=1920x1080 showopts vga=0x31a

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 12.2 - 3.4.6-2.10
    root (hd0,1)
    kernel /boot/vmlinuz-3.4.6-2.10-desktop root=/dev/sda2 resume=/dev/disk/by-id/ata-ST3500320AS_9QMAETGT-part1 splash=silent quiet  video=1920x1080 showopts vga=0x31a
    initrd /boot/initrd-3.4.6-2.10-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.2 - 3.4.6-2.10
    root (hd0,1)
    kernel /boot/vmlinuz-3.4.6-2.10-desktop root=/dev/sda2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
    initrd /boot/initrd-3.4.6-2.10-desktop

HOWEVER: You say that in the process of updating from 12.1 to 12.2, the old GRUB was preserved. Shouldn’t I then update GRUB to GRUB 2 instead of editing menu.lst?

I performed a live upgrade from 11.4 to 12.2 a few weeks ago. I noticed the grub2 entry and got that error when first dipping my toes in the water. The reason it is failing is because the path to core.img is wrong for some reason:

kernel (hd0,1)/boot/grub2/core.img

It should be

kernel (hd0,1)/boot/grub2/i386-pc/core.img

then you should be effectively able to chainload grub2 from here.

After I had played with grub2 for a bit, I switched to it completely.

Leave grub version as it is

You can edit the file to look like this

# Modified by YaST2. Last modification on Tue Sep 25 22:56:48 CDT 2012# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader


default 1
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate


###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 12.2 - 3.4.6-2.10
    root (hd0,1)
    kernel /boot/vmlinuz-3.4.6-2.10-desktop root=/dev/sda2 resume=/dev/disk/by-id/ata-ST3500320AS_9QMAETGT-part1 splash=silent quiet  video=1920x1080 showopts vga=0x31a
    initrd /boot/initrd-3.4.6-2.10-desktop


###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.2 - 3.4.6-2.10
    root (hd0,1)
    kernel /boot/vmlinuz-3.4.6-2.10-desktop root=/dev/sda2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
    initrd /boot/initrd-3.4.6-2.10-desktop 



If you get GRUB2 menu after this message you can ignore it. GRUB2 tries to open message catalog for your language and it does not exist. Message is purely cosmetic and should go be removed in future updates.

Switching to GRUB2 will not change anything as this message comes from GRUB2.

You can use YaST2 bootloader configuration to remove it from GRUB menu; it may likely be added back automatically if grub2 is updated.

It worked!
A follow-up question: When I boot up, option

Failsafe -- openSUSE 12.2 - 3.4.6-2.10

is already highlighted. Is there a way to have option

Desktop -- openSUSE 12.2 - 3.4.6-2.10

highlighted instead? That way I could simply press enter and go to the login screen, or set a shorter wait time.

Thank you very much for your help.

Change default to

default 0

That is here

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

Everything works great!
Thanks everybody for your help.