Make tumbleweed hard disk bootable and grub question

I was always able to boot tumbleweed, through the boot menu of my mobo.
(Asrock F11)

While trying to fix the issue caused my M$ I seemed to have made things worse.
My mobo boot menu does not list Tumbleweed anymore.

How to fix this?

When I insert an install tumbleweed usb stick into my pc, I am able to boot Tumbleweed. (more , option boot Linux media then select Tumbleweed)

So it seems thumbleweed is still fine, I am typing this from Tumbleweed.

Second question, can I fix grub2 with this usb stick?
Or how to fix grub2 ?

Your fix could be quite simple. Boot your Linux rescue media in UEFI mode, then run efibootmgr. It will probably be apparent that opensuse is not at the top/front of the boot order. You can move it back to the front/top with efibootmgr -o w,x,y,z, where w, x, y & z are the numbers of the existing boot order. e.g. 0003,0002,0005,0011, with 0011 being opensuse, do efibootmgr -o 11,3,2,5 to move opensuse from fourth to first. At this point, reboot should bring up your TW menu.

I will give it another try, maybe need to remove the usb stick after Tumbleweed is booted, because when I try it with the usb still in I get:

 sudo efibootmgr -o 11
[sudo] wachtwoord voor root: 
Could not set BootOrder: No space left on device

I assume its trying to write to the usb stick ?

It shouldn’t be writing anywhere other than NVRAM. Is your current opensuse (TW) entry in efibootmgr Boot0011*? If not, you need to use whatever the current number is. 11 was my example. I have no idea what yours are numbered unless you first show output from efibootmgr here.

How many entries does efibootmgr produce? If more than 10-12, it’s possible your NVRAM space is cluttered full of stale entries. You may want to visit UEFI BIOS setup, or use efibootmgr, to purge the oldies.

