Results 1 to 9 of 9

Thread: Restore openSUSE grub

  1. #1

    Default 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?

  2. #2

    Default Re: Restore openSUSE grub

    The easiest thing to do is to type the following in Ubuntu:
    Code:
    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?

  3. #3
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,778
    Blog Entries
    16

    Default Re: Restore openSUSE grub

    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!)
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  4. #4

    Default Re: Restore openSUSE grub

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

  5. #5
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,778
    Blog Entries
    16

    Default Re: Restore openSUSE grub

    Quote Originally Posted by Owdy View Post
    Ubuntu is added suse to grub, it isnt issue. I can boot suse, but i also wanna use suse grub, not Ubuntus.
    But if you just prefer openSUSE grub
    Follow this
    Re-Install Grub Quickly with Parted Magic
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  6. #6
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,778
    Blog Entries
    16

    Default Re: Restore openSUSE grub

    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
    My openSUSE 13.1 KDE Box
    My Articles
    Was I any help? If yes: Click the star below

  7. #7

    Default Re: Restore openSUSE grub

    Quote Originally Posted by please_try_again View Post
    The easiest thing to do is to type the following in Ubuntu:

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

    Yes!! Booted suse, opened terminal and did this:
    Code:
    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!

  8. #8

    Default Re: Restore openSUSE grub

    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 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.

  9. #9

    Default Re: Restore openSUSE grub

    Quote Originally Posted by caf4926 View Post
    You can then add an Ubuntu entry manually like this:
    HowTo Multiboot Ubuntu from openSUSE using the GRUB bootloader
    Perfect, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •