Hallo zusammen!
Ich bin ein wenig ratlos und bräuchte einmal eure Hilfe... Und zwar wird beim Systemstart häufig eine Notfall-Shell aufgerufen und ich
bekomme meine
LUKS von LVM Container nicht gemountet bzw. bekomme gar keinen Prompt zur Eingabe des Passworts 😮....
Da ich doch schon eine etwas betagte Installation habe, habe ich ein wenig die Befürchtung, dass die Festplatte so langsam den Geist aufgibt und es daher zu Problemen kommt. Jedoch weiß ich nicht so wirklich, wo ich diesbezüglich nachgucken soll....
Meine LVS sind die Folgenden:
lvdisplay:
➜ ~ sudo lvdisplay
[sudo] Passwort für matze:
--- Logical volume ---
LV Path /dev/main2/swap
LV Name swap
VG Name main2
LV UUID 6VApXc-yzvk-G1Yk-qtMd-Hp4Y-xtN2-s3lH7c
LV Write Access read/write
LV Creation host, time thinkpad-t410, 2018-04-05 23:32:54 +0200
LV Status available
# open 2
LV Size 4,00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
--- Logical volume ---
LV Path /dev/main2/root
LV Name root
VG Name main2
LV UUID EB2xus-e9qO-o3ZS-zJjK-xf0H-oLvE-VKFFn1
LV Write Access read/write
LV Creation host, time thinkpad-t410, 2018-04-05 23:33:31 +0200
LV Status available
# open 1
LV Size 80,00 GiB
Current LE 20480
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2
--- Logical volume ---
LV Path /dev/main2/home
LV Name home
VG Name main2
LV UUID Lun7mr-aNnP-4InY-E0hW-rR25-ddyT-eT7xND
LV Write Access read/write
LV Creation host, time thinkpad-t410, 2018-04-05 23:34:01 +0200
LV Status available
# open 1
LV Size 847,41 GiB
Current LE 216938
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:3
➜ ~
In der /etc/crypttab steht das Folgende:
➜ ~ sudo cat /etc/crypttab
[sudo] Passwort für matze:
Das hat nicht funktioniert, bitte nochmal probieren.
[sudo] Passwort für matze:
# Configuration for encrypted block devices.
# See crypttab(5) for details.
# 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
➜ ~
bzw. die /etc/mkinitcpio.conf beinhaltet das Folgende:
➜ ~ sudo 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=""
# 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 keyboard keymap encrypt lvm2 filesystems fsck shutdown"
# 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=""
➜ ~
....und zu Guter letzt sieht mein /boot/grub/grub.cfg folgendermaßen aus:
➜ ~ sudo 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
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/8deGRB-RuF6-lm1N-4VW2-Ngpt-2CaE-wGV0uW/EB2xus-e9qO-o3ZS-zJjK-xf0H-oLvE-VKFFn1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/8deGRB-RuF6-lm1N-4VW2-Ngpt-2CaE-wGV0uW/EB2xus-e9qO-o3ZS-zJjK-xf0H-oLvE-VKFFn1' 5c2f09e2-d90a-4390-b1dc-7fe6380ef644
else
search --no-floppy --fs-uuid --set=root 5c2f09e2-d90a-4390-b1dc-7fe6380ef644
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=de_DE
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-5c2f09e2-d90a-4390-b1dc-7fe6380ef644' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
else
search --no-floppy --fs-uuid --set=root 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=/dev/mapper/main2-root rw cryptdevice=/dev/disk/by-uuid/8284a58b-2668-4221-a757-fe159b2ae52e:storage cryptdevice=/dev/sdb2:main2
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-linux.img
}
menuentry 'Arch Linux Test' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5c2f09e2-d90a-4390-b1dc-7fe6380ef644' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos0'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos0 --hint-efi=hd0,msdos0 --hint-baremetal=ahci1,msdos1 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
else
search --no-floppy --fs-uuid --set=root 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=/dev/mapper/main2-root rw cryptdevice=/dev/disk/by-uuid/8284a58b-2668-4221-a757-fe159b2ae52e:storage cryptdevice=/dev/sda2:main2
echo 'Initiale Ramdisk wird geladen …'
initrd /initramfs-linux.img
}
submenu 'Erweiterte Optionen für Arch Linux' $menuentry_id_option 'gnulinux-advanced-5c2f09e2-d90a-4390-b1dc-7fe6380ef644' {
menuentry 'Arch Linux, mit Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-5c2f09e2-d90a-4390-b1dc-7fe6380ef644' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
else
search --no-floppy --fs-uuid --set=root 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=/dev/mapper/main2-root rw cryptdevice=/dev/disk/by-uuid/8284a58b-2668-4221-a757-fe159b2ae52e:storage cryptdevice=/dev/sdb2:main2
echo 'Initiale Ramdisk wird geladen …'
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-5c2f09e2-d90a-4390-b1dc-7fe6380ef644' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
else
search --no-floppy --fs-uuid --set=root 88cad0bf-e2d6-460e-87f9-0ba035ffadc8
fi
echo 'Linux linux wird geladen …'
linux /vmlinuz-linux root=/dev/mapper/main2-root rw cryptdevice=/dev/disk/by-uuid/8284a58b-2668-4221-a757-fe159b2ae52e:storage cryptdevice=/dev/sdb2:main2
echo 'Initiale Ramdisk wird geladen …'
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 ###
➜ ~
Ich hoffe, ihr habt ein paar Ideen, warum mein System 'manchmal bootet und manchmal nicht' 🙁!? Ich kann mir da leider nicht so wirklich einen Reim draus bilden.
Vielen Dank für eure Anregungen und viele Grüße,
Maze-M