Windows aus Grub verschwunden

Hallo zusammen,

ich habe heute mal Leap 15.3 installiert. Vorher habe ich meine PC auf Secure Boot umgestellt. Bei der Installation wurde auch wie gewünscht eine Efi Partition erstellt:

linux:sudo fdisk -l 
**Festplatte /dev/sda: 465,76 GiB, 500107862016 Bytes, 976773168 Sektoren**
Festplattenmodell: ST3500418AS      
Einheiten: Sektoren von 1 * 512 = 512 Bytes 
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes 
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes 
Festplattenbezeichnungstyp: dos 
Festplattenbezeichner: 0x29bec50e 

**Gerät****Boot****   Anfang****     Ende**** Sektoren**** Größe****Kn****Typ**
/dev/sda1            2048    718847    716800   350M  7 HPFS/NTFS/exFAT 
/dev/sda2          718848 315291647 314572800   150G  7 HPFS/NTFS/exFAT 
/dev/sda3       315291648 316315647   1024000   500M ef EFI (FAT-12/16/32) 
/dev/sda4       316315648 976773167 660457520 314,9G  f W95 Erw. (LBA) 
/dev/sda5       686489600 943200255 256710656 122,4G 83 Linux 
/dev/sda6       943202304 976773167  33570864    16G 82 Linux Swap / Solaris 
/dev/sda7       316317696 686487551 370169856 176,5G 83 Linux 

Partitionstabelleneinträge sind nicht in Festplatten-Reihenfolge.

Jetzt habe ich wieder meinen Lieblingsfehler und Windows ist aus Grub verschwunden.
Die Bootloader-Option “Fremdes OS Test” in Yast ist aktiviert.

Weiß jemand wie ich das Problem wieder lösen kann?

Hier noch ein paar weiter Infos, ich hoffe die helfen: (Die vielen Boot optionen sind mir auch aufgefallen und existieren erst seit der neuen Installation)


linux: sudo efibootmgr
BootCurrent: 0004 
Timeout: 1 seconds 
BootOrder: 0003,0000,0002,0001,0004,0005,0009,000A,000B,000C 
Boot0000* opensuse-secureboot 
Boot0001* Hard Drive  
Boot0002* CD/DVD Drive  
Boot0003* opensuse-secureboot 
Boot0004* opensuse 
Boot0005* UEFI OS 
Boot0009* opensuse 
Boot000A* UEFI OS 
Boot000B* opensuse 
Boot000C* UEFI OS

Die Ausgabe des Skript habe ich gekürzt um es hier posten zu können, denn Rest kann ich bei Bedarf auch noch hochladen.

                 Boot Info Script 0.78      [09 October 2019]


============================= Boot Info Summary: ===============================

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos3)/boot/grub2. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    crypto gcry_crc gzio diskfilter raid6rec extcmd lzopio btrfs part_msdos 
    biosdisk
    ---------------------------------------------------------------------------
    
    config script
    ---------------------------------------------------------------------------
    set btrfs_relative_path='y'
    btrfs-mount-subvol ($root) /boot/grub2/i386-pc @/boot/grub2/i386-pc
    
    ---------------------------------------------------------------------------
 => No boot loader is installed in the MBR of /dev/sdb.
 => libparted MBR boot code is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Windows/System32/winload.exe

sda3: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT16
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/boot/bootx64.efi /efi/boot/fallback.efi 
                       /efi/boot/MokManager.efi /efi/opensuse/grub.efi 
                       /efi/opensuse/grubx64.efi /efi/opensuse/MokManager.efi 
                       /efi/opensuse/shim.efi /efi/opensuse/grub.cfg

sda4: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       xfs
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda7: __________________________________________________________________________

    File system:       btrfs
    Boot sector type:  -
    Boot sector info: 
    Operating System:  openSUSE Leap 15.3
    Boot files:        /boot/grub2/grub.cfg /etc/fstab


