Restore openSUSE grub

I installed Ubuntu side of my suse for testing, now Ubuntu has created its own Grub in boot. How do i restore openSUSEs grub? I tryed to install it again via Yast, rewrited mbr etc, still Ubuntu grub stays.

In suse install dvd had repair option before, there was tools to fix grub. That option is gone from 11.4, why?

The easiest thing to do is to type the following in Ubuntu:

sudo update-grub

It will add an entry to boot openSUSE in Ubuntu’s Grub menu. Then you can boot openSUSE and install its Grub (or not) if you like, either in MBR (which would replace Ubuntu’s Grub in this case) or in its root partition.

see here
Re-Install Grub Quickly with Parted Magic (except that you won’t need PartedMagic as soon as you can boot openSUSE)

and here: updategrub for openSUSE Legacy Grub (not update-grub!)

  • although I guess Ubuntu’s setup did already add an entry to boot openSUSE, didn’t it?

Ubuntu should find openSUSE so you can boot it
If it doesn’t, make sure os-prober is installed and then do: sudo update-grub

But if you just prefer openSUSE grub
Follow this
Re-Install Grub Quickly with Parted Magic

Later: To get ubuntu added to the openSUSE grub follow this
updategrub for openSUSE Legacy Grub (not update-grub!)

Ubuntu is added suse to grub, it isnt issue. I can boot suse, but i also wanna use suse grub, not Ubuntus. :slight_smile:

But if you just prefer openSUSE grub
Follow this
Re-Install Grub Quickly with Parted Magic

You can then add an Ubuntu entry manually like this:
HowTo Multiboot Ubuntu from openSUSE using the GRUB bootloader

Or with the legacy updategrub written by on of our members. I linked you to it earlier

Yes!! Booted suse, opened terminal and did this:


kotipurkki:/home/osku # grub


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

  Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> find /boot/grub/menu.lst
 (hd0,1)

grub> root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.


Fixed! :slight_smile:

Well done! Now, Ubuntu has a script called update-grub to refresh its Grub menu. It gets executed automatically after a kernel update and users may have to run it manually when another OS listed in the menu changes kernel. You can do the same thing with updategrub](http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/advanced-how-faq-read-only/458238-updategrub-opensuse-legacy-grub-not-update-grub.html) under openSUSE (or other distros using Legacy Grub). It works - more or less - the same way and uses the same tool, called os-prober, to detect other Linuxes.

Perfect, thanks!