Newly-installed Leap 42.1 OS not available in bootloader

I installed an additional Linux system (Leap 42.1) in previously-unused space on a drive that has a SuSE 13.2 system. Here is the configuration of the drive (from the install process drive configuration dialog and now showing in the 13.2 partitioner [less the “/” mount point in the latter]):

/dev/sde    476.94 GB

/dev/sde1       2.01 GB             Linux swap     Swap     swap    [SuSE 13.2]
/dev/sde2      99.61 GB            Linux native     Ext4      /

/dev/sde3    375.31 GB             Extended
/dev/sde5    375.31 GB       F    Linux native    BtrFS     /          [Leap 42.1]

The current version of grub2 in 13.2: 2.02~beta2-20.14.2

I took the default options in the bootloader dialog:

Booting
        . . .
        Change Location:
            Install bootcode into MBR [do not install]
            Do not install bootcode into “/” partition [do not install]

When the installation completed (with updates), the system rebooted into 13.2 but does not provide an option for 42.1 on the boot loader page. Nor is it available under the bootloader option tab in Yast2/bootloader (in the 13.2 system).

Will the command “grub2-mkconfig -o /boot/grub2/grub.cfg” detect and add the new system to the bootloader and grub?

Thank you.

You left 13.2 in charge you must now tell it a new OS is installed.

In Yast -boot loader set scan for foreign OS box that should find it

gogalthorp -

Thank you for the reply.

In YaST2 > Boot loader > Bootloader Options (third or right-most tab), the option “Probe Foreign OS” is (and was) checked.

Is that what you meant by “set scan for foreign OS box?”

I also ran os-prober in the shell with no luck on 42.1 Only two other installations popped up: Windows XP and openSuSE 13.1, both on other drives; these are available on the boot loader page when the machine starts up.

gogalthorp -

On a hunch, I checked and found more recent versions of os-prober (as well as grub2, of which I was aware). I just updated both os-prober and four grub2 files (grub2-2.02~beta2-20.14.2.x86_64; grub2-i386-pc-2.02~beta2-20.14.2.x86_64; grub2-x86_64-efi-2.02~beta2-20.14.2.x86_64; and grub2-snapper-plugin-2.02~beta2-20.14.2).

Leap 42.1 now appears in the os-prober results and in YaST2 bootloader options.

Should I now run the “grub2-mkconfig -o /boot/grub2/grub.cfg” command?

You can or just do it in Yast a small change and back again then accept. A tweak will make Yast modal think a change is made and thus rebuild things. Using the command line is ok too bu I think Yast is less prone to mistakes

I do not see any option in Yast other than to select a specific default installation, which is not what I’m attempting to do here.

The issue now seems be that the bootloader menu is not updating. Running “update-bootloader --refresh” did not resolve the issue.

And 42.1 is showing in grub.cfg:

### BEGIN /etc/grub.d/30_os-prober ###
 . . .