============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Festplatte /dev/sda: 465,76 GiB, 500107862016 Bytes, 976773168 Sektoren
Festplattenmodell: ST3500418AS     
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1               2,048       718,847       716,800   7 NTFS / exFAT / HPFS
/dev/sda2             718,848   315,291,647   314,572,800   7 NTFS / exFAT / HPFS
/dev/sda3         315,291,648   316,315,647     1,024,000  ef EFI (FAT-12/16/32)
/dev/sda4         316,315,648   976,773,167   660,457,520   f W95 Extended (LBA)
/dev/sda5         686,489,600   943,200,255   256,710,656  83 Linux
/dev/sda6         943,202,304   976,773,167    33,570,864  82 Linux swap / Solaris
/dev/sda7         316,317,696   686,487,551   370,169,856  83 Linux


Drive: sdb _____________________________________________________________________
Festplatte /dev/sdb: 465,76 GiB, 500107862016 Bytes, 976773168 Sektoren
Festplattenmodell: WDC WD5000AAKX-0
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1                   1   976,773,167   976,773,167  ee GPT


GUID Partition Table detected.

Partition  Attrs   Start Sector    End Sector  # of Sectors System
/dev/sdb1                 2,048   939,726,895   939,724,848 Data partition (Windows/Linux)

Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set

Drive: sdc _____________________________________________________________________
Festplatte /dev/sdc: 465,76 GiB, 500107862016 Bytes, 976773168 Sektoren
Festplattenmodell: ST3500413AS     
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdc1               2,048   976,773,167   976,771,120  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        8C841963841950D6                       ntfs       System-reserviert
/dev/sda2        786C1B866C1B3E76                       ntfs       
/dev/sda3        2113-6521                              vfat       
/dev/sda5        79864447-545d-49ec-ab9d-38e909ce1918   xfs        home
/dev/sda6        8c93b18d-302f-4d90-9f57-1de64330b27c   swap       swap
/dev/sda7        b9f89d7c-a7af-4751-9ed1-325b936510ca   btrfs      root
/dev/sdb1        6D251E5919A4B703                       ntfs       Daten
/dev/sdc1        2be52643-b06f-473c-89c7-81ad1115b88a   xfs        Backup


