Make tumbleweed hard disk bootable and grub question

localhost:/home/guus # mount /dev/sdb1 /mnt
localhost:/home/guus # ls -laR /mnt
/mnt:
total 8
drwxrwxrwx  1 root root 4096 Jul  9  2021 .
drwxr-xr-x 22 root root 4096 Oct 12  2021 ..
drwxrwxrwx  1 root root    0 Jul  9  2021 Recovery
drwxrwxrwx  1 root root    0 Jul 31  2019 System Volume Information

/mnt/Recovery:
total 4
drwxrwxrwx 1 root root    0 Jul  9  2021 .
drwxrwxrwx 1 root root 4096 Jul  9  2021 ..
drwxrwxrwx 1 root root    0 Jul  9  2021 WindowsRE

/mnt/Recovery/WindowsRE:
total 430880
drwxrwxrwx 1 root root         0 Jul  9  2021 .
drwxrwxrwx 1 root root         0 Jul  9  2021 ..
-rwxrwxrwx 1 root root      1104 Jul  9  2021 ReAgent.xml
-rwxrwxrwx 1 root root 438046102 Jul  9  2021 Winre.wim
-rwxrwxrwx 1 root root   3170304 Dec  7  2019 boot.sdi

/mnt/System Volume Information:
total 24
drwxrwxrwx 1 root root     0 Jul 31  2019 .
drwxrwxrwx 1 root root  4096 Jul  9  2021 ..
-rwxrwxrwx 1 root root 20480 Jul 31  2019 tracking.log

@Gps2010 and sda1;

umount /mnt
mount /dev/sda1 /mnt
ls -laR /mnt
localhost:/home/guus # umount /mnt
localhost:/home/guus # mount /dev/sda1 /mnt
localhost:/home/guus # ls -laR /mnt
/mnt:
total 12
drwxr-xr-x  3 root root 4096 Jan  1  1970 .
drwxr-xr-x 22 root root 4096 Oct 12  2021 ..
drwxr-xr-x  5 root root 4096 Aug 26 16:42 EFI

/mnt/EFI:
total 20
drwxr-xr-x 5 root root 4096 Aug 26 16:42 .
drwxr-xr-x 3 root root 4096 Jan  1  1970 ..
drwxr-xr-x 2 root root 4096 Oct 12  2021 boot
drwxr-xr-x 2 root root 4096 Oct 12  2021 opensuse
drwxr-xr-x 2 root root 4096 Aug 26 16:42 opensuse-leap

/mnt/EFI/boot:
total 1844
drwxr-xr-x 2 root root   4096 Oct 12  2021 .
drwxr-xr-x 5 root root   4096 Aug 26 16:42 ..
-rwxr-xr-x 1 root root 846240 Aug 26 16:52 MokManager.efi
-rwxr-xr-x 1 root root 939800 Aug 26 16:52 bootx64.efi
-rwxr-xr-x 1 root root  86352 Aug 26 16:52 fallback.efi

/mnt/EFI/opensuse:
total 3100
drwxr-xr-x 2 root root    4096 Oct 12  2021 .
drwxr-xr-x 5 root root    4096 Aug 26 16:42 ..
-rwxr-xr-x 1 root root  846240 Oct 12  2021 MokManager.efi
-rwxr-xr-x 1 root root      58 Oct 12  2021 boot.csv
-rwxr-xr-x 1 root root     125 Oct 12  2021 grub.cfg
-rwxr-xr-x 1 root root 1222656 Oct 12  2021 grub.efi
-rwxr-xr-x 1 root root  143360 Oct 12  2021 grubx64.efi
-rwxr-xr-x 1 root root  939800 Oct 12  2021 shim.efi

/mnt/EFI/opensuse-leap:
total 3100
drwxr-xr-x 2 root root    4096 Aug 26 16:42 .
drwxr-xr-x 5 root root    4096 Aug 26 16:42 ..
-rwxr-xr-x 1 root root  846240 Aug 26 16:52 MokManager.efi
-rwxr-xr-x 1 root root      68 Aug 26 16:52 boot.csv
-rwxr-xr-x 1 root root     125 Aug 26 16:52 grub.cfg
-rwxr-xr-x 1 root root 1222656 Aug 26 16:52 grub.efi
-rwxr-xr-x 1 root root  143360 Aug 26 17:16 grubx64.efi
-rwxr-xr-x 1 root root  939800 Aug 26 16:52 shim.efi

@Gps2010 can you show the output at present for lsblk

localhost:/home/guus # lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 931.5G  0 disk 
|-sda1        8:1    0   512M  0 part /mnt
|-sda2        8:2    0  48.8G  0 part /
|-sda3        8:3    0 800.8G  0 part /home
|-sda4        8:4    0     2G  0 part [SWAP]
`-sda5        8:5    0  79.4G  0 part 
sdb           8:16   0 931.5G  0 disk 
|-sdb1        8:17   0   529M  0 part 
|-sdb2        8:18   0    99M  0 part 
|-sdb3        8:19   0    16M  0 part 
`-sdb4        8:20   0 930.9G  0 part /run/media/guus/EA0E76BE0E76837D
nvme0n1     259:0    0 931.5G  0 disk 
|-nvme0n1p1 259:1    0   512M  0 part 
`-nvme0n1p2 259:2    0   931G  0 part 
localhost:/home/guus # 

@Gps2010 how did it change, earlier on we had the nvme device mounted as /boot/efi! Now it’s sda1???

OK, so lets look at the nvme device;

umount /mnt
mount /dev/nvme0n1p1 /mnt
ls -laR /mnt

No rebooting!

@Gps2010 likewise sda and sdb are flip flopping… that’s one funky motherboard!

localhost:/home/guus # umount /mnt
localhost:/home/guus # mount /dev/nvme0n1p1 /mnt
localhost:/home/guus # ls -laR /mnt
/mnt:
total 16
drwxr-xr-x  4 root root 4096 Jan  1  1970 .
drwxr-xr-x 22 root root 4096 Oct 12  2021 ..
drwxr-xr-x  9 root root 4096 Aug 10 04:53 9e31c51a645745f3914585e1f8036f64
drwxr-xr-x  5 root root 4096 Aug 26 15:42 EFI

/mnt/9e31c51a645745f3914585e1f8036f64:
total 36
drwxr-xr-x 9 root root 4096 Aug 10 04:53 .
drwxr-xr-x 4 root root 4096 Jan  1  1970 ..
drwxr-xr-x 2 root root 4096 Apr 14 17:33 6.8.2-1-default
drwxr-xr-x 2 root root 4096 Apr 21 06:33 6.8.5-1-default
drwxr-xr-x 2 root root 4096 Jun 20 18:52 6.8.9-1-default
drwxr-xr-x 2 root root 4096 Jul  7 03:51 6.9.1-1-default
drwxr-xr-x 2 root root 4096 Jun 19 21:36 6.9.3-1-default
drwxr-xr-x 2 root root 4096 Aug 10 04:53 6.9.7-1-default
drwxr-xr-x 2 root root 4096 Aug 14 14:07 6.9.9-1-default

/mnt/9e31c51a645745f3914585e1f8036f64/6.8.2-1-default:
total 8
drwxr-xr-x 2 root root 4096 Apr 14 17:33 .
drwxr-xr-x 9 root root 4096 Aug 10 04:53 ..

/mnt/9e31c51a645745f3914585e1f8036f64/6.8.5-1-default:
total 8
drwxr-xr-x 2 root root 4096 Apr 21 06:33 .
drwxr-xr-x 9 root root 4096 Aug 10 04:53 ..

/mnt/9e31c51a645745f3914585e1f8036f64/6.8.9-1-default:
total 8
drwxr-xr-x 2 root root 4096 Jun 20 18:52 .
drwxr-xr-x 9 root root 4096 Aug 10 04:53 ..

/mnt/9e31c51a645745f3914585e1f8036f64/6.9.1-1-default:
total 8
drwxr-xr-x 2 root root 4096 Jul  7 03:51 .
drwxr-xr-x 9 root root 4096 Aug 10 04:53 ..

/mnt/9e31c51a645745f3914585e1f8036f64/6.9.3-1-default:
total 8
drwxr-xr-x 2 root root 4096 Jun 19 21:36 .
drwxr-xr-x 9 root root 4096 Aug 10 04:53 ..

/mnt/9e31c51a645745f3914585e1f8036f64/6.9.7-1-default:
total 8
drwxr-xr-x 2 root root 4096 Aug 10 04:53 .
drwxr-xr-x 9 root root 4096 Aug 10 04:53 ..

/mnt/9e31c51a645745f3914585e1f8036f64/6.9.9-1-default:
total 8
drwxr-xr-x 2 root root 4096 Aug 14 14:07 .
drwxr-xr-x 9 root root 4096 Aug 10 04:53 ..

/mnt/EFI:
total 20
drwxr-xr-x  5 root root 4096 Aug 26 15:42 .
drwxr-xr-x  4 root root 4096 Jan  1  1970 ..
drwxr-xr-x  2 root root 4096 Aug 22 17:34 boot
drwxr-xr-x  2 root root 4096 Sep 29  2021 opensuse
drwxr-xr-x 16 root root 4096 Apr  7 17:23 opensuse-tumbleweed

/mnt/EFI/boot:
total 3936
drwxr-xr-x 2 root root    4096 Aug 22 17:34 .
drwxr-xr-x 5 root root    4096 Aug 26 15:42 ..
-rwxr-xr-x 1 root root  852312 Aug 25 18:14 MokManager.efi
-rwxr-xr-x 1 root root  965528 Aug 25 18:14 bootx64.efi
-rwxr-xr-x 1 root root   90496 Aug 25 18:14 fallback.efi
-rwxr-xr-x 1 root root     167 Aug 22 17:57 grub.cfg
-rwxr-xr-x 1 root root 2099056 Aug 22 17:57 grub.efi

/mnt/EFI/opensuse:
total 4172
drwxr-xr-x 2 root root    4096 Sep 29  2021 .
drwxr-xr-x 5 root root    4096 Aug 26 15:42 ..
-rwxr-xr-x 1 root root  852312 Aug 25 18:14 MokManager.efi
-rwxr-xr-x 1 root root      58 Aug 25 18:14 boot.csv
-rwxr-xr-x 1 root root     167 Aug 25 18:14 grub.cfg
-rwxr-xr-x 1 root root 2099056 Aug 25 18:14 grub.efi
-rwxr-xr-x 1 root root  331776 Aug 25 18:14 grubx64.efi
-rwxr-xr-x 1 root root  965528 Aug 25 18:14 shim.efi

/mnt/EFI/opensuse-tumbleweed:
total 64
drwxr-xr-x 16 root root 4096 Apr  7 17:23 .
drwxr-xr-x  5 root root 4096 Aug 26 15:42 ..
drwxr-xr-x  2 root root 4096 Aug  4  2023 6.3.9-1-default
drwxr-xr-x  2 root root 4096 Sep  8  2023 6.4.12-1-default
drwxr-xr-x  2 root root 4096 Aug 14  2023 6.4.9-1-default
drwxr-xr-x  2 root root 4096 Oct 11  2023 6.5.6-1-default
drwxr-xr-x  2 root root 4096 Oct 24  2023 6.5.8-1-default
drwxr-xr-x  2 root root 4096 Dec 24  2023 6.6.1-1-default
drwxr-xr-x  2 root root 4096 Feb 16  2024 6.6.11-1-default
drwxr-xr-x  2 root root 4096 Jan 22  2024 6.6.3-1-default
drwxr-xr-x  2 root root 4096 Feb 22  2024 6.7.2-1-default
drwxr-xr-x  2 root root 4096 Feb 27 22:29 6.7.5-1-default
drwxr-xr-x  2 root root 4096 Mar 16 17:01 6.7.6-1-default
drwxr-xr-x  2 root root 4096 Mar 30 21:27 6.7.7-1-default
drwxr-xr-x  2 root root 4096 Apr  7 17:16 6.8.1-1-default
drwxr-xr-x  2 root root 4096 Apr 10 23:06 6.8.2-1-default

/mnt/EFI/opensuse-tumbleweed/6.3.9-1-default:
total 8
drwxr-xr-x  2 root root 4096 Aug  4  2023 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.4.12-1-default:
total 8
drwxr-xr-x  2 root root 4096 Sep  8  2023 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.4.9-1-default:
total 8
drwxr-xr-x  2 root root 4096 Aug 14  2023 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.5.6-1-default:
total 8
drwxr-xr-x  2 root root 4096 Oct 11  2023 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.5.8-1-default:
total 8
drwxr-xr-x  2 root root 4096 Oct 24  2023 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.6.1-1-default:
total 8
drwxr-xr-x  2 root root 4096 Dec 24  2023 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.6.11-1-default:
total 8
drwxr-xr-x  2 root root 4096 Feb 16  2024 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.6.3-1-default:
total 8
drwxr-xr-x  2 root root 4096 Jan 22  2024 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.7.2-1-default:
total 8
drwxr-xr-x  2 root root 4096 Feb 22  2024 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.7.5-1-default:
total 8
drwxr-xr-x  2 root root 4096 Feb 27 22:29 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.7.6-1-default:
total 8
drwxr-xr-x  2 root root 4096 Mar 16 17:01 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.7.7-1-default:
total 8
drwxr-xr-x  2 root root 4096 Mar 30 21:27 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.8.1-1-default:
total 8
drwxr-xr-x  2 root root 4096 Apr  7 17:16 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..

/mnt/EFI/opensuse-tumbleweed/6.8.2-1-default:
total 8
drwxr-xr-x  2 root root 4096 Apr 10 23:06 .
drwxr-xr-x 16 root root 4096 Apr  7 17:23 ..
localhost:/home/guus # 

its an Asrock is all I know :slight_smile:

@Gps2010 when did you install Tumbleweed? Did you select systemd-boot?

Let’s see if this works; efibootmgr -c -L "opensuse-tumbleweed" -d nvme0n1p1 -l "\\EFI\\opensuse\\grubx64.efi"

Posting my $.02 here, as I’ve has similar problems with grub in multi-boot multi-drive condition . . . . One thingI learned the hard way is that if there is only one /efi/boot partition, which it looked like at one pint in the thread, there was . . . then, in my case, if I did an OSX security upgrade, OSX would wipe the UUID numbers of the linux installs and grub couldn’t find the partition.

So, separate /efi/boot partition for linux and another one for Windows.

And, something very handy is to have SuperGrub 2 cloned to usb drive to find and boot installed systems that the internal grub ā€œcan’t find.ā€ Very handy.

I have no idea, about your first question.

What got me into even bigger trouble after the windows update, was me selecting something on the first page of the bootloader.

Then Tumbleweed was no longer recognized as bootable by my mobo.

localhost:/home/guus # efibootmgr -c -L "opensuse-tumbleweed" -d nvme0n1p1 -l "\\EFI\\opensuse\\grubx64.efi"
Could not prepare Boot variable: No such file or directory

Really? I see what seems to be two problems with it, one of which might account for ā€œCould not prepare Boot variable: No such file or directoryā€. These worked for me (found in my notes):

## gb250 2022-11-08
 efibootmgr -c -L "opensusetw" -d /dev/nvme0n1 -l '\EFI\opensusetw\grubx64.efi'
## ab250 2019-08-18
 efibootmgr -c -L "opensuse153" -l '\EFI\opensusetw\grubx64.efi'
#
1 Like

Will this be easier to fix if we take window from the equation?

I could even for now disconnect that hard disk, then later reconnect it.
(and not use grub to boot windows but my motherboard boot menu)

( Thinking out-loud )

@Gps2010 Did you modify as per @mrmazda’s suggestion?

I will try now, was first waiting for your response.

Wanted to make sure you and mrmazda are on the same page. :slight_smile:

guus@localhost:~> su
Wachtwoord:
localhost:/home/guus # ## gb250 2022-11-08
localhost:/home/guus #  efibootmgr -c -L "opensusetw" -d /dev/nvme0n1 -l '\EFI\opensusetw\grubx64.efi'
Could not prepare Boot variable: No space left on device
localhost:/home/guus # ## ab250 2019-08-18
localhost:/home/guus #  efibootmgr -c -L "opensuse153" -l '\EFI\opensusetw\grubx64.efi'
Could not prepare Boot variable: No space left on device
localhost:/home/guus # 

@Gps2010 I’m at a loss… your setup is sub-optimal with multiple ESP’s (/boot/efi) and that disk changing may not be helping…

See what happens on a reboot…

I am totally confused, but might be very happy :astonished:

Need to have a look tomorrow after a good night of sleep.

When I do nothing Leap starts, then I can also use the arrow keys to boot tumbleweed.

Gonna test this, almost cant believe it, making sure usb is not in.

We have a winner :slight_smile:

Thank you malcom and mrmazda.

When I do nothing, after, turning on pc Leap starts
But from grub I can use the arrow keys, and then boot Tumbleweed.

I might even be able to boot that cursed os, but I am not in the mood to test this.
One thing I hate about windows is the update process.

You dont even get a change to say no, and I had not booted windows in months.
So first thing it did was updating and messing up grub. :rage:

Maybe when I feel brave tomorrow, I might change this to Tumble weed to be the default. Maybe can do this from grub ?