Make tumbleweed hard disk bootable and grub question

After a mild panic, I hope I did this right.
Maybe there is hope for me using the cli. :smile:

guus@localhost:/> cd mount
bash: cd: mount: Bestand of map bestaat niet
guus@localhost:/> cd mnt
guus@localhost:/mnt> ls
9e31c51a645745f3914585e1f8036f64  EFI  opensuse-tumbleweed
guus@localhost:/mnt> cd EFI
guus@localhost:/mnt/EFI> ls
boot  opensuse
guus@localhost:/mnt/EFI> cd opensuse
guus@localhost:/mnt/EFI/opensuse> ls
boot.csv  grub.cfg  grub.efi  grubx64.efi  MokManager.efi  shim.efi

Feel free to laugh at my typo.

Are my openSUSE friends forgetting about me? :slight_smile:

@Gps2010 So in the system BIOS, can you add an efi entry, as in browse to the nvme partition and see grubx64.efi to add?

I just tried and failed. I tried to edit the first boot option which points to the windows disk. But I cant find Tumble weed there.

Then I tried something else:

With installation usb inserted, I picked boot from harddisk.
Then I get two grub errors.

First is about it cant find the default.
Second one , you need to load the kernel first
( hope that helps ? )

@Gps2010 OK, so does Leap boot? If so, can you boot to that and show the output from the command (as root user) os-prober

this is from tumbleweed

localhost:/home/guus # os-prober
153.355415 | sdc: broken device without vendor ID
153.360367 | DM multipath kernel driver not loaded
/dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sdb2:openSUSE Leap 15.3:openSUSE:linux

@Gps2010 OK, so it see’s them both. So, fire up YaST Bootloader and in the tab, make sure the ‘Update NVRAM Entry’ is checked. Then in the Bootloader Options tab, ensure the ‘Probe Foreign OS’ box is checked and the ‘Default Boot Section’ is openSUSE Tumbleweed, check the drop down, Windows and OpenSUSE Leap should be in the list?

Save, exit and run the command efibootmgr, please confirm and don’t reboot yet!!

it fails:

Uitvoeren van opdracht '[["/usr/sbin/shim-install", "--config-file=/boot/grub2/grub.cfg"]]' mislukt.
Exitcode: 5
Foutuitvoer: Installeren voor x86_64-efi-platform.
Installatie is afgerond. Er werden geen fouten gerapporteerd.
Could not prepare Boot variable: No space left on device

Is this because I use an instaltion usb stick to boot ?

localhost:/home/guus # efibootmgr
BootCurrent: 0013
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 Was the secure boot entry checked in YaST Bootloader?

I would delete the USB entries efibootmgr -b 0014 -B and then efibootmgr -b 0013 -B first, then back in YaST Bootloader and modify, save and check the output of efibootmgr again. Remember, no rebooting yet!

guus@localhost:~> efibootmgr -b 0014 -B
Absolute path to ‘efibootmgr’ is ‘/usr/sbin/efibootmgr’, so running it may require superuser privileges (eg. root).
guus@localhost:~> su
Wachtwoord:
localhost:/home/guus # efibootmgr -b 0014 -B
Could not delete variable: No space left on device

then with usb stick removed

localhost:/home/guus # efibootmgr -b 0014 -B
Could not delete variable: No such file or directory

@Gps2010 OK, so if you reboot and go into the BIOS, make sure the USB device is removed, can you delete the entries from there? If so, then reboot into Tumbleweed with no USB connected.

There is no way for me to get Thumbleweed starting without the install usb drive.

I can probably boot leap without the usb drive (or windows)

But lets start Leap, then from that Grub try to start Tumbleweeed and post the errors?

@Gps2010 Ok, so boot into Leap, but I want you to switch to root user with su - edit /etc/default/gruband change the line GRUB_DISTRIBUTOR= to say GRUB_DISTRIBUTOR=opensuse-leap then run grub2-mkconfig -o /boot/grub2/grub.cfg`

guus@localhost:~> su
Wachtwoord:
localhost:/home/guus # - edit /etc/default/grub
bash: popd: edit: ongeldig argument
popd: Gebruik: popd [-n] [+N | -N]

Use your favorite editor. I don’t think openSUSE has one named “edit”. Some to pick from: nano, joe, mcedit, vim.

Thank you but…
can I use kate? if so, how ?

or
grub less ?

I am reading about VI and NANO.

Might have to install nano on leap.

If you have kwrite installed you may open the file via:

SUDO_EDITOR=kwrite sudoedit /etc/default/grub
1 Like

Don’t ask me how, but I managed to change that file. I think I was using VI.

I have checked after a reboot if the file is indeed changed and it is.

Then:

[sudo] wachtwoord voor root: 
Generating grub configuration file ...
Found theme: /boot/grub2/themes/openSUSE/theme.txt
Found linux image: /boot/vmlinuz-5.3.18-57-default
Found initrd image: /boot/initrd-5.3.18-57-default
Found openSUSE Tumbleweed on /dev/nvme0n1p2
Found Windows Boot Manager on /dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi
done
guus@localhost:~> 

Then I rebooted and windows starts :frowning:
I was hoping for a grubscreen.

@Gps2010 Was going to ask more questions before a reboot… Can you enter the BIOS as browse to the Leap efi file and boot?