You are not logged in.
Hi there.
I am almost through the installation process.
Just a quick not on my "goal":
The system setup is encrypted,but luks on top of lvm.
The laptop contains two drives, a ~256GB SSD and a 1TB HDD. All system
stuff should be placed on the SSD, all data on HDD.
The ssd has 3 partition: efi, unencrypted boot, lvm
The hhd has 1 partition: lvm
The lvm on the ssd is the sole contributer to
vg("systems") which has 3 logical volumes: linux1, linux2 and swap
All logical volumes are encrypted after setup with cryptsetup.
The archlinux system sits in "linux1" and is supposed to be root. "linux2" is spare.
The lvm on the hdd is the sole contributer to
vg("data") which has 1 logical volume: data
All logical volumes are encrypted after setup with cryptsetup.
However, after following all the manuals I get after
umount -R /mnt[FAILED] Failed unmounting /run/archiso/bootmnt
umount: can't unmount /dev/loop0: Invalid argument
umount: can't unmount /oldrun/archiso/cowspace: Invalid argumentThe system is neither rebooting nor shutting down. I have to "pull the plug".
When restarting I get:
Welcome to GRUB
error: no such device: af21e151-127a-41c8-9b51-5b45211234c3.
Entering rescue mode
grub rescue>The uid above is that of the non-encrypted boot partition on an SSD.
Note that grub and stuff like pvscan had trouble:
"WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning"
Beside that, grub-install, grub-mkconfig and mkinitcpio worked without error.
Thank you very much for any help.
cheers
some helpfull output:
output of fdisk-l
Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 437DA499-1EE7-457E-8F84-756D53102C86
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 2099199 1048576 512M Linux filesystem
/dev/nvme0n1p3 2099200 500118158 498018959 237.5G Linux LVM
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 139BD1C6-6CEF-460D-BEFE-89C38B5B4716
Device Start End Sectors Size Type
/dev/sda1 2048 1953525134 1953523087 931.5G Linux LVM
Disk /dev/sdb: 3.8 GiB, 4007657472 bytes, 7827456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2338a73e
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 1482751 1482752 724M 0 Empty
/dev/sdb2 172 82091 81920 40M ef EFI (FAT-12/16/32)
Disk /dev/loop0: 313.1 MiB, 328339456 bytes, 641288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/data-data: 931.5 GiB, 1000198897664 bytes, 1953513472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/systems-swap: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/systems-linux1: 102.8 GiB, 110310195200 bytes, 215449600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/systems-linux2: 102.8 GiB, 110314389504 bytes, 215457792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 931.5 GiB, 1000204883968 bytes, 1953525164 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00082f1a
Device Boot Start End Sectors Size Id Type
/dev/sdc1 63 40965749 40965687 19.5G b W95 FAT32
/dev/sdc2 40965750 81931499 40965750 19.5G 7 HPFS/NTFS/exFAT
/dev/sdc3 81931500 1953520064 1871588565 892.5G 5 Extended
/dev/sdc5 81931563 1953520064 1871588502 892.5G 83 Linux
Disk /dev/mapper/root: 102.8 GiB, 110308098048 bytes, 215445504 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/swap: 32 GiB, 34357641216 bytes, 67104768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/data: 931.5 GiB, 1000196800512 bytes, 1953509376 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytesoutput of mount
/dev/mapper/root on / type ext4 (rw,relatime,data=ordered)
/dev/nvme0n1p2 on /boot type ext4 (rw,relatime,data=ordered)
/dev/mapper/data on /home type ext4 (rw,relatime,data=ordered)
/dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16372584k,nr_inodes=4093146,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
tmp on /tmp type tmpfs (rw,nosuid,nodev)
airootfs on /etc/resolv.conf type overlay (rw,relatime,lowerdir=/run/archiso/sfs/airootfs,upperdir=/run/archiso/cowspace/persistent_ARCH_201604/x86_64/upperdir,workdir=/run/archiso/cowspace/persistent_ARCH_201604/x86_64/workdir)output of pvscan
PV /dev/nvme0n1p3 VG systems lvm2 [237.47 GiB / 0 free]
PV /dev/sda1 VG data lvm2 [931.51 GiB / 0 free]
Total: 2 [1.14 TiB] / in use: 2 [1.14 TiB] / in no VG: 0 [0 ]output of lvscan
ACTIVE '/dev/systems/swap' [32.00 GiB] inherit
ACTIVE '/dev/systems/linux1' [102.73 GiB] inherit
ACTIVE '/dev/systems/linux2' [102.74 GiB] inherit
ACTIVE '/dev/data/data' [931.51 GiB] inheritoutput of fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/root
UUID=fa3c788b-9a39-418f-8311-649ba8854f5b / ext4 rw,relatime,data=ordered 0 1
# /dev/nvme0n1p2
UUID=af21e151-127a-41c8-9b51-5b45211234c3 /boot ext4 rw,relatime,data=ordered 0 2
# /dev/mapper/data
UUID=95d6560b-ecff-4a48-839c-d0b8800203b5 /home ext4 rw,relatime,data=ordered 0 2
# /dev/mapper/swap
UUID=a21999b4-9bcc-4cac-8447-db0bd0263c66 none swap defaults 0 0output of crypttab
# crypttab: mappings for encrypted partitions
#
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
# should use the /dev/mapper/<name> paths for encrypted devices.
#
# The Arch specific syntax has been deprecated, see crypttab(5) for the
# new supported syntax.
#
# NOTE: Do not list your root (/) partition here, it must be set up
# beforehand by the initramfs (/etc/mkinitcpio.conf).
# <name> <device> <password> <options>
# home UUID=b8ad5c18-f445-495d-9095-c9ec4f9d2f37 /etc/mypassword1
# data1 /dev/sda3 /etc/mypassword2
# data2 /dev/sda5 /etc/cryptfs.key
# swap /dev/sdx4 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256
# vol /dev/sdb7 none
data /dev/data/data none luks
swap /dev/systems/swap /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256content of grub
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="nosplash cryptdevice=/dev/systems/linux1:root root=/dev/mapper/root"
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"content of 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-fa3c788b-9a39-418f-8311-649ba8854f5b' {
load_video
set gfxpayload=keep
insmod gzio
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root af21e151-127a-41c8-9b51-5b45211234c3
else
search --no-floppy --fs-uuid --set=root af21e151-127a-41c8-9b51-5b45211234c3
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=fa3c788b-9a39-418f-8311-649ba8854f5b rw nosplash cryptdevice=/dev/systems/linux1:root root=/dev/mapper/root
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-fa3c788b-9a39-418f-8311-649ba8854f5b' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-fa3c788b-9a39-418f-8311-649ba8854f5b' {
load_video
set gfxpayload=keep
insmod gzio
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root af21e151-127a-41c8-9b51-5b45211234c3
else
search --no-floppy --fs-uuid --set=root af21e151-127a-41c8-9b51-5b45211234c3
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=fa3c788b-9a39-418f-8311-649ba8854f5b rw nosplash cryptdevice=/dev/systems/linux1:root root=/dev/mapper/root
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-fa3c788b-9a39-418f-8311-649ba8854f5b' {
load_video
set gfxpayload=keep
insmod gzio
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root af21e151-127a-41c8-9b51-5b45211234c3
else
search --no-floppy --fs-uuid --set=root af21e151-127a-41c8-9b51-5b45211234c3
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=fa3c788b-9a39-418f-8311-649ba8854f5b rw nosplash cryptdevice=/dev/systems/linux1:root root=/dev/mapper/root
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+ ###content 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=""
# 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 modconf block encrypt 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=""output of mkinitcpio -p linux
WARNING: Possibly missing firmware for module: wd719x
WARNING: Possibly missing firmware for module: aic94xx
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.4.5-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
-> Running build hook: [lvm2]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.4.5-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
-> Running build hook: [lvm2]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successfulLast edited by kalle (2016-04-10 16:19:46)
Offline
Just an update:
when grub goes into rescue shell, ls yields (hd0) and (hd1). ls (hd0) yields "Filesystem is unknown". Same for ls (hd1). So grub searches for the right uid, but knows nothing about the system. How can that happen??
Any idea??
Thanks a lot
Offline
Please edit your post to use code tags around all your config files and command output, thanks.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Done.
Offline