Timeout: 1 seconds
BootOrder: 0000,0006,0012,0013,0014,0011
Boot0000* Windows Boot Manager  HD(2,GPT,70e1d660-fa10-4c6b-af84-2f6220bf4308,0x109000,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000061000100000010000000040000007fff0400
Boot0006* Hard Drive    BBS(HD,,0x0)0000474f00004e4fad00000001000000750053005400310030003000300044004d003000310030002d0032004500500031003000320000000501090002000000007fff040002010c00d041030a0000000001010600030101010600010003120a000100ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce62000200020002000200020002000200020002000200020004e005a0030003100390057004800350000007fff04000000424f00004e4fab000000010000007100530061006d00730075006e00670020005300530044002000390038003000200031005400420000000501090002000000007fff040002010c00d041030a000000000101060001010101060000000317100001000000002538d711b0b1697fff040001043400ef47642dc93ba041ac194d51d01b4ce653003600340039004e00460030005200370031003900340032003600560000007fff04000000424f00004e4fb10000000100000075005700440043002000570044003100300045005a00450058002d003000380057004e0034004100300000000501090002000000007fff040002010c00d041030a0000000001010600030101010600010003120a000000ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce62000200020002000570020002d00440043005700360043003200590052005400330031003600460000007fff04000000424f
Boot0011* opensuse      HD(1,GPT,a986b7af-7e9a-4f0a-a483-a57562332f53,0x800,0x100000)/File(\EFI\OPENSUSE\GRUBX64.EFI)0000424f
Boot0012* USB   BBS(USB,,0x0)0000474f00004e4fab000000010000006d002000550053004200200046004c00410053004800200044005200490056004500200050004d004100500000000501090005000000007fff040002010c00d041030a000000000101060003010101060000000305060005007fff040001043a00ef47642dc93ba041ac194d51d01b4ce638004100310039004100330030004600300030004600300032004600300030003100390000007fff04000000424f
Boot0013* UEFI:  USB FLASH DRIVE PMAP   PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(5,0)/CDROM(1,0xd4c,0x6e40)0000424f
Boot0014* UEFI:  USB FLASH DRIVE PMAP, Partition 1      PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(5,0)/HD(1,MBR,0x6ba131fa,0xd4c,0x1b90)0000424f

I do not see tumbleweed there, or is that just me ?

There are three harddisk in my pc.
One has leap, one has windows, and one is tumbleweed, which is an SSD

the last three entries are the usb stick.

When you install TW, the directory name in /EFI/ on the ESP filesystem is named “opensuse”, and exactly what will show in efibootmgr Boot####* output. Unless you edit /etc/default/grub to assign some string to GRUB_DISTRIBUTOR=, that is what it will remain.

Your boot order is currently Windows (Boot0000*) first. If you want TW first,

sudo efibootmgr -o 11,0,6,12,13,14

should do it.

Can you please read what I am saying.

My mobo does not recognize the tumbleweed hard disk as bootable anymore.

How is changing the boot order gonna fix this?

sudo efibootmgr -o 11,0,6,12,13,14
[sudo] wachtwoord voor root: 
Could not set BootOrder: No space left on device

@Gps2010 You efi output shows windows on HD1, opensuse (Leap or Tumbleweed) on HD2, so is there a /boot/efi partition on your third HDD? If so this entry can be manually added, maybe via BIOS or via efibootmgr (as root user, not sudo please).

Have you been in UEFI BIOS setup since this started? Do you/did you see anything changed there, such as enabling CSM support, or enabling Windows-only secure boot?

@malcolmlewis, where did you find evidence of other disks in this OP’s system?

@mrmazda here…?

When this started, I went into yast and the bootloader.

That was the last time I was able to start Tumbleweed from the boot menu of my os.
So I made things worse.

I have it happen many times before windows over wrote the mbr, and then instead of getting a grubscreen, I had windows starting.
I then used the bootmenu from my motherboard, to boot Tumblweed.
I then went into yast and made sure probe foreign os was checked.

This time this did not fix the problem.

lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 931,5G  0 disk 
├─sda1        8:1    0   529M  0 part 
├─sda2        8:2    0    99M  0 part 
├─sda3        8:3    0    16M  0 part 
└─sda4        8:4    0 930,9G  0 part 
sdb           8:16   0 931,5G  0 disk 
├─sdb1        8:17   0   512M  0 part 
├─sdb2        8:18   0  48,8G  0 part 
├─sdb3        8:19   0 800,8G  0 part /home/guus/leaphome
├─sdb4        8:20   0     2G  0 part 
└─sdb5        8:21   0  79,4G  0 part /home/guus/VMmount
sdc           8:32   1   7,5G  0 disk 
├─sdc1        8:33   1   3,4M  0 part 
└─sdc2        8:34   1   4,4G  0 part 
nvme0n1     259:0    0 931,5G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
└─nvme0n1p2 259:2    0   931G  0 part /var
                                      /usr/local
                                      /srv
                                      /opt
                                      /root
                                      /home
                                      /boot/grub2/x86_64-efi
                                      /boot/grub2/i386-pc
                                      /.snapshots
                                      /

I kept thinking there was, but over and over kept missing it. My suggestion I wanted to offer, and do now, is to disconnect the Leap and Windows disks to see what happens booting with only the TW disk.

1 Like
localhost:/home/guus # efibootmgr
BootCurrent: 0014
Timeout: 1 seconds
BootOrder: 0000,0006,0012,0013,0014,0011
Boot0000* Windows Boot Manager  HD(2,GPT,70e1d660-fa10-4c6b-af84-2f6220bf4308,0x109000,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000061000100000010000000040000007fff0400
Boot0006* Hard Drive    BBS(HD,,0x0)0000474f00004e4fad00000001000000750053005400310030003000300044004d003000310030002d0032004500500031003000320000000501090002000000007fff040002010c00d041030a0000000001010600030101010600010003120a000100ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce62000200020002000200020002000200020002000200020004e005a0030003100390057004800350000007fff04000000424f00004e4fab000000010000007100530061006d00730075006e00670020005300530044002000390038003000200031005400420000000501090002000000007fff040002010c00d041030a000000000101060001010101060000000317100001000000002538d711b0b1697fff040001043400ef47642dc93ba041ac194d51d01b4ce653003600340039004e00460030005200370031003900340032003600560000007fff04000000424f00004e4fb10000000100000075005700440043002000570044003100300045005a00450058002d003000380057004e0034004100300000000501090002000000007fff040002010c00d041030a0000000001010600030101010600010003120a000000ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce62000200020002000570020002d00440043005700360043003200590052005400330031003600460000007fff04000000424f
Boot0011* opensuse      HD(1,GPT,a986b7af-7e9a-4f0a-a483-a57562332f53,0x800,0x100000)/File(\EFI\OPENSUSE\GRUBX64.EFI)0000424f
Boot0012* USB   BBS(USB,,0x0)0000474f00004e4fab000000010000006d002000550053004200200046004c00410053004800200044005200490056004500200050004d004100500000000501090005000000007fff040002010c00d041030a000000000101060003010101060000000305060005007fff040001043a00ef47642dc93ba041ac194d51d01b4ce638004100310039004100330030004600300030004600300032004600300030003100390000007fff04000000424f
Boot0013* UEFI:  USB FLASH DRIVE PMAP   PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(5,0)/CDROM(1,0xd4c,0x6e40)0000424f
Boot0014* UEFI:  USB FLASH DRIVE PMAP, Partition 1      PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(5,0)/HD(1,MBR,0x6ba131fa,0xd4c,0x1b90)0000424f

@Gps2010 So Tumbleweed is on the NVMe device, your not using secure boot?

Can you mount /dev/nvme0n1 and list what is present, mount /dev/nvme0n1p1 /mnt and show ls -la /mnt/

yes, this is also why I started a new topic.

People kept pointing at solutions, that start with turn off secure boot.
Secure boot is off here. Still a windows update was the start of the problems.

Tumbleweed is on the NVMe device and secure boot is off. :slight_smile:

How do I start Tumbleweed then? (Because I am typing this from Tumbleweed)

I insert a Tumbleweed installation USB.
Then I click more, and then boot a Linux system.

Then it asks me what I want to boot, leap of Tumbleweed.

As root:

ocalhost:/home/guus # ls -la /mnt/
totaal 0
dr-xr-xr-x 1 root root   0 29 sep  2021 .
drwxr-xr-x 1 root root 168 23 feb  2022 ..

@Gps2010 and you have the nvme partiton mounted under /mnt?

When you are at this point of having TW running on NVME started via USB menu, what is output from efibootmgr? Is it different if you do the same with the Leap and Windows disks disconnected?

Does this answer your question ?

localhost:/home/guus # mount /dev/nvme0n1p1 /mnt
localhost:/home/guus # ls -la /mnt/
totaal 16
drwxr-xr-x  5 root root 4096  1 jan  1970 .
drwxr-xr-x  1 root root  168 23 feb  2022 ..
drwxr-xr-x  9 root root 4096 10 aug 04:53 9e31c51a645745f3914585e1f8036f64
drwxr-xr-x  4 root root 4096 29 sep  2021 EFI
drwxr-xr-x 16 root root 4096  7 apr 17:23 opensuse-tumbleweed

@Gps2010 yes, so what is under the EFI directory and the opensuse-tumbleweed directory.