You are not logged in.

#1 2021-02-06 00:59:12

sygoon
Member
Registered: 2021-02-05
Posts: 2

[SOLVED]ERROR: device 'UUID=...' not found. Skipping fsck. boot

I'm having issues getting Arch Linux to boot. I'm trying to boot with GRUB2.04.

Starting version 243.78-2-arch

A password is required to access the cryptsys volume:
Enter passphrase for /dev/sda2:
ERROR: device 'UUID=7ac5c4f3-9769-442d-b166-4056f78500e' not found. Skipping fsck.
mount: /new_root: can't find UUID=7ac5c4f3-9769-442d-b166-4056f78500e.
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off

I encrypted /root and /home with LUKS2 although https://wiki.archlinux.org/index.php/Dm … cryptsetup warns about GRUB2.04 not supporting LUKS2-Headers. According to the warning this should only be an issue if  the /boot partition is encrypted. This is not the case in my setup.

According to https://bbs.archlinux.org/viewtopic.php?id=254056 it could also be a problem between the kernel and initramfs but I can't see any issues there in my grub.cfg (see below) either.

$cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/VGsys-LVroot
UUID=7ac5c4f3-9769-442d-b166-4056f785800e	/         	ext4      	rw,relatime	0 1

# /dev/mapper/VGsys-LVhome
UUID=2dc7e8e9-139a-41d8-a7e8-f6b30edaadd3	/home     	ext4      	rw,relatime	0 2

# /dev/sda1
UUID=8B68-CE4A      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2
cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=(dm_mod)

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
$cat /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
insmod lvm
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 lvm
insmod ext2
set root='lvmid/blXDRD-LPhs-DfzB-C6Mz-6dD4-X4cR-YzTz0k/Cvy27f-oaDr-5epK-I4Wx-VWOe-7hRE-XfRds1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/blXDRD-LPhs-DfzB-C6Mz-6dD4-X4cR-YzTz0k/Cvy27f-oaDr-5epK-I4Wx-VWOe-7hRE-XfRds1'  7ac5c4f3-9769-442d-b166-4056f785800e
else
  search --no-floppy --fs-uuid --set=root 7ac5c4f3-9769-442d-b166-4056f785800e
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=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
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-7ac5c4f3-9769-442d-b166-4056f785800e' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod fat
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  8B68-CE4A
	else
	  search --no-floppy --fs-uuid --set=root 8B68-CE4A
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=/dev/mapper/VGsys-LVroot rw cryptdevice=UUID=4a8f7518-8279-40c5-a7ec-cbd8a4fbbd93:cryptsys root=UUID=7ac5c4f3-9769-442d-b166-4056f78500e loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-7ac5c4f3-9769-442d-b166-4056f785800e' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-7ac5c4f3-9769-442d-b166-4056f785800e' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		set root='hd0,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  8B68-CE4A
		else
		  search --no-floppy --fs-uuid --set=root 8B68-CE4A
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=/dev/mapper/VGsys-LVroot rw cryptdevice=UUID=4a8f7518-8279-40c5-a7ec-cbd8a4fbbd93:cryptsys root=UUID=7ac5c4f3-9769-442d-b166-4056f78500e loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/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-7ac5c4f3-9769-442d-b166-4056f785800e' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		set root='hd0,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  8B68-CE4A
		else
		  search --no-floppy --fs-uuid --set=root 8B68-CE4A
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=/dev/mapper/VGsys-LVroot rw cryptdevice=UUID=4a8f7518-8279-40c5-a7ec-cbd8a4fbbd93:cryptsys root=UUID=7ac5c4f3-9769-442d-b166-4056f78500e loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/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/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 ###

lsblk output (left out sbb and sdc USB-drives):

NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0                7:0    0 571.4M  1 loop  /run/archiso/sfs/airootfs
sda                  8:0    0 232.9G  0 disk  
├─sda1               8:1    0   260M  0 part  /mnt/boot
└─sda2               8:2    0 232.6G  0 part  
  └─cryptsys       254:0    0 232.6G  0 crypt 
    ├─VGsys-LVroot 254:1    0    60G  0 lvm   /mnt
    └─VGsys-LVhome 254:2    0 172.6G  0 lvm   /mnt/home

blkid output (left out sbb and sdc USB-drives):

/dev/sda1: UUID="8B68-CE4A" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="77fac400-bd78-40a2-b6c7-1da010d0030a"
/dev/sda2: UUID="4a8f7518-8279-40c5-a7ec-cbd8a4fbbd93" TYPE="crypto_LUKS" PARTLABEL="Linux dm-crypt" PARTUUID="a18929cd-038c-4e95-b79c-df687e7574de"
/dev/mapper/cryptsys: UUID="cMSFca-ocFG-hi39-RtaR-M0Lv-ML29-jYYElk" TYPE="LVM2_member"
/dev/mapper/VGsys-LVroot: UUID="7ac5c4f3-9769-442d-b166-4056f785800e" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/VGsys-LVhome: UUID="2dc7e8e9-139a-41d8-a7e8-f6b30edaadd3" BLOCK_SIZE="4096" TYPE="ext4"

Maybe you can spot my mistake. I don't really know what my next steps could be in order to resolve this issue so help is appreciated.

Thanks in advance

Last edited by sygoon (2021-02-07 19:39:44)

Offline

#2 2021-02-06 01:49:43

kermit63
Member
Registered: 2018-07-04
Posts: 288

Re: [SOLVED]ERROR: device 'UUID=...' not found. Skipping fsck. boot

Please append the contents of /etc/default/grub to the original post. I'm particularly interested in the "GRUB_CMDLINE_LINUX_DEFAULT=" line.

Is this a typo error?
The error message is complaining about 7ac5c4f3-9769-442d-b166-4056f78500e
while fstab and blkid shows                     7ac5c4f3-9769-442d-b166-4056f785800e


Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.

Offline

#3 2021-02-06 03:07:11

sygoon
Member
Registered: 2021-02-05
Posts: 2

Re: [SOLVED]ERROR: device 'UUID=...' not found. Skipping fsck. boot

kermit63 wrote:

Please append the contents of /etc/default/grub to the original post. I'm particularly interested in the "GRUB_CMDLINE_LINUX_DEFAULT=" line.

Is this a typo error?
The error message is complaining about 7ac5c4f3-9769-442d-b166-4056f78500e
while fstab and blkid shows                     7ac5c4f3-9769-442d-b166-4056f785800e

You were right! GRUB_CMDLINE_LINUX was set to ...root=UUID=7ac5c4f3-9769-442d-b166-4056f78500e with the missing 8. I

grub-mkconfig -o /boot/grub/grub.cfg

again and now everything seems to work fine.

I guess the incorrect value led to this in grub.cfg

linux	/vmlinuz-linux root=/dev/mapper/VGsys-LVroot rw cryptdevice=UUID=4a8f7518-8279-40c5-a7ec-cbd8a4fbbd93:cryptsys root=UUID=7ac5c4f3-9769-442d-b166-4056f78500e loglevel=3 quiet

with the same UUID set which caused the error.

Also since you mentioned "GRUB_CMDLINE_LINUX_DEFAULT" I probably should use this instead of "GRUB_CMDLINE_LINUX" although both work.

Thank you!

Offline

Board footer

Powered by FluxBB