menuentry 'openSUSE 42.1 (x86_64) (on /dev/sde5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-0f039c98-77ff-45ba-9c39-a16194c124be' {
    insmod part_msdos 
    insmod btrfs
    set root='hd0,msdos5'
    if  x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 --hint='hd0,msdos5'  0f039c98-77ff-45ba-9c39-a16194c124be
    else
      search --no-floppy --fs-uuid --set=root 0f039c98-77ff-45ba-9c39-a16194c124be
    fi
    linux /@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default root=UUID=0f039c98-77ff-45ba-9c39-a16194c124be ${extra_cmdline} resume=/dev/disk/by-uuid/c7dbed1d-6fb7-489b-8737-bd866c0f915d splash=silent quiet showopts
    initrd /@/.snapshots/1/snapshot/boot/initrd-4.1.21-14-default
}
submenu 'Advanced options for openSUSE 42.1 (x86_64) (on /dev/sde5)' $menuentry_id_option 'osprober-gnulinux-advanced-0f039c98-77ff-45ba-9c39-a16194c124be' {
    menuentry 'openSUSE Leap 42.1 (on /dev/sde5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default--0f039c98-77ff-45ba-9c39-a16194c124be' {
        insmod part_msdos 
        insmod btrfs
        set root='hd0,msdos5'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 --hint='hd0,msdos5'  0f039c98-77ff-45ba-9c39-a16194c124be
        else
          search --no-floppy --fs-uuid --set=root 0f039c98-77ff-45ba-9c39-a16194c124be
        fi
        linux /@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default root=UUID=0f039c98-77ff-45ba-9c39-a16194c124be ${extra_cmdline} resume=/dev/disk/by-uuid/c7dbed1d-6fb7-489b-8737-bd866c0f915d splash=silent quiet showopts
        initrd /@/.snapshots/1/snapshot/boot/initrd-4.1.21-14-default
    }
    menuentry 'openSUSE Leap 42.1, with Linux 4.1.21-14-default (on /dev/sde5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default--0f039c98-77ff-45ba-9c39-a16194c124be' {
        insmod part_msdos 
        insmod btrfs
        set root='hd0,msdos5'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 --hint='hd0,msdos5'  0f039c98-77ff-45ba-9c39-a16194c124be
        else
          search --no-floppy --fs-uuid --set=root 0f039c98-77ff-45ba-9c39-a16194c124be
        fi
        linux /@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default root=UUID=0f039c98-77ff-45ba-9c39-a16194c124be ${extra_cmdline} resume=/dev/disk/by-uuid/c7dbed1d-6fb7-489b-8737-bd866c0f915d splash=silent quiet showopts
        initrd /@/.snapshots/1/snapshot/boot/initrd-4.1.21-14-default
    }
}

### END /etc/grub.d/30_os-prober ###

How do I get 13.2 to update the menu? grub2-mkconfig?

Does anyone know how to refresh/repopulate the bootloader menu (the splash page with boot options at login)?

While waiting for a response to my query immediately above, I ran grub2-mkconfig, but the menu remains without the 42.1 entries, even though the YaST bootloader lists them:

linux-5:~ # grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-3.16.7-21-desktop
Found initrd image: /boot/initrd-3.16.7-21-desktop
Found linux image: /boot/vmlinuz-3.16.7-7-desktop
Found initrd image: /boot/initrd-3.16.7-7-desktop
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  No volume groups found
Found Microsoft Windows XP Professional on /dev/sda1
Found openSUSE 13.1 (x86_64) on /dev/sda6
Found openSUSE 42.1 (x86_64) on /dev/sde5
done
linux-5:~ # 


I don’t think the lvmetad warning applies in my situation, but I may be wrong about that.

(I hope that I do not have to uninstall and then re-install grub2.)

On 15/06/16 07:46, w2tq wrote:
>
> While waiting for a response to my query immediately above, I ran
> grub2-mkconfig, but the menu remains without the 42.1 entries, even
> though the YaST bootloader lists them:
>
>
> Code:
> --------------------
> linux-5:~ # grub2-mkconfig -o /boot/grub2/grub.cfg
> Generating grub configuration file …
> Found theme: /boot/grub2/themes/openSUSE/theme.txt
> Found linux image: /boot/vmlinuz-3.16.7-21-desktop
> Found initrd image: /boot/initrd-3.16.7-21-desktop
> Found linux image: /boot/vmlinuz-3.16.7-7-desktop
> Found initrd image: /boot/initrd-3.16.7-7-desktop
> WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
> No volume groups found
> Found Microsoft Windows XP Professional on /dev/sda1
> Found openSUSE 13.1 (x86_64) on /dev/sda6
> Found openSUSE 42.1 (x86_64) on /dev/sde5
> done
> linux-5:~ #
>
>
> --------------------
>
>
> I don’t think the lvmetad warning applies in my situation, but I may be
> wrong about that.
>
> (I hope that I do not have to uninstall and then re-install grub2.)
>
>
Hi,
Did you install bootloader for Leap as well?
If 13.2 is your bootloader, your above grub2 config should work, IMHO.

Peter_Abc -

In the opening post, I indicated that I accepted the default options in the bootloader dialog:
Code:

Booting
        . . .         Change Location:
            Install bootcode into MBR [do not install]
            Do not install bootcode into “/” partition [install]

The MBR is on the drive where I initially loaded 13.2 (see the first code section in the opening post for the drive layout).

Is the second and last line where the problem occurred?

