grub related error on 5.5.23 update

  • I just processed the update from 5.5.22 to .23 and got an interesting message during the process:



    The disk mentioned was the old old system disk. I replaced that with an SSD several months ago.


    I manually ran the dpkg-reconfigure and got this fine error:

    Code
    root@openmediavault:~# dpkg-reconfigure grub-pc
    /usr/sbin/dpkg-reconfigure: grub-pc is broken or not fully installed

    Now I'm afraid to reboot 😬 Should I apt-get grub-pc?


    If I look in grub.cfg, I can see everything pointing to the ID of sda (the SSD).

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • The entry in the debconf database likely still points to the old device (see Debian bug #966575 for some insight, especially comment #95 ff):


    sudo debconf-show grub-pc | grep -wi install_devices | awk -F: '{print $2}'


    should reveal all devices listed including the old device. You definitely shouldn't reboot at that point. But you can set the correct device using debconf-set-selections. Get the device you want grub to install to, say /dev/disk/by-id/foo, preset the debconf entry, and finish the upgrade process:


    echo grub-pc grub-pc/install_devices multiselect /dev/disk/by-id/foo | sudo debconf-set-selections

    sudo apt-get install -f


    Afterwards you should run sudo dpkg-reconfigure -plow grub-pc and check that all the devices you want the grub MBR written to are selected. Alternatively to the above steps run the upgrade process interactively:


    DEBIAN_FRONTEND=newt DEBCONF_PRIORITY=low apt-get install -f


    and you should also be presented the debconf dialog to choose the boot device during the upgrade process. Either of those two solutions should work.

    2 Mal editiert, zuletzt von dleidert () aus folgendem Grund: changed debconf-show command

  • macom , I did have the repeating error not too far after my screen capture.


    dleidert , here's how it went.


    Code
    root@openmediavault:/boot/grub# sudo debconf-show grub-pc | awk '$2 == "grub-pc/install_devices:" {print $3}'
    /dev/disk/by-id/ata-WDC_WD2500BEVS-75UST0_WD-WXC408128942


    it found the old zombie disk.


    I found the by-id of the disk to replace foo: ata-KINGSTON_SA400S37240G_50026B7684141339


    root@openmediavault:/dev/disk/by-id# echo grub-pc grub-pc/install_devices multiselect /dev/disk/by-id/ata-KINGSTON_SA400S37240G_50026B7684141339 | sudo debconf-set-selections

    root@openmediavault:/dev/disk/by-id# sudo apt-get install -f

    Reading package lists... Done

    Building dependency tree

    Reading state information... Done

    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    1 not fully installed or removed.

    After this operation, 0 B of additional disk space will be used.

    Setting up grub-pc (2.02+dfsg1-20+deb10u3) ...

    Installing for i386-pc platform.

    Installation finished. No error reported.

    Installing for i386-pc platform.

    grub-install: warning: File system `ext2' doesn't support embedding.

    grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..

    Installation finished. No error reported.

    Generating grub configuration file ...

    Found linux image: /boot/vmlinuz-5.9.0-0.bpo.5-amd64

    Found initrd image: /boot/initrd.img-5.9.0-0.bpo.5-amd64

    Found linux image: /boot/vmlinuz-5.9.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.9.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.8.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.8.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.7.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.7.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.6.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.6.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.5.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.5.0-0.bpo.2-amd64

    done

    root@openmediavault:/dev/disk/by-id# sudo dpkg-reconfigure -plow grub-pc

    Installing for i386-pc platform.

    Installation finished. No error reported.

    Installing for i386-pc platform.

    grub-install: warning: File system `ext2' doesn't support embedding.

    grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..

    Installation finished. No error reported.

    Generating grub configuration file ...

    Found linux image: /boot/vmlinuz-5.9.0-0.bpo.5-amd64

    Found initrd image: /boot/initrd.img-5.9.0-0.bpo.5-amd64

    Found linux image: /boot/vmlinuz-5.9.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.9.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.8.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.8.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.7.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.7.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.6.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.6.0-0.bpo.2-amd64

    Found linux image: /boot/vmlinuz-5.5.0-0.bpo.2-amd64

    Found initrd image: /boot/initrd.img-5.5.0-0.bpo.2-amd64

    done


    In the interactive blue screens, I selected sda and sda1, and agreed with the rest. After, I re ran the first line:



    Code
    root@openmediavault:/dev/disk/by-id# sudo debconf-show grub-pc | awk '$2 == "grub-pc/install_devices:" {print $3}'
    /dev/disk/by-id/ata-KINGSTON_SA400S37240G_50026B7684141339, 



    Seems like it worked, though that comma at the end is interesting... Anything else I should check before rebooting?

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

  • The message above is caused by trying to install Grub into a partition. Any reason why you chose sda1 which is a partition?


    The comma is fine. The awk command splits the contents of the debconf key which is a multiselect key and holds more than one value (you chose two values here). That's just a limitation of the command I suggested.


    sudo debconf-show grub-pc | grep -wi install_devices


    should show you the complete debconf entry.

  • sda1? I don't know. I had some fear that if I didn't get both sda and sda1, somehow i'd be in trouble. I know they are the same physical disk.🥴

    Code
    root@openmediavault:/dev/disk/by-id# sudo debconf-show grub-pc | grep -wi install_devices
    * grub-pc/install_devices: /dev/disk/by-id/ata-KINGSTON_SA400S37240G_50026B7684141339, /dev/disk/by-id/ata-KINGSTON_SA400S37240G_50026B7684141339-part1

    reboot success. Thanks again, dleidert

    Mark D

    OMV6.1.0 upgraded from 5 on a Core2Duo

    mergerfs & snapraid

    Docker for urbackup, omada controller, adguard.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!