You are not logged in.
Pages: 1
Hello, I'm having issues when booting my new arch system. I come from Fedora, never touched Arch before. I have a UEFI system with secureboot enabled and I wanted to have all system (including /boot partition) encrypted under a LVM+LUKS. I followed the steps in the manual, and I get to the grub menu where I can select Arch Linux. But then, after that, I get the "Starting version 229" for some seconds and then a message saying it culdn't find the root device, with an UUID, and I get the recovery shell. From there I can see that cryptsetup hasn't opened the LVM where all partitions are stored (including /boot).
What could be happening? I got some warnings related to LVM socket not being available when generating the grub menu, but I read it was unimportant.
Thanks in advance!
Offline
What could be happening? I got some warnings related to LVM socket not being available when generating the grub menu, but I read it was unimportant.
Doh! If you were getting *errors* that would be bad. Warnings on the other hand are more of an alert that something may go wrong, and can be ignored with your discretion. If the LVM socket is not available, my best guess is that is where your problem lies. Note I do not use LVM, Luks, or even GRUB. However, my first clue would be to look into the LVM socket, and make sure everything is started correctly and at the right times.
Welcome to the Arch forums ![]()
I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline
Hi, thanks!
The error I get is the following:
/run/lvm/lvmetad.socket: connect failed: No such file or directoryI've tried to start the service outside the chroot with the installation usb but I still get the error.
could this be related to grub/systemd not mounting the root fs?
EDIT: I fixed the socket issue by disabling Grub submenus, but I still get the recovery shell. Any information I could provide you to troubleshoot?
EDIT: It seems that Grub successfully decrypts the LVM but that initramfs doesn't.
Last edited by Razican (2016-03-23 11:35:28)
Offline
Hello,
Posting screenshots of text is highly discouraged. It would be of great benefit to see the entire file in text form. Here is how this can be done:
cat /boot/grub/grub.conf | curl -F 'sprunge=<-' http://sprunge.usThis will take the file and pipe it into curl, and should return a sprunge.us link. Please make sure the path in the command matches your system. When everything is done, voila! CLI paste-binned! Please post the config to us in this manner and we can go from there. ![]()
I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline
Oh, great. Some more information regarding the system:
lsblk -f:
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 /boot/efi
└─sda2
└─luks
├─lvm-swap [SWAP]
├─lvm-boot /boot
├─lvm-rootfs /
├─lvm-usr /usr
├─lvm-opt /opt
├─lvm-var /var
├─lvm-log /var/log
├─lvm-home /home
└─lvm-tmp /tmp
sdb
└─sdb1
sdc
├─sdc1
└─sdc2
loop0 /etc/fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=857f83b2-dd80-40c6-b68c-e5bbf582f58a
/dev/mapper/lvm-rootfs / btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=7e62dec9-d8bf-43ae-960d-f5d40d53e652
/dev/mapper/lvm-boot /boot btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=02AA-D828
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# UUID=d6885f8a-61ae-47c5-b9b8-b89bb5dce90c
/dev/mapper/lvm-var /var btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=acaef7da-330c-406f-a583-fcd314019115
/dev/mapper/lvm-log /var/log btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=c7bb5256-6000-4d0b-97e5-16918a30f533
/dev/mapper/lvm-usr /usr btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=4f227100-8059-4099-8520-1566789de04a
/dev/mapper/lvm-opt /opt btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=5f4f9662-1985-4d9e-85f2-42dbff3a2979
/dev/mapper/lvm-home /home btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=3f564c80-33d1-43e5-bf62-eb119bb5861c
/dev/mapper/lvm-tmp /tmp btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0
# UUID=7bf6abb0-344c-4f00-8576-d691ba7d5a84
/dev/mapper/lvm-swap none swap defaults 0 0/etc/default/grub:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# 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"
#GRUB_SAVEDEFAULT="true"
GRUB_ENABLE_CRYPTODISK=y
cryptdevice=UUID=99dea8bd-44f1-4169-b3a7-c627d937c2f3:lvm root=/dev/mapper/lvm-rootfs
GRUB_DISABLE_SUBMENU=y/boot/grub/grub.conf:
#
# 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 luks gcry_rijndael gcry_rijndael gcry_sha256 lvm
insmod btrfs
cryptomount -u 99dea8bd44f14169b3a7c627d937c2f3
set root='lvmid/c72guk-Cp7b-loeT-RR92-TKk3-9W65-LYGsis/nOSOlD-CInJ-vSVr-VaLc-ibkA-MBxD-FKedUg'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/c72guk-Cp7b-loeT-RR92-TKk3-9W65-LYGsis/nOSOlD-CInJ-vSVr-VaLc-ibkA-MBxD-FKedUg' c7bb5256-6000-4d0b-97e5-16918a30f533
else
search --no-floppy --fs-uuid --set=root c7bb5256-6000-4d0b-97e5-16918a30f533
fi
font="/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, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-857f83b2-dd80-40c6-b68c-e5bbf582f58a' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha256 lvm
insmod btrfs
cryptomount -u 99dea8bd44f14169b3a7c627d937c2f3
set root='lvmid/c72guk-Cp7b-loeT-RR92-TKk3-9W65-LYGsis/1Ke0Ox-4T5F-xh7e-Hx0C-W9ZQ-vGkr-uD9819'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/c72guk-Cp7b-loeT-RR92-TKk3-9W65-LYGsis/1Ke0Ox-4T5F-xh7e-Hx0C-W9ZQ-vGkr-uD9819' 7e62dec9-d8bf-43ae-960d-f5d40d53e652
else
search --no-floppy --fs-uuid --set=root 7e62dec9-d8bf-43ae-960d-f5d40d53e652
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=857f83b2-dd80-40c6-b68c-e5bbf582f58a rw 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-857f83b2-dd80-40c6-b68c-e5bbf582f58a' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha256 lvm
insmod btrfs
cryptomount -u 99dea8bd44f14169b3a7c627d937c2f3
set root='lvmid/c72guk-Cp7b-loeT-RR92-TKk3-9W65-LYGsis/1Ke0Ox-4T5F-xh7e-Hx0C-W9ZQ-vGkr-uD9819'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/c72guk-Cp7b-loeT-RR92-TKk3-9W65-LYGsis/1Ke0Ox-4T5F-xh7e-Hx0C-W9ZQ-vGkr-uD9819' 7e62dec9-d8bf-43ae-960d-f5d40d53e652
else
search --no-floppy --fs-uuid --set=root 7e62dec9-d8bf-43ae-960d-f5d40d53e652
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=857f83b2-dd80-40c6-b68c-e5bbf582f58a rw 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 ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###When I boot the system, I get the "Welcome to GRUB!" prompt for the password. I successfully decrypt the menu and I get the two entries. I select the first one and it gets stuck in "starting version 229", after which it says it couldn't find UUID=857f83b2-dd80-40c6-b68c-e5bbf582f58a and I get the recovery shell. Since yesterday I modified a bit the system (trying to use UUID or not to in /etc/fstab, and some other minor tweaks) but the error is always the same. It seems the initramfs does not decrypt the system. It doesn't even ask for a password.
Offline
Well, there is one discrepancy with the UUID's. Those are:
From /etc/default/grub
cryptdevice=UUID=99dea8bd-44f1-4169-b3a7-c627d937c2f3:lvm root=/dev/mapper/lvm-rootfsfault/grub:
From /boot/grub/grub.conf
cryptomount -u 99dea8bd44f14169b3a7c627d937c2f3
Note the lack of hypens in /boot/grub/grub.cfg. I would imagine that, as with most (all?) things in Linux, the UUID's need to be spelled correctly and are case sensitive. That would explain the grub cannot find UUID error. One other thing, those UUID's starting with 99dea8 are not in your fstab either, which I find a bit odd. If you are using partitions, you *may* need to use PARTUUID=<whatever> instead of just UUID=<whatever>. For example, my bootloader entry using systemd's UEFI boot (use only as example!):
[jbs@dmb-gaming-laptop ~]$ cat /boot/loader/entries/arch.conf | grep PART
options root=PARTUUID=39279624-a066-4237-a38a-0ffda604cc07 rw nomodeset
[jbs@dmb-gaming-laptop ~]$ This may not be the case for GRUB.
When I can, I will try and look into the documentation a bit further. But one thing I would make 100% sure of is that you have the correct UUID for the correct partition and/or device, and that LVM/LUKS/GRUB/whatever knows this.
Best of luck getting everything working!
EDIT: Here is something of importance, especially since it relates to your suspected cause of initramfs (mkinitcpio) not working: https://wiki.archlinux.org/index.php/LV … oot_on_LVM. If you forgot the hook, that would definitely do it. You will also need to re-generate the image for changes to take effect. mkinitcpio -p linux should do the trick, but do double check the command.
Last edited by JohnBobSmith (2016-03-23 16:04:55)
I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline
I changed the UUID to PARTUUID (even though doing lsblk outside chroot shows that LVM volumes have no PARTUUID. I also changed the cryptomount to the UUID with hyphens, but that only gives me a new error: The initramfs stops and tellsme the cryptomount wasn't found. The grub boots normally though. Do I need to add any configuration to the initramfs (apart from loading encrypt and lvm2 modules with initcpio)? if so, what and how? it seems it founded the UUID of the device before, but not of the volume of the rootfs ![]()
Offline
Well, you might want to look through the wiki entry on this: https://wiki.archlinux.org/index.php/LVM. Otherwise, my guess is as good as yours, since I do not use this type of setup. You can try this command:
ls -l /dev/disk/by-uuid/And see what shows up in regards to UUID's. Seeing as you are the only person who knows what each partition does/is supposed to mean, the only thing I can think of would be experimenting with the settings. Make sure you've setup everything correctly as per the wiki and related articles, and if you still can't get anything working, feel free to post back here. Remember that actual error messages which can then be googled and/or troubleshooted are of most help.
Hopefully you can get everything working soon!
Last edited by JohnBobSmith (2016-03-23 18:49:42)
I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline
Pages: 1