Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Ubuntu Grub2 No Longer Detected openSUSE after online update.

  1. #1

    Default Ubuntu Grub2 No Longer Detected openSUSE after online update.

    Hi Everybody,
    This is my first time using openSUSE and my first post in this forum.

    Before, I was using tripleboot system in one hard drive. That included Windows 7,
    Ubuntu 10.10 and Ubuntu 11.04. And yesterday I decided to added openSUSE 11.3
    at another partition. I'm using Ubuntu 11.04 grub2 as bootloader.

    At first there was no problem. All OS detected well, but after opeSUSE online updates
    last night my openSUSE partition won't boot. First, at boot I chose openSUSE and it said
    "Boot kernel first" and nothing happens. And then I boot to ubuntu and ran update-grub
    then I saw grub no longer detected openSUSE partition.

    Please help...

  2. #2

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    This is normal.
    Under Ubuntu, run:
    Code:
    sudo update-grub
    * Welcome to this forum!

  3. #3
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    I am not an expert on Grub2, but if you update openSUSE where the update included a change to the Kernel, you could be in trouble because openSUSE wants to update the legacy grub menu. The normal wisdom to keep Ubuntu and openSUSE happy together is to let both programs load their own boot loaders in separate partitions. Let only one boot and then in the menu of one, load the grub boot loader of the other as if you were loading Windows. You know, the rootnoverify and chainloader +1 stuff. That way, each has their own grub menu and they don't mess with each other. I say, you need to revive Grub2 right now, so here is a link I found on that subject. Then consider letting openSUSE have it own menu and not trying to blend the two together.

    Grub 2 Basics - Ubuntu Forums

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  4. #4

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    Quote Originally Posted by please_try_again View Post
    This is normal.
    Under Ubuntu, run:
    Code:
    sudo update-grub
    * Welcome to this forum!
    Thanks for welcoming me...

    I know it is weird but I'm happy this happen anyway.

    I have just finished updated my ubuntu 11.04 that brought new kernel
    so it updated the grub automatically and I surprised that update-grub
    bring back opensuse to grub menu... yayyy

  5. #5

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    Hi James,
    Thank you for your suggestion.
    I have read before that if we want to make multiple boot linux distros it is safer if we create separate boot partition for each of them.
    But I don't really know how to doing that.
    I think i will try that configuration later, but now my partition table is full and only left one partition that I'm using as opensuse partition.
    I only use partition for opensuse, no separated /home partition and for swap it shares with ubuntu.

    I'm happy now that my opensuse works and I hope it always be like that.

    Thank you.

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

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    I have read before that if we want to make multiple boot linux distros it is safer if we create separate boot partition for each of them.
    No

    A single /boot maybe

    But IMO. Not necessary in most cases.

    Make sure you have the package os-prober installed in Ub*
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  7. #7

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    Quote Originally Posted by jasbutut View Post
    I have read before that if we want to make multiple boot linux distros it is safer if we create separate boot partition for each of them.
    I read that too ... but it's not true. People just like to write this kind of stuff.

    Quote Originally Posted by jasbutut View Post
    I'm happy now that my opensuse works and I hope it always be like that.
    You'll have to run sudo update-grub under Ubuntu after each kernel update on openSUSE. But there is something else you can do. I assume you did install openSUSE's Grub it its own partition. And if not, it's not too late (but I bet you did - or the setup did it for you). Find out which partition it is and edit the file /etc/grub.d/40_custom as root under Ubuntu:

    sudo gedit /etc/grub.d/40_custom

    It looks like this:
    Code:
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    Don't touch these lines but add the following at the end (if for example your openSUSE partition were sda3):

    Code:
    menuentry "openSUSE Grub" {
      set root=(hd0,3)
      chainloader +1
    }
    Notice that (hd0,3) is sda3, (hd0,5) is sda5, (hd1,1) is sdb1, etc. (in Grub2 syntax!)
    Save this file and run sudo update-grub.

    This entry will call (chainload) openSUSE Grub, from where you can also boot openSUSE's kernel. The difference is that this entry will always work, as it is independent from the kernel which is installed under openSUSE. For the other entry to work - the one which boots openSUSE's kernel directly, you'll have to update-grub if this kernel (the openSUSE one) has changed. When Ubuntu updates its own kernel, it runs update-grub afterwards.

  8. #8

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    Quote Originally Posted by caf4926 View Post
    No

    A single /boot maybe

    But IMO. Not necessary in most cases.

    Make sure you have the package os-prober installed in Ub*
    Wow, I'm sure that I read that somewhere

    Thanks for told me this.

    Yes, os-prober package already installed (by default actually)

  9. #9

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    Quote Originally Posted by please_try_again View Post
    I read that too ... but it's not true. People just like to write this kind of stuff.



    You'll have to run sudo update-grub under Ubuntu after each kernel update on openSUSE. But there is something else you can do. I assume you did install openSUSE's Grub it its own partition. And if not, it's not too late (but I bet you did - or the setup did it for you). Find out which partition it is and edit the file /etc/grub.d/40_custom as root under Ubuntu:

    sudo gedit /etc/grub.d/40_custom

    It looks like this:
    Code:
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    Don't touch these lines but add the following at the end (if for example your openSUSE partition were sda3):

    Code:
    menuentry "openSUSE Grub" {
      set root=(hd0,3)
      chainloader +1
    }
    Notice that (hd0,3) is sda3, (hd0,5) is sda5, (hd1,1) is sdb1, etc. (in Grub2 syntax!)
    Save this file and run sudo update-grub.

    This entry will call (chainload) openSUSE Grub, from where you can also boot openSUSE's kernel. The difference is that this entry will always work, as it is independent from the kernel which is installed under openSUSE. For the other entry to work - the one which boots openSUSE's kernel directly, you'll have to update-grub if this kernel (the openSUSE one) has changed. When Ubuntu updates its own kernel, it runs update-grub afterwards.
    After openSUSE update I rebooted the computer and when I chose openSUSE it failed to boot,
    "Can't boot, load kernel first".
    Then I booted ubuntu open the terminal and did sudo update-grub but no output for openSUSE.
    For sure I restarted the computer and well, there was no option for openSUSE. By then, I had no idea.
    Now, i think if the same problem happens again above tips is the solution

    The weird thing, I updated ubuntu after that 11.04 alpha2, a lot of update. Maybe one of them update for grub.
    I read terminal output when it's configuring and I see output for openSUSe boot, lol.

    So, i think maybe this is bug at Ub* part.

    Thanks for your help.

  10. #10
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,729
    Blog Entries
    2

    Default Re: Ubuntu Grub2 No Longer Detected openSUSE after online update.

    I read that too ... but it's not true. People just like to write this kind of stuff.
    +1 ...........
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

Page 1 of 3 123 LastLast

Posting Permissions

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