You are not logged in.
My system has a LUKS1 encrypted btrfs filesystem which includes /boot in the encrypted volume. GRUB is installed to /efi, which lies on its own unencrypted partition. I've had this setup for well over a year working fine. About a month or two ago, after a GRUB update, I began to get error messages at boot. My system seems to run fine, but I also don't understand what is triggering the message.
On boot, I am prompted for my crypt password. After unlocking, I get to GRUB. After selecting Arch Linux, I get
error: no such cryptodisk found, perhaps a needed disk or cryptodisk module is not loaded
Loading Linux linux ...
Loading initial ram-disk ...
Press any key to continue...
Continuing or simply waiting causes the initram to post normally. These are the same symptoms as described in this post, which didn't seem to provide a conclusive answer.
Any more ideas to continue the discussion? Thanks!
/etc/default/grub
# GRUB boot loader configuration
GRUB_DEFAULT=0
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3"
#GRUB_CMDLINE_LINUX="cryptdevice=/dev/nvme0n1p2:cryptroot:allow-discards"
GRUB_CMDLINE_LINUX="cryptdevice=UUID=e6511a4f-36ed-4bdc-bcb5-82f910448244:cryptroot:allow-discards"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
GRUB_ENABLE_CRYPTODISK=y
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true
# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y
# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER=false
blkid
/dev/nvme0n1p1: UUID="2B08-5B3E" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="754608cd-10ab-fe45-af67-23b9c4a61e7b"
/dev/nvme0n1p2: UUID="e6511a4f-36ed-4bdc-bcb5-82f910448244" TYPE="crypto_LUKS" PARTUUID="fd84eb77-13e0-2745-8a75-cdc27276260f"
/dev/sdb1: LABEL="data1" UUID="0e7ab16f-7502-4302-be0b-1677ea33cd33" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="data1" PARTUUID="53fd7822-d89d-431f-94f5-287fe0795d75"
/dev/mapper/cryptroot: LABEL="root" UUID="b43c8310-548b-4458-87f7-bb0a5b805277" UUID_SUB="40bc76b9-59dc-4c77-b0a7-f51bad4f6e69" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/nvme1n1p1: LABEL="games" UUID="4d2126e0-33d1-428b-9498-a50cdf57c089" UUID_SUB="110d2b11-44d1-4052-803b-ac72a82c1e13" BLOCK_SIZE="4096" TYPE="btrfs" PARTLABEL="games" PARTUUID="54b415f8-0172-475c-a170-1f2483548f89"
/dev/sda1: LABEL="data2" UUID="dbb2c85e-bdf0-49f3-b72c-d00a18682ca0" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="data2" PARTUUID="e9497587-1986-4da1-8c67-336a6a49dd6d"
cryptsetup luksDump /dev/nvme0n1p2 | grep UUID
UUID: e6511a4f-36ed-4bdc-bcb5-82f910448244
/boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha512
insmod btrfs
cryptomount -u e6511a4f-36ed-4bdc-bcb5-82f910448244
set root='cryptouuid/e6511a4f36ed4bdcbcb582f910448244'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/e6511a4f36ed4bdcbcb582f910448244' b43c8310-548b-4458-87f7-bb0a5b805277
else
search --no-floppy --fs-uuid --set=root b43c8310-548b-4458-87f7-bb0a5b805277
fi
font="/@/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b43c8310-548b-4458-87f7-bb0a5b805277' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha512
insmod btrfs
cryptomount -u e6511a4f-36ed-4bdc-bcb5-82f910448244
set root='cryptouuid/e6511a4f36ed4bdcbcb582f910448244'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/e6511a4f36ed4bdcbcb582f910448244' b43c8310-548b-4458-87f7-bb0a5b805277
else
search --no-floppy --fs-uuid --set=root b43c8310-548b-4458-87f7-bb0a5b805277
fi
echo 'Loading Linux linux ...'
linux /@/boot/vmlinuz-linux root=UUID=b43c8310-548b-4458-87f7-bb0a5b805277 rw rootflags=subvol=@ cryptdevice=UUID=e6511a4f-36ed-4bdc-bcb5-82f910448244:cryptroot:allow-discards loglevel=3
echo 'Loading initial ramdisk ...'
initrd /@/boot/amd-ucode.img /@/boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-b43c8310-548b-4458-87f7-bb0a5b805277' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-b43c8310-548b-4458-87f7-bb0a5b805277' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha512
insmod btrfs
cryptomount -u e6511a4f-36ed-4bdc-bcb5-82f910448244
set root='cryptouuid/e6511a4f36ed4bdcbcb582f910448244'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/e6511a4f36ed4bdcbcb582f910448244' b43c8310-548b-4458-87f7-bb0a5b805277
else
search --no-floppy --fs-uuid --set=root b43c8310-548b-4458-87f7-bb0a5b805277
fi
echo 'Loading Linux linux ...'
linux /@/boot/vmlinuz-linux root=UUID=b43c8310-548b-4458-87f7-bb0a5b805277 rw rootflags=subvol=@ cryptdevice=UUID=e6511a4f-36ed-4bdc-bcb5-82f910448244:cryptroot:allow-discards loglevel=3
echo 'Loading initial ramdisk ...'
initrd /@/boot/amd-ucode.img /@/boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-b43c8310-548b-4458-87f7-bb0a5b805277' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod cryptodisk
insmod luks
insmod gcry_rijndael
insmod gcry_rijndael
insmod gcry_sha512
insmod btrfs
cryptomount -u e6511a4f-36ed-4bdc-bcb5-82f910448244
set root='cryptouuid/e6511a4f36ed4bdcbcb582f910448244'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/e6511a4f36ed4bdcbcb582f910448244' b43c8310-548b-4458-87f7-bb0a5b805277
else
search --no-floppy --fs-uuid --set=root b43c8310-548b-4458-87f7-bb0a5b805277
fi
echo 'Loading Linux linux ...'
linux /@/boot/vmlinuz-linux root=UUID=b43c8310-548b-4458-87f7-bb0a5b805277 rw rootflags=subvol=@ cryptdevice=UUID=e6511a4f-36ed-4bdc-bcb5-82f910448244:cryptroot:allow-discards loglevel=3
echo 'Loading initial ramdisk ...'
initrd /@/boot/amd-ucode.img /@/boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
submenu 'Arch Linux snapshots' {
configfile "${prefix}/grub-btrfs.cfg"
}
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###
### BEGIN /etc/grub.d/86_memtest ###
if [ "$grub_platform" = "efi" ]; then
menuentry "Memtest86" {
search --set=root --no-floppy --fs-uuid 2B08-5B3E
chainloader /EFI/memtest86/memtestx64.efi
}
fi
### END /etc/grub.d/86_memtest ###
Last edited by bestfriend (2023-03-05 02:58:12)
Offline
[2023-02-09T16:04:28+0100] [ALPM] upgraded grub (2:2.06.r440.g4de39a2af-1 -> 2:2.06.r456.g65bc45963-1)
[2023-02-09T16:04:28+0100] [ALPM-SCRIPTLET] :: To use the new features provided in this GRUB update, it is recommended
[2023-02-09T16:04:28+0100] [ALPM-SCRIPTLET] to install it to the MBR or UEFI. Due to potential configuration
[2023-02-09T16:04:28+0100] [ALPM-SCRIPTLET] incompatibilities, it is advised to run both, installation and generation
[2023-02-09T16:04:28+0100] [ALPM-SCRIPTLET] of configuration:
[2023-02-09T16:04:28+0100] [ALPM-SCRIPTLET] $ grub-install ...
[2023-02-09T16:04:28+0100] [ALPM-SCRIPTLET] $ grub-mkconfig -o /boot/grub/grub.cfg
(I did not fully read the post you linked.)
Did you follow the packager's advice above?
Offline
Ah, silly me... reinstalling fixed it. Thanks.
I had remade the config a couple times to no avail, but actually using grub-install fixed it.
Offline
You're welcome. The grub-install is needed again when grub modules are updated that your system uses (like the cryptomount you researched in this case). Just re-generating the grub.cfg (which describes the defined grub menu entries) does not help here, because the modules are embedded into the binary generated by grub-install to be booted to access the menu. It's important to double-check after re-running grub-install, though, as any errors are very likely result in an unbootable system. That's also a reason the package does not perform the commands automatically.
Offline