Problem with editing grub2 entries: OpenSUSE 12.2

Hello,
i’m a new user of openSUSE 12.2, i’m using gnome version. it’s using grub2 as default. i like the graphical boot menu of openSUSE 12.2, but problem is i don’t know how to edit the grub menu entries.
for example- grub detects my windows 8 partition as ‘windows recovery environment on (/dev/sda1)’ but this looking kinda odd :frowning: so i want to rename this grub entry as ‘Windows 8’ or something like this, how can i edit grub menu entries? i used ubuntu before and created a totally custom grub menu following this post: Grub 2 Basics - Ubuntu Forums (check section-6: Adding menu entries togrub2->totally customized menu)

but this method isn’t working under openSUSE 12.2, moreover editing of /boot/grub2/grub.cfg manually will not work as it’s not persistent.
now i need to know how to create a custom menu or edit existing entries of grub2? any idea?
Regards.

You couls disable os-prober which tries to detect other OSes:

echo GRUB_DISABLE_OS_PROBER=true >> /etc/default/grub

and then add your custom boot entries to /etc/grub.d/40_custom or /boot/grub2/custom.cfg. The former requires that you refresh grub.cfg; on openSUSE you can use

update-bootloader --refresh

for it. The latter is effective immediately - file is sourced on boot by grub2.

You could also try updategrub script from @please_try_again which likely does better job: http://forums.opensuse.org/english/other-forums/development/programming-scripting/479451-latest-os-prober-updategrub-development.html

thanks a lot. this solved my problem. mark this post as solved :slight_smile: