Have here an older install of TW-KDE on an USB-stick, that came back from a zypper dup in DEC-2024 (had no time to repair yet…) with the error in the Topic, I guess Grub is broken.
Am I correct that I need to chroot into the system partition of the stick and re-install Grub?
The bootloader location configured in your system does not match the location from which BIOS loads bootloader. You need to fix it, otherwise you will still be reinstalling in the wrong place.
Hmm, any suggestions? I boot this TW from the USB-stick on different machines from time to time. Doesn’t boot on various machines now, I tried 3 different…
When I boot the USB-stick, all other HDDs/SSD are disabled in BIOS or there are no other disks at all present in the notebooks used for booting. So it is unclear to me why the MBR should be on another disk at all…
When I chroot into the USB-stick you want me to run YaST from CLI and check where the MBR has been writen during the last zypper dup, correct?
I wanted to do the chroot on a computer with TW installed anyway, not in one of the notebooks booting a rescue-CD, that should work?
You most certainly did. Your system is configured to install GRUB on partition (you did not provide enough information to allow us to identify which partition) and to have generic MBR code that loads GRUB from the active partition. At some point you manually installed GRUB in the MBR following "helpful’ advices, Internet search hits or whatever. GRUB is split in two parts that must match. When GRUB was updated, the part under /boot/grub was updated but the part in MBR not (the part installed on partition was). So when BIOS loaded outdated GRUB code from MBR and it attempted to load other parts from /boot/grub these parts did not match the loaded code.
At this point the easiest way to avoid similar problems in the future is to reconfigure your system and set MBR as GRUB location so it matches the current state.
With all due respect, I installed TW to the USB-stick and did zypper dup from time to time. Nothing else. Why should I? I use the stick now and then, e.g. to connect to hotel wifi or to test some hardware.
After a zypper dup the stick came back with a GRUB console, unbootable.
As I wrote above:
According to “YaST - Bootloader” the Boot Code Location is “/dev/sdf1”
I changed to “Write to Master Boot Record (/dev/sdf)”
Just a guess, as i don’t install any grub anywhere on MBR disks except on one or more partition(s), and only use USB sticks for installing .isos, or for filesystems on partitions for storing data, not operating system installations equivalent to internal storage device installations:
/dev/sdf only applies to your USB stick on some systems, not on others, where it may be any of /dev/sdb, /dev/sdc, /dev/sdd, /dev/sde, /dev/sdg, etc., depending on how many HDDs, SSDs and/or USB card readers are in that system, and BIOS setup ordering among storage devices.
Hi mrmazda, while this might be correct: The USB-stick booted and was fine until after the next zypper dup yesterday. Afterwards I see on boot a GRUB message :
I rarely have need for USB stick booting, as all my PCs are multiboot. Thus for most cases, all I need to do if one installation refuses to boot, is boot something else, from the same Grub menu, from which to repair, using chroot, or otherwise.
This worked without any Google, manpage or alike for years and I have some more TW USB-sticks to boot from, just doing fine without any magic sauce. Sigh…
As mentioned above: the machines are legacy BIOS, not UEFI.