Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unable to boot after dist-upgrade to 11.5 [SOLVED]

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
maltycat
Posts: 3
Joined: 2022-09-17 00:37

Unable to boot after dist-upgrade to 11.5 [SOLVED]

#1 Post by maltycat »

Hi,

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.
At this point I seem to be going in circles. Any advice would be welcome.
Last edited by maltycat on 2022-09-17 14:50, edited 1 time in total.

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Unable to boot after dist-upgrade to 11.5

#2 Post by Segfault »

It would help if you told us what is the boot device exactly. RAID? Is it legacy or EFI?

maltycat
Posts: 3
Joined: 2022-09-17 00:37

Re: Unable to boot after dist-upgrade to 11.5

#3 Post by maltycat »

The boot device is a solid state drive, not part of a RAID. There is no option in the BIOS to select UEFI and no uefi folder in /boot/grub, so I believe it's legacy. The Super Grub USB stick is listed as UEFI, though.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Unable to boot after dist-upgrade to 11.5

#4 Post by p.H »

maltycat wrote: 2022-09-17 01:16 during the upgrade there was a text prompt to select my grub partition
You are the second one who I see report this issue. The boot location(s) should have been registered in debconf during the installation and reused during grub* package updates.

Code: Select all

debconf-show grub-pc
AFAIK this prompt appears only during initial grub-pc installation or when the boot device recorded in debconf is not found.
maltycat wrote: 2022-09-17 01:16 I selected /dev/sda3 which has a /boot/grub folder
Wrong choice. You should have selected the whole drive /dev/sda to install GRUB boot image in the MBR. Now the old boot image in the MBR points to a non existent core image file which has been replaced with the new core image.
maltycat wrote: 2022-09-17 01:16 I've tried running grub-install on both /dev/sda (error: will not proceed with blocklists)
It seems that /dev/sda has a GPT partition table but no "BIOS boot" (biosgrub) partition. So you need to force the installation using blocklists with --force. But blocklists are not reliable an may break anytime so you should create a BIOS boot partition and reinstall GRUB. The required size is less than 1 MB, so there should be a free space on the disk, usually between the partition table and the first partition.

When you are in the running system, run

Code: Select all

dpkg-reconfigure grub-pc
and select /dev/sda when prompted to register the proper boot location in debconf.

maltycat
Posts: 3
Joined: 2022-09-17 00:37

Re: Unable to boot after dist-upgrade to 11.5

#5 Post by maltycat »

Thanks, that did the trick.

Post Reply