Ubuntu Version: 24.04 LTS Server
Desktop Environment (if applicable): none - runs headless
Problem Description: grub upgrade failed
Relevant System Information:
Lenovo E73 small-form-factor desktop, i5 CPU, 8 GiB Ram
Screenshots or Error Messages:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-60-generic
Found initrd image: /boot/initrd.img-6.8.0-60-generic
Found linux image: /boot/vmlinuz-6.8.0-59-generic
Found initrd image: /boot/initrd.img-6.8.0-59-generic
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
Setting up grub-efi-amd64-signed (1.202.5+2.12-1ubuntu7.3) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/ata-ST500DM002-1BD142_Z3T8CGF7-part1 does not exist.
dmesg(1) may have more information after failed mount system call.
dpkg: error processing package grub-efi-amd64-signed (--configure):
installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
Processing triggers for install-info (7.1-3build2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Errors were encountered while processing:
grub-efi-amd64-signed
needrestart is being skipped since dpkg has failed
The machine is used to backup user data and sage data from a Windows server. Backups are made on a rotating 28 day cycle. Trouble is, its been in use for a number of years, and the backups have grown. Due to space limitations, a bigger machine capable of taking more drives is not an option. As a result, when free space got dangerously low, it was brought back to the workshop to allow a bigger drive to be fitted. Existing backup data was saved on elsewhere to make some room, the machine was upgraded from 22.04 to 24.04, then the existing drive was backed up to image files using fsarchiver (since it wil expand partitions to fit available space), the bigger drive was fitted and the fsarchiver images restored to the new drive. Worked fine, until the recent upgrade attempted to upgrade grub.
After a bit of checking, it looks as though I need to reinstall grub to remove the reference to /dev/disk/by-id/ata-ST500DM002-1BD142_Z3T8CGF7-part1
, The machine is running, so I don’t need to chroot in to do the install, but I’ve not ever encountered a reference to /var/lib/grub
before and I’m uncertain whether I need to take any special precautions because of it. At present, the EFI partition is mounted as /boot/efi. Does that partition need to be unmounted beofe I run grum-install, or can I simply run grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu
, which is the way I would normally install grub on an Arch machine. Any guidance appreciated…
What I’ve Tried:
Nothing yet - the machine is remote and I want to check how safe a simple reinstall of grub is before I proceed.