Further, if bootcode should have been installed in both 13.2 and 42.1, how would I now install the bootcode in the second location?

I think you’re missing something: the MBR code is pointing to the GRUB install of your 13.2 . So, you need to boot 13.2, and use Yast’s bootloader module ( f.e. change the delay from 8 to 7 seconds ) to force the bootloader configuration and install to be regenerated.

Knurpht -

Thank you. I do boot into 13.2 - that and the legacy 13.1 and Windows XP are the only options available on this pc. And the 13.2 installation is my main production workstation (with virtual machines, Win 7, etc.).

What is missing from the bootloader menu is the 42.1 - I am currently unable, short of using a rescue disk, to log into 42.1

I am now and have always been in 13.2. And I’ve accessed the Yast boot loader many times (see post #4 where I stated that 42.1 is now showing as an option). And have reloaded it as well.

In the Yast bootloader, under the first tab (boot code options), under Boot Loader Location, the second of three (Boot from Root Partition) is checked. The first and third (Boot from Master Boot Record and Boot from Extended Partition) are not checked. “Set active Flag in Partition Table for Boot Partition” and “Write generic Boot Code to MBR” are also checked.

The Kernel parameters (second tab) were left as is.

The third tab, bootloader options, Timeout is now 8 seconds. If I understand your comment, I need to reduce that to 7. (I guess that is to make Yast think the configuration has changed, which I believe I accomplished previoulsy by unchecking and then re-checking a box.)

On 15/06/16 17:56, w2tq wrote:
>
> Further, if bootcode should have been installed in both 13.2 and 42.1,
> how would I now install the bootcode in the second location?

>> Found Microsoft Windows XP Professional on /dev/sda1
Found openSUSE 13.1 (x86_64) on /dev/sda6
Found openSUSE 42.1 (x86_64) on /dev/sde5
done
linux-5:~ # <<
Hi,
I realised after posting my 1st reply that you have openSUSE 13.1
reported by ‘grub2-mkconfig -o /boot/grub2/grub.cfg’ but you keep
writing about 13.2. I have leap and 13.2 and kernel version looks like
13.2 (but not latest).

FYI, Knurpht and gogalthorp are the Linux Gurus in this thread and you
should take their advice before anything I say. I am a novice and just
an ordinary openSUSE user who is using a multi-boot pc with Leap 42.1 (2
installs, Gnome and Xfce), openSUSE 13.2 KDE4, openSUSE 11.4 Gnome 2.32,
Centos 6.8 and 7.2 and Mint 17.3 Xfce and I have been sorting out some
issues recently. My system has Leap 42.1 Grub2 on MBR and on the other
OSes not installed at all (but that may not be the best option?). I
previously had Mint 17.3 as the Grub2 boot controller and accidentally
forgot to opt out from installing Grub2 to MBR when upgrading 13.2 to
Leap 42.1 Gnome. Thus when you install grub/2 to MBR on one OS it should
take over from the other.

How to install Grub2 to MBR
As Knurpht advises, go to Yast2 (Control Center) —> Boot Loader
(Module) and go through the options there to install Grub2 for your
preferred openSUSE OS. I have used that option a few times and it works
good. Though all my OS partitions are on /dev/sda (one hdd on laptop)
and my Linux fs are ext4.

Cheers,
Peter

Knurpht -

I just reloaded the bootloader configuration in Yast and rebooted. 42.1 is still missing from the bootloader menu on startup. And /etc/boot/grub2/grub.cfg bears a new date time. Here is the /grub.d/30_os_prober excerpt from grub.cfg (no change from before):

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Microsoft Windows XP Professional (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-F87813377812F3DA' {
    insmod part_msdos 
    insmod ntfs
    set root='hd1,msdos1'
    if  x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd1,msdos1'  F87813377812F3DA
    else
      search --no-floppy --fs-uuid --set=root F87813377812F3DA
    fi
    drivemap -s (hd0) ${root}
    chainloader +1
}
menuentry 'openSUSE 13.1 (x86_64) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-ab9c0fc1-ab45-4432-85aa-95d1213ea0da' {
    insmod part_msdos 
    insmod ext2
    set root='hd1,msdos6'
    if  x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd1,msdos6'  ab9c0fc1-ab45-4432-85aa-95d1213ea0da
    else
      search --no-floppy --fs-uuid --set=root ab9c0fc1-ab45-4432-85aa-95d1213ea0da
    fi
    linux /boot/vmlinuz-3.11.10-25-desktop root=UUID=ab9c0fc1-ab45-4432-85aa-95d1213ea0da resume=/dev/disk/by-id/ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30724844-part5 splash=silent quiet showopts
    initrd /boot/initrd-3.11.10-25-desktop
}
submenu 'Advanced options for openSUSE 13.1 (x86_64) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-ab9c0fc1-ab45-4432-85aa-95d1213ea0da' {
    menuentry 'openSUSE 13.1 (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.11.10-25-desktop--ab9c0fc1-ab45-4432-85aa-95d1213ea0da' {
        insmod part_msdos 
        insmod ext2
        set root='hd1,msdos6'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd1,msdos6'  ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        else
          search --no-floppy --fs-uuid --set=root ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        fi
        linux /boot/vmlinuz-3.11.10-25-desktop root=UUID=ab9c0fc1-ab45-4432-85aa-95d1213ea0da resume=/dev/disk/by-id/ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30724844-part5 splash=silent quiet showopts
        initrd /boot/initrd-3.11.10-25-desktop
    }
    menuentry 'openSUSE 13.1, with Linux 3.11.10-25-desktop (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.11.10-25-desktop--ab9c0fc1-ab45-4432-85aa-95d1213ea0da' {
        insmod part_msdos 
        insmod ext2
        set root='hd1,msdos6'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd1,msdos6'  ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        else
          search --no-floppy --fs-uuid --set=root ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        fi
        linux /boot/vmlinuz-3.11.10-25-desktop root=UUID=ab9c0fc1-ab45-4432-85aa-95d1213ea0da resume=/dev/disk/by-id/ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30724844-part5 splash=silent quiet showopts
        initrd /boot/initrd-3.11.10-25-desktop
    }
    menuentry 'openSUSE 13.1, with Linux 3.11.10-25-desktop (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.11.10-25-desktop--ab9c0fc1-ab45-4432-85aa-95d1213ea0da' {
        insmod part_msdos 
        insmod ext2
        set root='hd1,msdos6'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd1,msdos6'  ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        else
          search --no-floppy --fs-uuid --set=root ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        fi
        linux /boot/vmlinuz-3.11.10-25-desktop root=UUID=ab9c0fc1-ab45-4432-85aa-95d1213ea0da showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
        initrd /boot/initrd-3.11.10-25-desktop
    }
    menuentry 'openSUSE 13.1, with Linux 3.11.10-7-desktop (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.11.10-7-desktop--ab9c0fc1-ab45-4432-85aa-95d1213ea0da' {
        insmod part_msdos 
        insmod ext2
        set root='hd1,msdos6'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd1,msdos6'  ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        else
          search --no-floppy --fs-uuid --set=root ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        fi
        linux /boot/vmlinuz-3.11.10-7-desktop root=UUID=ab9c0fc1-ab45-4432-85aa-95d1213ea0da resume=/dev/disk/by-id/ata-WDC_WD1003FBYX-01Y7B0_WD-WCAW30724844-part5 splash=silent quiet showopts
        initrd /boot/initrd-3.11.10-7-desktop
    }
    menuentry 'openSUSE 13.1, with Linux 3.11.10-7-desktop (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.11.10-7-desktop--ab9c0fc1-ab45-4432-85aa-95d1213ea0da' {
        insmod part_msdos 
        insmod ext2
        set root='hd1,msdos6'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd1,msdos6'  ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        else
          search --no-floppy --fs-uuid --set=root ab9c0fc1-ab45-4432-85aa-95d1213ea0da
        fi
        linux /boot/vmlinuz-3.11.10-7-desktop root=UUID=ab9c0fc1-ab45-4432-85aa-95d1213ea0da showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
        initrd /boot/initrd-3.11.10-7-desktop
    }
}

menuentry 'openSUSE 42.1 (x86_64) (on /dev/sde5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-0f039c98-77ff-45ba-9c39-a16194c124be' {
    insmod part_msdos 
    insmod btrfs
    set root='hd0,msdos5'
    if  x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 --hint='hd0,msdos5'  0f039c98-77ff-45ba-9c39-a16194c124be
    else
      search --no-floppy --fs-uuid --set=root 0f039c98-77ff-45ba-9c39-a16194c124be
    fi
    linux /@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default root=UUID=0f039c98-77ff-45ba-9c39-a16194c124be ${extra_cmdline} resume=/dev/disk/by-uuid/c7dbed1d-6fb7-489b-8737-bd866c0f915d splash=silent quiet showopts
    initrd /@/.snapshots/1/snapshot/boot/initrd-4.1.21-14-default
}
submenu 'Advanced options for openSUSE 42.1 (x86_64) (on /dev/sde5)' $menuentry_id_option 'osprober-gnulinux-advanced-0f039c98-77ff-45ba-9c39-a16194c124be' {
    menuentry 'openSUSE Leap 42.1 (on /dev/sde5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default--0f039c98-77ff-45ba-9c39-a16194c124be' {
        insmod part_msdos 
        insmod btrfs
        set root='hd0,msdos5'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 --hint='hd0,msdos5'  0f039c98-77ff-45ba-9c39-a16194c124be
        else
          search --no-floppy --fs-uuid --set=root 0f039c98-77ff-45ba-9c39-a16194c124be
        fi
        linux /@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default root=UUID=0f039c98-77ff-45ba-9c39-a16194c124be ${extra_cmdline} resume=/dev/disk/by-uuid/c7dbed1d-6fb7-489b-8737-bd866c0f915d splash=silent quiet showopts
        initrd /@/.snapshots/1/snapshot/boot/initrd-4.1.21-14-default
    }
    menuentry 'openSUSE Leap 42.1, with Linux 4.1.21-14-default (on /dev/sde5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default--0f039c98-77ff-45ba-9c39-a16194c124be' {
        insmod part_msdos 
        insmod btrfs
        set root='hd0,msdos5'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos5 --hint-efi=hd4,msdos5 --hint-baremetal=ahci4,msdos5 --hint='hd0,msdos5'  0f039c98-77ff-45ba-9c39-a16194c124be
        else
          search --no-floppy --fs-uuid --set=root 0f039c98-77ff-45ba-9c39-a16194c124be
        fi
        linux /@/.snapshots/1/snapshot/boot/vmlinuz-4.1.21-14-default root=UUID=0f039c98-77ff-45ba-9c39-a16194c124be ${extra_cmdline} resume=/dev/disk/by-uuid/c7dbed1d-6fb7-489b-8737-bd866c0f915d splash=silent quiet showopts
        initrd /@/.snapshots/1/snapshot/boot/initrd-4.1.21-14-default
    }
}
### END /etc/grub.d/30_os-prober ###

I am unable to figure out why 42.1 is not captured. Peter_Abc mentioned bootcode on the 42.1 partition (see posts 9-11).

What a puzzle!

Peter_Abc -

The 13.1 and 42.1 os_prober was obtained from 13.2. I no longer boot into 13.1 (or XP). Default is 13.2 on /dev/sde; 13.1 is on /dev/sda.

On 15/06/16 07:46, w2tq wrote:
>
> While waiting for a response to my query immediately above, I ran
> grub2-mkconfig, but the menu remains without the 42.1 entries, even
> though the YaST bootloader lists them:
>
>
> Code:
> --------------------
> linux-5:~ # grub2-mkconfig -o /boot/grub2/grub.cfg
> Generating grub configuration file …
> Found theme: /boot/grub2/themes/openSUSE/theme.txt
> Found linux image: /boot/vmlinuz-3.16.7-21-desktop
> Found initrd image: /boot/initrd-3.16.7-21-desktop
> Found linux image: /boot/vmlinuz-3.16.7-7-desktop
> Found initrd image: /boot/initrd-3.16.7-7-desktop
> WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
> No volume groups found
> Found Microsoft Windows XP Professional on /dev/sda1
> Found openSUSE 13.1 (x86_64) on /dev/sda6
> Found openSUSE 42.1 (x86_64) on /dev/sde5
> done
> linux-5:~ #
>
>
> --------------------
>
>
> I don’t think the lvmetad warning applies in my situation, but I may be
> wrong about that.
>
> (I hope that I do not have to uninstall and then re-install grub2.)
>
From your first post:
>>
/dev/sde 476.94 GB

/dev/sde1 2.01 GB Linux swap Swap swap
[SuSE 13.2]
/dev/sde2 99.61 GB Linux native Ext4 /

/dev/sde3 375.31 GB Extended
/dev/sde5 375.31 GB F Linux native BtrFS /
[Leap 42.1]

<<
What is going on here?
[SuSE 13.2]
/dev/sde2 99.61 GB Linux native Ext4 /

Found openSUSE 13.1 (x86_64) on /dev/sda6

On 15/06/16 20:06, w2tq wrote:
>
> Peter_Abc -
>
> The 13.1 and 42.1 os_prober was obtained from 13.2. I no longer boot
> into 13.1 (or XP). Default is 13.2 on /dev/sde; 13.1 is on /dev/sda.
>
Now I see you also have 13.1 on /dev/sda. :slight_smile:

This problem is over my head and I will just post a copy of my leap 42.1
/etc/default/grub file (which is editable) in case it is of any help to
use as a guide and let the experts try to help you sort your issues out.

>>

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

If you change this file, run ‘grub2-mkconfig -o /boot/grub2/grub.cfg’

afterwards to update

/boot/grub2/grub.cfg.

GRUB_DISTRIBUTOR=""
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX_DEFAULT=“showopts”

kernel command line options for failsafe mode

GRUB_CMDLINE_LINUX_RECOVERY=single
GRUB_CMDLINE_LINUX=""

Uncomment to enable BadRAM filtering, modify to suit your needs

This works with Linux (no patch required) and with any kernel that obtains

the memory map information from GRUB (GNU Mach, kernel of FreeBSD …)

#GRUB_BADRAM=0x01234567,0xfefefefe,0x89abcdef,0xefefefef

Uncomment to disable graphical terminal (grub-pc only)

#GRUB_TERMINAL=console

The resolution used on graphical terminal

note that you can use only modes which your graphic card supports via VBE

you can see them in real GRUB with the command `vbeinfo’

#GRUB_GFXMODE=auto

Uncomment if you don’t want GRUB to pass “root=UUID=xxx” parameter to

Linux
#GRUB_DISABLE_LINUX_UUID=true

Uncomment to disable generation of recovery mode menu entries

#GRUB_DISABLE_RECOVERY=true

Uncomment to get a beep at grub start

#GRUB_INIT_TUNE=“480 440 1”

Skip 30_os-prober if you experienced very slow in probing them

WARNING foregin OS menu entries will be lost if set true here

GRUB_DISABLE_OS_PROBER=false

Set to ‘y’ for grub to be installed on an encrypted partition

GRUB_ENABLE_CRYPTODISK=n
#SUSE_BTRFS_SNAPSHOT_BOOTING=true
GRUB_BACKGROUND=/boot/grub2/themes/openSUSE/background.png
GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt
<<
The following are my mods:
GRUB_SAVEDEFAULT=true (I added this line)
GRUB_TIMEOUT=10 (original time is 0)
GRUB_CMDLINE_LINUX_DEFAULT=“showopts” (original is: “quiet splash=silent”)
#SUSE_BTRFS_SNAPSHOT_BOOTING=true (normally enabled)

I’d like to see output of


cat /boot/grub2/grub.cfg
cat /boot/grub2/device.map
sudo fdisk -l
uname -a
cat /etc/os-release

Knurpht -

Thanks. Because of the size, I had to break this up into three parts.

cat /boot/grub2/grub.cfg:

linux-5:~ # cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if  -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif  -s $prefix/grubenv ]; then
  load_env
fi
if  "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if  x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if  "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if  -z "${boot_once}" ]; then                                                                       
    saved_entry="${chosen}"                                                                            
    save_env saved_entry                                                                               
  fi                                                                                                   
}                                                                                                      
                                                                                                       
function load_video {                                                                                  
  if  x$feature_all_video_module = xy ]; then                                                         
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if  x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos 
insmod ext2
set root='hd0,msdos2'
if  x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos2 --hint-efi=hd4,msdos2 --hint-baremetal=ahci4,msdos2 --hint='hd0,msdos2'  3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
else
  search --no-floppy --fs-uuid --set=root 3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
fi
    font="/usr/share/grub2/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=POSIX
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos 
insmod ext2
set root='hd0,msdos2'
if  x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos2 --hint-efi=hd4,msdos2 --hint-baremetal=ahci4,msdos2 --hint='hd0,msdos2'  3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
else
  search --no-floppy --fs-uuid --set=root 3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/boot/grub2/themes/openSUSE/ascii.pf2
insmod png
set theme=($root)/boot/grub2/themes/openSUSE/theme.txt
export theme
if  x${boot_once} = xtrue ]; then
  set timeout=0
elif  x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=8
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos 
        insmod ext2
        set root='hd0,msdos2'
        if  x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos2 --hint-efi=hd4,msdos2 --hint-baremetal=ahci4,msdos2 --hint='hd0,msdos2'  3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
        else
          search --no-floppy --fs-uuid --set=root 3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
        fi
        echo    'Loading Linux 3.16.7-21-desktop ...'
        linux   /boot/vmlinuz-3.16.7-21-desktop root=UUID=3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c   resume=/dev/sde1 splash=silent quiet showopts elevator-deadline
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd-3.16.7-21-desktop
}
submenu 'Advanced options for openSUSE' $menuentry_id_option 'gnulinux-advanced-3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c' {
        menuentry 'openSUSE, with Linux 3.16.7-21-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-21-desktop-advanced-3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos 
                insmod ext2
                set root='hd0,msdos2'
                if  x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos2 --hint-efi=hd4,msdos2 --hint-baremetal=ahci4,msdos2 --hint='hd0,msdos2'  3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                else
                  search --no-floppy --fs-uuid --set=root 3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                fi
                echo    'Loading Linux 3.16.7-21-desktop ...'
                linux   /boot/vmlinuz-3.16.7-21-desktop root=UUID=3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c   resume=/dev/sde1 splash=silent quiet showopts elevator-deadline
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.16.7-21-desktop
        }
        menuentry 'openSUSE, with Linux 3.16.7-21-desktop (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-21-desktop-recovery-3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos 
                insmod ext2
                set root='hd0,msdos2'
                if  x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos2 --hint-efi=hd4,msdos2 --hint-baremetal=ahci4,msdos2 --hint='hd0,msdos2'  3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                else
                  search --no-floppy --fs-uuid --set=root 3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                fi
                echo    'Loading Linux 3.16.7-21-desktop ...'
                linux   /boot/vmlinuz-3.16.7-21-desktop root=UUID=3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c  showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.16.7-21-desktop
        }
        menuentry 'openSUSE, with Linux 3.16.7-7-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-7-desktop-advanced-3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos 
                insmod ext2
                set root='hd0,msdos2'
                if  x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos2 --hint-efi=hd4,msdos2 --hint-baremetal=ahci4,msdos2 --hint='hd0,msdos2'  3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                else
                  search --no-floppy --fs-uuid --set=root 3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                fi
                echo    'Loading Linux 3.16.7-7-desktop ...'
                linux   /boot/vmlinuz-3.16.7-7-desktop root=UUID=3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c   resume=/dev/sde1 splash=silent quiet showopts elevator-deadline
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.16.7-7-desktop
        }
        menuentry 'openSUSE, with Linux 3.16.7-7-desktop (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.7-7-desktop-recovery-3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos 
                insmod ext2
                set root='hd0,msdos2'
                if  x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd4,msdos2 --hint-efi=hd4,msdos2 --hint-baremetal=ahci4,msdos2 --hint='hd0,msdos2'  3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                else
                  search --no-floppy --fs-uuid --set=root 3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c
                fi
                echo    'Loading Linux 3.16.7-7-desktop ...'
                linux   /boot/vmlinuz-3.16.7-7-desktop root=UUID=3f4e9ab8-6c4a-4cc6-a7ce-c4b20daa200c  showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.16.7-7-desktop
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

Parts 2 (second half of cat /boot/grub2/grub.cfg) and 3 to follow.