You are not logged in.
I know there are ten million posts with the same issue, i read (almost) all of them bu nothing solved my problem yet.
I have lvm on luks, uefi, only arch, no other distro, no dual boot
an esp partition which i mount to /boot
an encrypted lvm partition which contains root and home (yes i use /dev/mapper/... when i need to mentaion root or home)
i've installed the base system. as a bootloader use grub. after boot it says
ERROR: device 'UUID=...' not found . Skipping fsck.
ERROR: Unable to find root devide 'UUID=...'.
and falls back to the rootfs shell.
here is my fstab:
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/vg-root
UUID=7a4ef8c0-0710-4a2a-9c50-21f11e19d966 / ext4 rw,relatime,data=ordered 0 1
# /dev/mapper/vg-home
UUID=3fa813ad-64ff-4a34-bfe9-364c6c0bd33e /home ext4 rw,relatime,data=ordered 0 2
# /dev/sdc1
UUID=A011-86A8 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
my 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-7a4ef8c0-0710-4a2a-9c50-21f11e19d966' {
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 A011-86A8
else
search --no-floppy --fs-uuid --set=root 7a4ef8c0-0710-4a2a-9c50-21f11e19d966
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=7a4ef8c0-0710-4a2a-9c50-21f11e19d966 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-7a4ef8c0-0710-4a2a-9c50-21f11e19d966' {
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-7a4ef8c0-0710-4a2a-9c50-21f11e19d966' {
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 A011-86A8
else
search --no-floppy --fs-uuid --set=root 7a4ef8c0-0710-4a2a-9c50-21f11e19d966
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=7a4ef8c0-0710-4a2a-9c50-21f11e19d966 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-7a4ef8c0-0710-4a2a-9c50-21f11e19d966' {
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 A011-86A8
else
search --no-floppy --fs-uuid --set=root 7a4ef8c0-0710-4a2a-9c50-21f11e19d966
fi
echo 'Loading Linux linux-lts ...'
linux /vmlinuz-linux-lts root=UUID=7a4ef8c0-0710-4a2a-9c50-21f11e19d966 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-7a4ef8c0-0710-4a2a-9c50-21f11e19d966' {
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 A011-86A8
else
search --no-floppy --fs-uuid --set=root 7a4ef8c0-0710-4a2a-9c50-21f11e19d966
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=7a4ef8c0-0710-4a2a-9c50-21f11e19d966 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-7a4ef8c0-0710-4a2a-9c50-21f11e19d966' {
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 A011-86A8
else
search --no-floppy --fs-uuid --set=root 7a4ef8c0-0710-4a2a-9c50-21f11e19d966
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=7a4ef8c0-0710-4a2a-9c50-21f11e19d966 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+ ###
As i've seen in another post, my set root UUIDs were different than root UUID's so i changed them to be same. But didn't solve the problem. All my uuid's seem to me true. And i don't know why grub-mkconfig generates a menu entry Arch Linux with linux-lts and also a sub menu for lts... But anyway even if i choose lts same problem occurs.Can't find root device.
My hooks order in my mkinitcpio.conf file is(which is mentioned in another forum):
HOOKS="base udev block autodetect modconf keymap encrypt lvm2 filesystems keyboard fsck shutdown"
and my pacman.log is it's necessary(i don't see any error message):
[2014-08-09 14:41] [PACMAN] Running 'pacman -r /mnt -Sy --cachedir=/mnt/var/cache/pacman/pkg base base-devel'
[2014-08-09 14:41] [PACMAN] synchronizing package lists
[2014-08-09 14:46] [PACMAN] installed linux-api-headers (3.14.1-1)
[2014-08-09 14:46] [PACMAN] installed tzdata (2014e-1)
[2014-08-09 14:46] [PACMAN] installed iana-etc (2.30-4)
[2014-08-09 14:46] [PACMAN] installed filesystem (2014.07-1)
[2014-08-09 14:46] [PACMAN] installed glibc (2.19-5)
[2014-08-09 14:46] [PACMAN] installed ncurses (5.9-6)
[2014-08-09 14:46] [PACMAN] installed readline (6.3.006-1)
[2014-08-09 14:46] [PACMAN] installed bash (4.3.018-3)
[2014-08-09 14:46] [PACMAN] installed bzip2 (1.0.6-5)
[2014-08-09 14:46] [PACMAN] installed zlib (1.2.8-3)
[2014-08-09 14:46] [PACMAN] installed cracklib (2.9.0-2)
[2014-08-09 14:46] [PACMAN] installed libutil-linux (2.25-3)
[2014-08-09 14:46] [PACMAN] installed e2fsprogs (1.42.11-1)
[2014-08-09 14:46] [PACMAN] installed gdbm (1.11-1)
[2014-08-09 14:46] [PACMAN] installed gcc-libs (4.9.1-1)
[2014-08-09 14:46] [PACMAN] installed db (5.3.28-1)
[2014-08-09 14:46] [PACMAN] installed perl (5.20.0-5)
[2014-08-09 14:46] [PACMAN] installed openssl (1.0.1.i-1)
[2014-08-09 14:46] [PACMAN] installed libsasl (2.1.26-7)
[2014-08-09 14:46] [PACMAN] installed libldap (2.4.39-1)
[2014-08-09 14:46] [PACMAN] installed keyutils (1.5.9-1)
[2014-08-09 14:46] [PACMAN] installed krb5 (1.12.1-1)
[2014-08-09 14:46] [PACMAN] installed libtirpc (0.2.4-1)
[2014-08-09 14:46] [PACMAN] installed pambase (20130928-1)
[2014-08-09 14:46] [PACMAN] installed pam (1.1.8-5)
[2014-08-09 14:46] [PACMAN] installed attr (2.4.47-1)
[2014-08-09 14:46] [PACMAN] installed acl (2.2.52-2)
[2014-08-09 14:46] [PACMAN] installed gmp (6.0.0-1)
[2014-08-09 14:46] [PACMAN] installed libcap (2.24-1)
[2014-08-09 14:46] [PACMAN] installed coreutils (8.23-1)
[2014-08-09 14:46] [PACMAN] installed libdbus (1.8.6-1)
[2014-08-09 14:46] [PACMAN] installed expat (2.1.0-3)
[2014-08-09 14:46] [PACMAN] installed dbus (1.8.6-1)
[2014-08-09 14:46] [PACMAN] installed pcre (8.35-1)
[2014-08-09 14:46] [PACMAN] installed libffi (3.1-2)
[2014-08-09 14:46] [PACMAN] installed glib2 (2.40.0-1)
[2014-08-09 14:46] [PACMAN] installed kbd (2.0.1-1)
[2014-08-09 14:46] [PACMAN] installed kmod (18-1)
[2014-08-09 14:46] [PACMAN] installed hwids (20140602-1)
[2014-08-09 14:46] [PACMAN] installed libgpg-error (1.13-1)
[2014-08-09 14:46] [PACMAN] installed libgcrypt (1.6.1-1)
[2014-08-09 14:46] [PACMAN] installed xz (5.0.5-2)
[2014-08-09 14:46] [PACMAN] installed libsystemd (215-4)
[2014-08-09 14:46] [PACMAN] installed libseccomp (2.1.1-1)
[2014-08-09 14:46] [PACMAN] installed shadow (4.2.1-1)
[2014-08-09 14:46] [PACMAN] installed util-linux (2.25-3)
[2014-08-09 14:46] [ALPM-SCRIPTLET] Initializing machine ID from random generator.
[2014-08-09 14:46] [ALPM-SCRIPTLET] Created symlink from /etc/systemd/system/getty.target.wants/getty@tty1.service to /usr/lib/systemd/system/getty@.service.
[2014-08-09 14:46] [ALPM-SCRIPTLET] :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
[2014-08-09 14:46] [ALPM-SCRIPTLET] bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
[2014-08-09 14:46] [PACMAN] installed systemd (215-4)
[2014-08-09 14:46] [PACMAN] installed device-mapper (2.02.108-1)
[2014-08-09 14:46] [PACMAN] installed popt (1.16-7)
[2014-08-09 14:46] [PACMAN] installed cryptsetup (1.6.5-2)
[2014-08-09 14:46] [PACMAN] installed dhcpcd (6.4.3-1)
[2014-08-09 14:46] [PACMAN] installed diffutils (3.3-2)
[2014-08-09 14:46] [PACMAN] installed file (5.19-1)
[2014-08-09 14:46] [PACMAN] installed findutils (4.4.2-6)
[2014-08-09 14:46] [PACMAN] installed mpfr (3.1.2.p10-1)
[2014-08-09 14:46] [PACMAN] installed gawk (4.1.1-1)
[2014-08-09 14:46] [PACMAN] installed libunistring (0.9.3-6)
[2014-08-09 14:46] [PACMAN] installed gettext (0.19.2-1)
[2014-08-09 14:46] [PACMAN] installed grep (2.20-1)
[2014-08-09 14:46] [PACMAN] installed less (458-1)
[2014-08-09 14:46] [PACMAN] installed gzip (1.6-1)
[2014-08-09 14:46] [PACMAN] installed inetutils (1.9.2-1)
[2014-08-09 14:46] [PACMAN] installed iptables (1.4.21-1)
[2014-08-09 14:46] [PACMAN] installed iproute2 (3.15.0-1)
[2014-08-09 14:46] [PACMAN] installed sysfsutils (2.1.0-9)
[2014-08-09 14:46] [PACMAN] installed iputils (20121221-3)
[2014-08-09 14:46] [PACMAN] installed jfsutils (1.1.15-4)
[2014-08-09 14:46] [PACMAN] installed licenses (20140629-1)
[2014-08-09 14:46] [PACMAN] installed linux-firmware (20140603.a4f3bc0-1)
[2014-08-09 14:46] [PACMAN] installed mkinitcpio-busybox (1.21.1-2)
[2014-08-09 14:46] [PACMAN] installed lzo (2.08-3)
[2014-08-09 14:46] [PACMAN] installed libarchive (3.1.2-8)
[2014-08-09 14:46] [PACMAN] installed mkinitcpio (18-1)
[2014-08-09 14:47] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2014-08-09 14:47] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Starting build: 3.15.8-1-ARCH
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Starting build: 3.15.8-1-ARCH
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2014-08-09 14:47] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2014-08-09 14:47] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-08-09 14:47] [PACMAN] installed linux (3.15.8-1)
[2014-08-09 14:47] [PACMAN] installed logrotate (3.8.7-3)
[2014-08-09 14:47] [PACMAN] installed lvm2 (2.02.108-1)
[2014-08-09 14:47] [PACMAN] installed groff (1.22.2-6)
[2014-08-09 14:47] [PACMAN] installed libpipeline (1.3.0-1)
[2014-08-09 14:47] [ALPM-SCRIPTLET] it's recommended to create an initial
[2014-08-09 14:47] [ALPM-SCRIPTLET] database running as root:
[2014-08-09 14:47] [ALPM-SCRIPTLET] "/usr/bin/mandb --quiet"
[2014-08-09 14:47] [PACMAN] installed man-db (2.6.7.1-1)
[2014-08-09 14:47] [PACMAN] installed man-pages (3.70-1)
[2014-08-09 14:47] [PACMAN] installed mdadm (3.3.1-2)
[2014-08-09 14:47] [PACMAN] installed nano (2.2.6-3)
[2014-08-09 14:47] [PACMAN] installed openresolv (3.5.6-1)
[2014-08-09 14:47] [PACMAN] installed netctl (1.8-1)
[2014-08-09 14:47] [PACMAN] installed run-parts (4.4-1)
[2014-08-09 14:47] [PACMAN] installed sed (4.2.2-3)
[2014-08-09 14:47] [PACMAN] installed ca-certificates (20140325-1)
[2014-08-09 14:47] [PACMAN] installed libssh2 (1.4.3-2)
[2014-08-09 14:47] [PACMAN] installed curl (7.37.1-1)
[2014-08-09 14:47] [PACMAN] installed pth (2.0.7-5)
[2014-08-09 14:47] [PACMAN] installed libksba (1.3.0-1)
[2014-08-09 14:47] [PACMAN] installed libassuan (2.1.1-1)
[2014-08-09 14:47] [PACMAN] installed pinentry (0.8.3-1)
[2014-08-09 14:47] [PACMAN] installed dirmngr (1.1.1-2)
[2014-08-09 14:47] [PACMAN] installed gnupg (2.0.25-1)
[2014-08-09 14:47] [PACMAN] installed gpgme (1.5.0-1)
[2014-08-09 14:47] [PACMAN] installed pacman-mirrorlist (20140706-1)
[2014-08-09 14:47] [PACMAN] installed archlinux-keyring (20140220-1)
[2014-08-09 14:47] [PACMAN] installed pacman (4.1.2-6)
[2014-08-09 14:47] [PACMAN] installed pciutils (3.2.1-1)
[2014-08-09 14:47] [PACMAN] installed pcmciautils (018-7)
[2014-08-09 14:47] [PACMAN] installed procps-ng (3.3.9-3)
[2014-08-09 14:47] [PACMAN] installed psmisc (22.21-2)
[2014-08-09 14:47] [PACMAN] installed reiserfsprogs (3.6.24-1)
[2014-08-09 14:47] [PACMAN] installed s-nail (14.7.5-1)
[2014-08-09 14:47] [PACMAN] installed systemd-sysvcompat (215-4)
[2014-08-09 14:47] [PACMAN] installed tar (1.28-1)
[2014-08-09 14:47] [PACMAN] installed texinfo (5.2-2)
[2014-08-09 14:47] [PACMAN] installed libusb (1.0.19-1)
[2014-08-09 14:47] [PACMAN] installed usbutils (007-1)
[2014-08-09 14:47] [PACMAN] installed vi (1:050325-4)
[2014-08-09 14:47] [PACMAN] installed which (2.20-7)
[2014-08-09 14:47] [PACMAN] installed xfsprogs (3.2.0-1)
[2014-08-09 14:47] [PACMAN] installed m4 (1.4.17-1)
[2014-08-09 14:47] [PACMAN] installed autoconf (2.69-2)
[2014-08-09 14:47] [PACMAN] installed automake (1.14.1-1)
[2014-08-09 14:47] [PACMAN] installed binutils (2.24-6)
[2014-08-09 14:47] [PACMAN] installed bison (3.0.2-1)
[2014-08-09 14:47] [PACMAN] installed fakeroot (1.20-1)
[2014-08-09 14:47] [PACMAN] installed flex (2.5.39-1)
[2014-08-09 14:47] [PACMAN] installed libmpc (1.0.2-2)
[2014-08-09 14:47] [PACMAN] installed isl (0.13-1)
[2014-08-09 14:47] [PACMAN] installed cloog (0.18.1-3)
[2014-08-09 14:47] [PACMAN] installed gcc (4.9.1-1)
[2014-08-09 14:47] [PACMAN] installed libltdl (2.4.2-14)
[2014-08-09 14:47] [PACMAN] installed libtool (2.4.2-14)
[2014-08-09 14:47] [PACMAN] installed libatomic_ops (7.4.2-1)
[2014-08-09 14:47] [PACMAN] installed gc (7.4.2-1)
[2014-08-09 14:47] [PACMAN] installed guile (2.0.11-1)
[2014-08-09 14:47] [PACMAN] installed make (4.0-2)
[2014-08-09 14:47] [PACMAN] installed patch (2.7.1-3)
[2014-08-09 14:47] [PACMAN] installed pkg-config (0.28-2)
[2014-08-09 14:47] [PACMAN] installed sudo (1.8.10.p3-1)
[2014-08-09 17:04] [PACMAN] Running 'pacman -S iw wpa_supplicant w3m'
[2014-08-09 17:04] [PACMAN] installed libnl (3.2.24-1)
[2014-08-09 17:04] [PACMAN] installed iw (3.14-1)
[2014-08-09 17:04] [PACMAN] installed wpa_supplicant (2.2-2)
[2014-08-09 17:04] [PACMAN] installed w3m (0.5.3-5)
[2014-08-09 17:14] [PACMAN] Running 'pacman -S zd1211-firmware dialog dosfstools gummiboot'
[2014-08-09 17:14] [PACMAN] installed zd1211-firmware (1.5-1)
[2014-08-09 17:14] [PACMAN] installed dialog (1:1.2_20140219-1)
[2014-08-09 17:14] [PACMAN] installed dosfstools (3.0.26-1)
[2014-08-09 17:14] [ALPM-SCRIPTLET] Copied /usr/lib/gummiboot/gummibootx64.efi to /boot/EFI/gummiboot/gummibootx64.efi.
[2014-08-09 17:14] [ALPM-SCRIPTLET] Created EFI boot entry "Linux Boot Manager".
[2014-08-09 17:14] [ALPM-SCRIPTLET] :: Run '/usr/bin/gummiboot install' to make gummiboot your default bootloader
[2014-08-09 17:14] [PACMAN] installed gummiboot (45-1)
[2014-08-09 17:15] [PACMAN] Running 'pacman -S vim'
[2014-08-09 17:16] [PACMAN] installed vim-runtime (7.4.383-1)
[2014-08-09 17:16] [PACMAN] installed gpm (1.20.7-4)
[2014-08-09 17:16] [PACMAN] installed vim (7.4.383-1)
[2014-08-09 17:43] [PACMAN] Running 'pacman -S grub efibootmgr'
[2014-08-09 17:43] [PACMAN] Running 'pacman -S grub efibootmgr'
[2014-08-09 17:46] [PACMAN] Running 'pacman -S grub efibootmgr'
[2014-08-09 17:46] [ALPM-SCRIPTLET] Generating grub.cfg.example config file...
[2014-08-09 17:46] [ALPM-SCRIPTLET] This may fail on some machines running a custom kernel.
[2014-08-09 17:46] [ALPM-SCRIPTLET] done.
[2014-08-09 17:46] [PACMAN] installed grub (1:2.02.beta2-4)
[2014-08-09 17:46] [PACMAN] installed efivar (0.10-1)
[2014-08-09 17:46] [PACMAN] installed efibootmgr (0.7.0-1)
[2014-08-09 17:59] [PACMAN] Running 'pacman -S grub'
[2014-08-09 18:43] [PACMAN] Running 'pacman -Syy'
[2014-08-09 18:43] [PACMAN] synchronizing package lists
[2014-08-09 18:43] [PACMAN] Running 'pacman -Syu'
[2014-08-09 18:43] [PACMAN] synchronizing package lists
[2014-08-09 18:43] [PACMAN] starting full system upgrade
[2014-08-09 18:43] [PACMAN] upgraded netctl (1.8-1 -> 1.9-1)
[2014-08-10 10:02] [PACMAN] Running 'pacman -S kernel-lts'
[2014-08-10 10:03] [PACMAN] Running 'pacman -S linux-lts'
[2014-08-10 10:04] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2014-08-10 10:04] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Starting build: 3.14.15-1-lts
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [encrypt]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [lvm2]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [shutdown]
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Starting build: 3.14.15-1-lts
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [encrypt]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [lvm2]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2014-08-10 10:04] [ALPM-SCRIPTLET] -> Running build hook: [shutdown]
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
[2014-08-10 10:04] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-08-10 10:04] [PACMAN] installed linux-lts (3.14.15-1)
[2014-08-10 10:34] [PACMAN] Running 'pacman -Rs linux'
[2014-08-10 10:34] [PACMAN] removed linux (3.15.8-1)
[2014-08-10 10:34] [PACMAN] Running 'pacman -S linux'
[2014-08-10 10:34] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2014-08-10 10:34] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Starting build: 3.15.8-1-ARCH
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [encrypt]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [lvm2]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [shutdown]
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Starting build: 3.15.8-1-ARCH
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [encrypt]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [lvm2]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2014-08-10 10:34] [ALPM-SCRIPTLET] -> Running build hook: [shutdown]
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2014-08-10 10:34] [ALPM-SCRIPTLET] ==> Image generation successful
[2014-08-10 10:34] [PACMAN] installed linux (3.15.8-1)
[2014-08-10 10:36] [PACMAN] Running 'pacman -S linux-headers'
[2014-08-10 10:36] [PACMAN] installed linux-headers (3.15.8-1)
[2014-08-10 11:57] [PACMAN] Running 'pacman -S locate'
[2014-08-10 11:57] [PACMAN] Running 'pacman -S mlocate'
[2014-08-10 11:57] [PACMAN] installed mlocate (0.26-3)
And i've deleted and reinstalled linux, regenerated mkinitcpio -p linux, not worked.
Any other suggestions?
Last edited by berat (2014-08-11 19:30:53)
Offline
I don't see a cryptdevice kernel parameter anywhere in your grub config.
https://wiki.archlinux.org/index.php/Dm … oot_loader
Last edited by Slithery (2014-08-10 11:04:23)
Offline
I don't see a cryptdevice kernel parameter anywhere in your grub config.
thanks, you're right. But i'm not sure actually how should i do it. From the link you posted, it says:
device is the path to the raw encrypted device. Usage of Persistent block device naming is advisable.
If the encrypted device contains a LVM, the name of the volume group (vgname) containing the logical volume of the root partition serves as dmname. The parameter then takes the form of cryptdevice=device:vgname.
So, for example right now, it shows /dev/sda3 as the crypted lvm partition. When it it decrypted it will be:
/dev/mapper/vg-root and /dev/mapper/vg-home
Should i do something like;
(as blkid /dev/sda3 gives me UUID of sda3)
cryptdevice=UUIDof"/dev/sda3":vg-root
or it should be
cryptdevice=UUIDof"/dev/mapper/vg-root":vg-root
or something else?
On the other hand, I've backuped my grub.cfg file from the previous installation(which was working) and i see those 3 lines which are not presented in new grub.cfg:
insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha512 lvm
I added these line to my new grub.cfg, i didn't work.
insmod ext2.
i realized that in my new grub.cfg all menu entires have "insmod fat", isn't it strange? these partitions are formatted as ext4. should i change it?
set root='lvmid/someUUIDotherthanRoot'
and i don't know if i should add a line like that? what it is for?
Offline
While using UUIDs is good practice on multi-disk/multi-partition setups, using encrypted LVM changes things. First, it's important to note that a logical volume, LUKS container and the underlying filesystem will all have their own UUIDs. That complicates things. Second, the lvm2 hook for mkinitcpio actually scans for volume groups and volumes and makes them available to the system under /dev/<volume_group_name> during boot-up. Logical volume names are unique, so using those device names in /etc/fstab and your GRUB config is both acceptable and simpler than using UUIDs.
So my volume group is called "Arch," and my two logical volumes are called "root" and "home." /etc/fstab looks like this:
# UUID=ef7ea498-e1a3-442c-b435-f330b7ebddfb LABEL=root
/dev/mapper/root / ext4 rw,relatime,data=ordered 0 1
# UUID=bb1ac6f0-58fc-411a-aef7-8a4dc18e5c38 LABEL=home
/dev/mapper/home /home ext4 rw,relatime,data=ordered 0 2
# UUID=eafcf9e2-6c04-4361-8a48-50a6a2d7c1c0 LABEL=boot
/dev/sda1 /boot ext2 rw,relatime 0 2
And my kernel line is this:
root=/dev/mapper/root cryptdevice=/dev/Arch/root:root:allow-discards rw quiet
So my root volume will be found during boot under /dev/Arch/root, unlocked, and mounted to /dev/mapper/root. Since you're using a volume group inside a LUKS container, that should be all you need, so consider booting up the LiveCD again, mounting your volumes and running genfstab without using UUIDs. Then change the kernel line in your GRUB config to match.
NOTE: The "allow-discards" bit is only used with SSDs, and might not even be necessary anymore (I'm not totally clear on that). Also, your fstab file won't exactly resemble mine, since /dev/mapper/home on my system is a second encrypted volume spanning two disks.
Offline
While using UUIDs is good practice on multi-disk/multi-partition setups, using encrypted LVM changes things. First, it's important to note that a logical volume, LUKS container and the underlying filesystem will all have their own UUIDs. That complicates things. Second, the lvm2 hook for mkinitcpio actually scans for volume groups and volumes and makes them available to the system under /dev/<volume_group_name> during boot-up. Logical volume names are unique, so using those device names in /etc/fstab and your GRUB config is both acceptable and simpler than using UUIDs.
Thanks a lot. It was also a useful answer. But infact i've solved the problem by reading this post yesterday. Solution is the last message of emak and it's enough just doing:
# vi /etc/default grub #modifing following line: GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:vgroup"
# mkinitcpio -p linux
# grub-mkconfig -o /boot/EFI/grub/grub.cfg
It works now, only problem(not really a problem but) is, after password to decrypt the disk, it takes about 10 seconds to continue the process to arrive login manager, which seems to me quite long. Before the problems which led me to reinstall arch, it was taking less time. What can cause that?
Offline
It works now, only problem(not really a problem but) is, after password to decrypt the disk, it takes about 10 seconds to continue the process to arrive login manager, which seems to me quite long. Before the problems which led me to reinstall arch, it was taking less time. What can cause that?
It could just be the fact that all the files needed to boot now have to be decrypted first.
What sort of CPU do you have, does it have a hardware encryption module?
What encryption cipher are you using for your LUKS device?
The answers to these questions will affect the performance of your setup.
Offline