================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda3        /boot/efi                vfat       (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/sda5        /home                    xfs        (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
/dev/sda7        /boot/grub2/i386-pc      btrfs      (rw,relatime,space_cache,subvolid=265,subvol=/@/boot/grub2/i386-pc)
/dev/sda7        /boot/grub2/x86_64-efi   btrfs      (rw,relatime,space_cache,subvolid=264,subvol=/@/boot/grub2/x86_64-efi)
/dev/sda7        /opt                     btrfs      (rw,relatime,space_cache,subvolid=263,subvol=/@/opt)
/dev/sda7        /root                    btrfs      (rw,relatime,space_cache,subvolid=262,subvol=/@/root)
/dev/sda7        /.snapshots              btrfs      (rw,relatime,space_cache,subvolid=266,subvol=/@/.snapshots)
/dev/sda7        /srv                     btrfs      (rw,relatime,space_cache,subvolid=261,subvol=/@/srv)
/dev/sda7        /tmp                     btrfs      (rw,relatime,space_cache,subvolid=260,subvol=/@/tmp)
/dev/sda7        /                        btrfs      (rw,relatime,space_cache,subvolid=267,subvol=/@/.snapshots/1/snapshot)
/dev/sda7        /usr/local               btrfs      (rw,relatime,space_cache,subvolid=259,subvol=/@/usr/local)
/dev/sda7        /var                     btrfs      (rw,relatime,space_cache,subvolid=258,subvol=/@/var)
/dev/sdb1        /Daten                   fuseblk    (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)


========================= sda3/efi/opensuse/grub.cfg: ==========================

--------------------------------------------------------------------------------
set btrfs_relative_path="yes"
search --fs-uuid --set=root b9f89d7c-a7af-4751-9ed1-325b936510ca
set prefix=(${root})/boot/grub2
source "${prefix}/grub.cfg"
--------------------------------------------------------------------------------


=============================== sda7/etc/fstab: ================================

--------------------------------------------------------------------------------
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /                       btrfs  defaults                      0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /boot/grub2/x86_64-efi  btrfs  subvol=/@/boot/grub2/x86_64-efi  0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /boot/grub2/i386-pc     btrfs  subvol=/@/boot/grub2/i386-pc  0  0
UUID=2113-6521                             /boot/efi               vfat   utf8                          0  2
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /.snapshots             btrfs  subvol=/@/.snapshots          0  0
UUID=8c93b18d-302f-4d90-9f57-1de64330b27c  swap                    swap   defaults                      0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /var                    btrfs  subvol=/@/var                 0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /usr/local              btrfs  subvol=/@/usr/local           0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /tmp                    btrfs  subvol=/@/tmp                 0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /srv                    btrfs  subvol=/@/srv                 0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /root                   btrfs  subvol=/@/root                0  0
UUID=b9f89d7c-a7af-4751-9ed1-325b936510ca  /opt                    btrfs  subvol=/@/opt                 0  0
UUID=79864447-545d-49ec-ab9d-38e909ce1918  /home                   xfs    defaults                      0  0
UUID=6D251E5919A4B703                      /Daten                  ntfs   fmask=133,dmask=022           0  0
--------------------------------------------------------------------------------

=================== sda7: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

 152.523983002 = 163.771379712  boot/grub2/grub.cfg                            1
 155.589347839 = 167.062790144  boot/vmlinuz                                   1
 155.589347839 = 167.062790144  boot/vmlinuz-5.3.18-59.13-default              1
 163.501754761 = 175.558672384  boot/initrd                                    1
 163.501754761 = 175.558672384  boot/initrd-5.3.18-59.13-default               1


=============================== StdErr Messages: ===============================

mdadm: No arrays found in config file or automatically



Hallo zusammen,

hab das Problem gefunden denke ich. Windows ist wohl im Legacy Modus installiert und wenn man dann OpenSuse im EFI Modus installiert geht das wohl nicht (siehe hier weitere Infos: https://www.linuxquestions.org/questions/suse-opensuse-60/opensuse-leap-boot-menu-dual-boot-mit-win10-4175697722/.
Hätte ich mir auch denken können:shame:

Also entweder GUID Partition Table (GPT), die der HDD dann auch eine etwas längere Nummer vergibt und dann via EFI/UEFI oder Master Boot Rekord und dann über BIOS booten und die Einschränkungen in Kauf nehmen (wie nur 4 primäre Partitionen, schlechtere Fehlererkennung usw.). Dann gibt es noch solche Emulationen, die waren eigentlich für die Übergangszeit gedacht und die sollte man nicht nutzen.
Für die empfohlene Variante GPT brauchst Du eine ESP Partition für so einen Boot von Linux und Windows auf einer Platte. Optimale Größe für diese Partition ist 500 MB und da müssen Flags gesetzt werden (das kommt hier auf das Programm an, welches Du verwendest), damit diese Partition als ESP erkannt wird. Formatieren sollte man die üblicherweise mit FAT32.
Ich finde es gibt einfachere Bootlader als den Grub/Grub2. Grub2 ist recht umfangreich in der Dokumentation.

Ist die Unternehmens- Dokumentation nun eigentlich auch für openSUSE weitgehend gültig? Ich hatte irgendwas gelesen, dass openSUSE nun quasi Code- identisch zu den SUSE Linux Enterprise Server/Desktop Versionen wäre. Oder hatte ich mich da verlesen?

GNU GRUB Manual: GNU GRUB Manual 2.12

openSUSE LEAP: The boot loader GRUB 2 | Reference | openSUSE Leap 15.5

The easiest way to configure general options of the boot loader in your openSUSE Leap system is to use the YaST module. In the YaST Control Center, select System › Boot Loader. The module shows the current boot loader configuration of your system and allows you to make changes.

Wer aufräumt tut sich leichter: Frühjahrsputz | Karl Mistelberger