You are not logged in.

#1 2016-01-15 02:13:56

thewooster
Member
Registered: 2012-10-20
Posts: 57

LVM on LUKS with Remote Header: timed out waiting for device

I am trying to Install Arch on my new Thinkpad T450s.  Secure Boot is disabled, and my I set my bios to "boot to legacy mode only." 

I can post any additional information if it would be helpful.

These are the primary guides I am following for anyone having a similar problem:
LVM_on_LUKS
Encrypted system using a remote LUKS header

So I boot up, unlock the hardware-level encryption, I get to here:

loading linux . .. 

please enter passphrase for disk Samsung_. . . .:

[OK]started cryptography setup for MyStorage
[OK]reached target encrypted volume.
[OK]reached target system initialization
[OK]reached target basic system

(1 of 2) a start job is running for dev-mapper-Mystorage.device (time)

[Time]timed out waiting for device dev-mapper-mystorage\x2drootvol.device
[Depend]Dependency failed for /sysroot
[Depend]Dependency failed for Initrd Root File System
[Depend]Dependency failed for Reload Configuration from the Real Root.
[Depend]Dependency failed for File System Check on /dev/mapper/Mystorage-rootvol

[OK]Stopped target Initrd Default Target.
[OK]Stopped target basic System
[OK]Stopped target System initialization
[OK]Started Emergency Shell.
[OK]Reached target Emergency mode. 
[OK]Reached target Initrd File System
[OK]Reached emergency mode . . . .

Crypttab.initramfs

MyStorage		/dev/disk/by-id/ata-Samsung_SSD_850_PRO_512GB_S250NXAG950333J 			none		header=/boot/header.img

Fstab

# /dev/mapper/MyStorage-rootvol
UUID=b34d051c-d055-4f56-b93f-f0e84e730c49	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/mapper/MyStorage-varvol
UUID=3cc5ba15-3c45-49b3-989b-62080b8a01c2	/var      	ext4      	rw,relatime,data=ordered	0 2

# /dev/mapper/MyStorage-homevol
UUID=f91bbd25-41b4-47b2-b877-28173868e26f	/home     	ext4      	rw,relatime,data=ordered	0 2

# /dev/sdc2
UUID=fa5ef818-eb7f-403a-be23-ed474ce1cc2a	/boot     	ext2      	rw,relatime	0 2

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="loop"

# 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="/boot/header.img"

# 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 systemd modconf block encrypt encrypt2 sd-encrypt sd-lvm2 lvm2 filesystems keyboard 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_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

/etc/default/grub

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=/dev/sda1:MyStorage:header root=/dev/mapper/MyStorage-roolvol quiet splash"
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.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 loadfont unicode ; 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-/dev/mapper/MyStorage-rootvol' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt 
	insmod ext2
	set root='hd2,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  fa5ef818-eb7f-403a-be23-ed474ce1cc2a
	else
	  search --no-floppy --fs-uuid --set=root fa5ef818-eb7f-403a-be23-ed474ce1cc2a
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=/dev/mapper/MyStorage-rootvol rw  cryptdevice=/dev/sda1:MyStorage:header root=/dev/mapper/MyStorage-roolvol quiet splash
	echo	'Loading initial ramdisk ...'
	initrd	 /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-/dev/mapper/MyStorage-rootvol' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-/dev/mapper/MyStorage-rootvol' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt 
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  fa5ef818-eb7f-403a-be23-ed474ce1cc2a
		else
		  search --no-floppy --fs-uuid --set=root fa5ef818-eb7f-403a-be23-ed474ce1cc2a
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=/dev/mapper/MyStorage-rootvol rw  cryptdevice=/dev/sda1:MyStorage:header root=/dev/mapper/MyStorage-roolvol quiet splash
		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-/dev/mapper/MyStorage-rootvol' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt 
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  fa5ef818-eb7f-403a-be23-ed474ce1cc2a
		else
		  search --no-floppy --fs-uuid --set=root fa5ef818-eb7f-403a-be23-ed474ce1cc2a
		fi
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=/dev/mapper/MyStorage-rootvol rw  cryptdevice=/dev/sda1:MyStorage:header root=/dev/mapper/MyStorage-roolvol quiet splash
		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+ ###

Offline

#2 2016-01-15 09:30:36

loqs
Member
Registered: 2014-03-06
Posts: 18,963

Re: LVM on LUKS with Remote Header: timed out waiting for device

Crypttab.initramfs is this a transcription error?  It should be all lower case.
If you use the systemd hook then the encrypt, lvm2 will not work but sd-encrypt sd-lvm2 are there so that is probably not the issue.  No knowledge of the encrypt2 hook.
The cryptdevice parameter is not recognised by sd-encrypt and as mentioned above the encrypt hook will not run so unless encrypt2 is compatible with the systemd hook it will be ignored.
See also https://bbs.archlinux.org/viewtopic.php?id=206919
Hope this is of some help.

Offline

Board footer

Powered by FluxBB