no grub menu after fresh install of debian testing (GPT/BIOS)
Posted: 2022-01-23 02:43
I installed debian testing on a GPT-formatted disk intended to be booted on a non-UEFI machine. A 10 MiB BIOS boot partition (fdisk type 4, GUID 21686148-6449-6E6F-744E-656564454649) was included at the beginning of the partition table; following that, there is a 1 GiB /boot ext2 partition, a 499 GiB LUKS-encrypted ext4 partition, and finally another ext4 partition. The LUKS-encrypted partition contains LVM logical volumes for root (/), home (/home), and swap. Debian testing was installed on root using debootstrap and grub2 (grub-pc package) was installed on /boot. No errors were encountered at any point during installation. The output of grub-install was "Installing for i386-pc platform. Installation finished. No error reported." The output of `update-initramfs -u -k all` was "update-initramfs: Generating /boot/initrd.img-5.15.0-2-amd64". However, the device is not recognized as bootable media and no grub2 menu appears.
Attempting to boot just drops to the BIOS, requesting selection of a boot device. Selecting the device in question produces a black screen for about a second and then it returns to the BIOS screen, requesting again selection of a boot device. Since there are no error messages of any kind, it's difficult to troubleshoot. Is there a simple method for confirming that grub installed core.img on /dev/sdb1? Any pointers greatly appreciated.
Details:
Attempting to boot just drops to the BIOS, requesting selection of a boot device. Selecting the device in question produces a black screen for about a second and then it returns to the BIOS screen, requesting again selection of a boot device. Since there are no error messages of any kind, it's difficult to troubleshoot. Is there a simple method for confirming that grub installed core.img on /dev/sdb1? Any pointers greatly appreciated.
Details:
Code: Select all
# fdisk -l
Disk /dev/sdb: 3.7 TiB, 4096805658624 bytes, 8001573552 sectors
Disk model: 2105
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: [snip]
Device Start End Sectors Size Type
/dev/sdb1 2048 22527 20480 10M BIOS boot
/dev/sdb2 22528 2119679 2097152 1G Linux filesystem
/dev/sdb3 2119680 1048598527 1046478848 499G Linux filesystem
/dev/sdb4 1048598528 8001573518 6952974991 3.2T Linux filesystem
# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home vg0 -wi-ao---- 282.98g
root vg0 -wi-ao---- 200.00g
swap vg0 -wi-a----- 16.00g
# cat /etc/fstab
UUID=[snip] /boot ext2 rw,nosuid,nodev 0 2
UUID=[snip] / ext4 defaults 0 1
UUID=[snip] /home ext4 defaults 0 1
UUID=[snip] none swap defaults 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noexec,size=4G 0 0
# cat /etc/crypttab
crypt UUID=[snip] none luks