I have been running Debian 11 on a repurposed Qnap NAS box for a few months now. Earlier this week I ran apt update and apt dist-upgrade. I haven't had any issues doing this before, but during the upgrade there was a text prompt to select my grub partition. I never needed to touch grub when I set this up, so it was a bit of a surprise. I selected /dev/sda3 which has a /boot/grub folder and went on with the upgrade. Since then, the boot process stops with a GRUB display (no prompt).
I was able to boot the system using Super Grub, but I have not been able to restore the boot configuration. Most of the responses are for dual boot systems, which this is not (with the caveat that the original Qnap drive still exists). I've tried running grub-install on both /dev/sda (error: will not proceed with blocklists) and /dev/sda3. Just for fun I also tried running grub-install /dev/sdf (the old Qnap boot partition) -- no error reported, but no success either (initially I tried to use that as the boot partition but couldn't get it to work). I ran bootinfoscript and it seems to suggest that I am missing a core.img, and maybe two different versions of grub? Here is the initial part of RESULT.txt (/dev/sde is the Super Grub USB stick):
Code: Select all
Boot Info Script 0.78 [09 October 2019]
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99-2.00) is installed in the MBR of /dev/sda and looks at sector
93531816 of the same hard drive for core.img, but core.img can not be
found at this location.
=> No boot loader is installed in the MBR of /dev/sdb.
=> Grub2 (v2.00) is installed in the MBR of /dev/sde and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos1)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp fat part_msdos biosdisk
---------------------------------------------------------------------------
=> Grub2 (v2.00) is installed in the MBR of /dev/sdf and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for /boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk search_fs_uuid
---------------------------------------------------------------------------
config script
---------------------------------------------------------------------------
search.fs_uuid 6c777e28-647e-4957-b1dc-7422ed289183 root hd0,msdos1
set prefix=($root)'/boot/grub'
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: ext4
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v2.00) is installed in the boot sector of sda3
and looks at sector 72242424 of the same hard drive
for core.img. core.img is at this location and looks
for (,gpt3)/boot/grub. It also embeds following
components:
modules
-------------------------------------------------------
fshelp ext2 part_gpt biosdisk
-------------------------------------------------------
Operating System: Debian GNU/Linux 11 (bullseye)
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/grub/i386-pc/core.img
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Mounting failed: mount: /tmp/BootInfo-EZrIvWi3/sda4: wrong fs type, bad option, bad superblock on /dev/sda4, missing codepage or helper program, or other error.