How can I boot Linux from the grub>
prompt, as if I were booting from cold?
I have full disk encryption. When I fat-finger the encryption password, it bumps me to grub rescue
(bonus points if you can tell me how to have it give 2 attempts to enter the password ... :) ) From here, I can unlock the disk (cryptomount hdX,gpt1
).
After doing this (demonstrating keyboard is working, I'm typing the correct key, not asleep, etc) - I just want to boot the system, with the Linux argument line as normal. The system has no issues, obviously, so this will work (I had just fat-fingered the passphrase).
As it may be necessary in order to disambiguate what my system does, here is the first entry from my grub.cfg
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-320f<GUID...>' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha256
insmod ext2
cryptomount -u b6b7<32_char_part_id>
set root='cryptouuid/b6b7<32_char_part_id>'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/b6b7<32_char_part_id>' 76f4<GUID...>
else
search --no-floppy --fs-uuid --set=root 76f4<GUID...>
fi
linux /vmlinuz-5.15.0-84-generic root=/dev/mapper/ubuntu--vg-root ro rootflags=subvol=@ quiet splash $vt_handoff
initrd /initrd.img-5.15.0-84-generic
}