• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Grub findet Gerät über ID nicht, bei verschlüsseltem SoftRAID-System

Hallo in die Runde,
ich hatte bisher openSUSE Leap 42.1 64Bit installiert und wollte nun Leap 42.2 installieren.
42.1 konnte ich problemlos starten und die Installation auf 42.2 verlief ebenfalls reibungslos.
Wenn ich nun jedoch 42.2 starten möchte meldet Grub
Fehler: no such device: [Geräte-ID]
(siehe Bild1)
Anschließend erscheint Fehlermeldung von Bild2.
Die Partitionierung sieht man bei Bild3 und wurde von der 42.1-Installation einfach importiert/übernommen.

Warum hat 42.2 nun hierbei Probleme und wie kann ich diese am besten beheben?
Vielen Dank für eure Hilfe!

Bild1:

Bild2:

Bild3:
 
Kannst mit der Installation-DVD das System starten?
In der Fehlermeldung steht:
Code:
systemd-cryptsetup@luks.service
kann nicht gestartet werden.
 
A

Anonymous

Gast
Für mich sind die Bilder leider unlesbar. Haben wir es mit einem verschlüsselten /home zu tun?

Gesendet von meinem SM-T530

 
@Heinz-Peter
Ich habe die DVD gestartet, bin dort auf "Mehr" gegangen und habe dort "Linux-System booten" ausgewählt (ich vermute das war es, was du meintest).
Allerdings meldet er dann:
No bootable system found.

@Alera
Ich habe zwei Festplatten im SoftRAID gespiegelt. Darauf gibt es drei Partitionen. Für uns wichtig sind einmal die boot-Partition, welche unverschlüsselt ist, und die "Systempartition", welche verschlüsselt ist und über Logical Volumes root, home, swap sowie tmp beinhaltet
p.s.: Du kannst auf die Bilder klicken, dann siehst du sie größer.
 
A

Anonymous

Gast
Ich hab auf die Bilder geklickt. Dennoch alles unleserlich verpixelt. Wie auch immer, es wird wohl mit deiner verschlüsselten Systempartition zu tun haben.

Gesendet von meinem SM-G900F

 

gehrke

Administrator
Teammitglied
Vielleicht sehen wir mehr, wenn Du den Inhalt der folgenden Dateien postest (bitte in Code-Tags):
Code:
/boot/grub2/grub.cfg
/etc/crypttab
/etc/fstab
sowie den Output von:
Code:
fdisk -l
lsblk -o NAME,MAJ:MIN,RM,SIZE,RO,TYPE,UUID,MOUNTPOINT
 
Ich habe die Systemrescuedisk geladen und dort boot sowie root in /mount eingebunden.
Hier die entsprechenden Ausgaben:

less /mount/boot/grub2/grub.cfg
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi

if [ "${env_block}" ] ; then
  load_env -f "${env_block}"
fi

if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   if [ "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   fi
   set boot_once=true
else
   set default="${saved_entry}"
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=de_DE
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/26f185dc5961b09147863a18567b54d1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='mduuid/26f185dc5961b09147863a18567b54d1'  5115d7f7-9584-4543-a6ae-11513d104ee7
else
  search --no-floppy --fs-uuid --set=root 5115d7f7-9584-4543-a6ae-11513d104ee7
fi
insmod gfxmenu
loadfont ($root)/grub2/themes/openSUSE/ascii.pf2
loadfont ($root)/grub2/themes/openSUSE/DejaVuSans10.pf2
loadfont ($root)/grub2/themes/openSUSE/DejaVuSans12.pf2
loadfont ($root)/grub2/themes/openSUSE/DejaVuSans-Bold14.pf2
insmod png
set theme=($root)/grub2/themes/openSUSE/theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
  set timeout=0
elif [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=8
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=8
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/00_tuned ###
set tuned_params=""
### END /etc/grub.d/00_tuned ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE Leap 42.2'  --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-1294fa3d-5233-45bb-a9bf-a024860c82bd' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod part_msdos
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/26f185dc5961b09147863a18567b54d1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/26f185dc5961b09147863a18567b54d1'  5115d7f7-9584-4543-a6ae-11513d104ee7
	else
	  search --no-floppy --fs-uuid --set=root 5115d7f7-9584-4543-a6ae-11513d104ee7
	fi
	echo	'Linux 4.4.27-2-default wird geladen …'
	linux	/vmlinuz-4.4.27-2-default root=/dev/mapper/DiePlatte-root  resume=/dev/DiePlatte/swap splash=silent quiet showopts
	echo	'Initiale Ramdisk wird geladen …'
	initrd	/initrd-4.4.27-2-default
}
submenu 'Erweiterte Optionen für openSUSE Leap 42.2' --hotkey=1 $menuentry_id_option 'gnulinux-advanced-1294fa3d-5233-45bb-a9bf-a024860c82bd' {
	menuentry 'openSUSE Leap 42.2, mit Linux 4.4.27-2-default' --hotkey=2 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.27-2-default-advanced-1294fa3d-5233-45bb-a9bf-a024860c82bd' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod part_msdos
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/26f185dc5961b09147863a18567b54d1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/26f185dc5961b09147863a18567b54d1'  5115d7f7-9584-4543-a6ae-11513d104ee7
		else
		  search --no-floppy --fs-uuid --set=root 5115d7f7-9584-4543-a6ae-11513d104ee7
		fi
		echo	'Linux 4.4.27-2-default wird geladen …'
		linux	/vmlinuz-4.4.27-2-default root=/dev/mapper/DiePlatte-root  resume=/dev/DiePlatte/swap splash=silent quiet showopts
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/initrd-4.4.27-2-default
	}
	menuentry 'openSUSE Leap 42.2, mit Linux 4.4.27-2-default (Wiederherstellungsmodus)' --hotkey=3 --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.27-2-default-recovery-1294fa3d-5233-45bb-a9bf-a024860c82bd' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_msdos
		insmod part_msdos
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/26f185dc5961b09147863a18567b54d1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/26f185dc5961b09147863a18567b54d1'  5115d7f7-9584-4543-a6ae-11513d104ee7
		else
		  search --no-floppy --fs-uuid --set=root 5115d7f7-9584-4543-a6ae-11513d104ee7
		fi
		echo	'Linux 4.4.27-2-default wird geladen …'
		linux	/vmlinuz-4.4.27-2-default root=/dev/mapper/DiePlatte-root  
		echo	'Initiale Ramdisk wird geladen …'
		initrd	/initrd-4.4.27-2-default
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### 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/80_suse_btrfs_snapshot ###
### END /etc/grub.d/80_suse_btrfs_snapshot ###

### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###

### BEGIN /etc/grub.d/95_textmode ###
### END /etc/grub.d/95_textmode ###

Diese Ausgabe sieht für mich jedoch eher nach einer Quellcode-Datei, als nach einer Konfigurationsdatei aus. Aber die richtige Datei habe ich mit less ausgelesen:


less /mount/etc/crypttab
Code:
/mount/etc/crypttab: No such file or directory

Dass diese Datei fehlt verwundert mich etwas. Ein ls /mount/etc/ ergab folgendes:
Code:
adjtime
aliases
aliases.d
alsa-pulse.conf
alternatives
apparmor
apparmor.d
asound-pulse.conf
at.deny
audisp
audit
autofs_ldap_auth.conf
auto.master
auto.master.d
auto.misc
auto.net
auto.smb
avahi
bash.bashrc
bash_command_not_found
bash_completion.d
bind.keys
bindresvport.blacklist
binfmt.d
blkid.conf
bootsplash
ca-certificates
cifs-utils
ConsoleKit
cron.d
cron.daily
cron.deny
cron.hourly
cron.monthly
crontab
cron.weekly
csh.cshrc
csh.login
cups
cupshelpers
dbus-1
dconf
default
defaultdomain
depmod.d
dhclient6.conf
dhclient.conf
dialogrc
DIR_COLORS
dnsmasq.conf
dnsmasq.d
dracut.conf
dracut.conf.d
drirc
enscript.cfg
environment
esd.conf
ethers
exports
filesystems
fonts
fstab
ftpusers
gai.conf
gconf
gdbinit
gdbinit.d
gemrc
gimp
gnome_defaults.conf
gnupg
gpm
group
group-
grub.d
gshadow
gtk-2.0
gtk-3.0
host.conf
hostname
HOSTNAME
hosts
hosts.allow
hosts.deny
hosts.equiv
hosts.lpd
hp
htdig
hushlogins
icewm
idmapd.conf
idnalias.conf
idn.conf
ifplugd
ImageMagick-6_Q16-1
init.d
inputrc
insserv.conf
iproute2
iscsi
iscsid.conf
issue
issue.net
java
joe
jvm
jvm-commmon
kde4
kde4rc
krb5.conf
ksh.kshrc
ksysguarddrc
ld.so.cache
ld.so.conf
ld.so.conf.d
lesskey
lesskey.bin
libao.conf
libaudit.conf
libnl
localtime
login.defs
logrotate.conf
logrotate.d
lvm
machine-id
magic
mail.rc
manpath.config
maven
mcelog
mdadm.conf
mime.types
mke2fs.conf
modprobe.d
modules-load.d
motd
mtab
mtools.conf
my.cnf
my.cnf.d
mysqlaccess.conf
named.d
netconfig
netconfig.d
netgroup
NetworkManager
networks
news
nfsmount.conf
nscd.conf
nsswitch.conf
nsswitch.confbak
ntp.conf
ntp.keys
omc
openal
openldap
openvpn
opt
os-release
PackageKit
pam.d
passwd
passwd-
passwd.YaST2save
permissions
permissions.d
permissions.easy
permissions.local
permissions.paranoid
permissions.secure
pkcs11
pki
plymouth
polkit-1
polkit-default-privs.local
polkit-default-privs.restrictive
polkit-default-privs.standard
postfix
ppp
pptp.d
products.d
profile
profile.d
protocols
pulse
purple
python3start
pythonstart
raw
rc.d
rc.splash
rc.status
request-key.conf
request-key.d
resolv.conf
rmt
rpc
rpm
rsyncd.conf
rsyncd.secrets
samba
sane.d
sasl2
screenrc
sddm.conf
securetty
security
selinux
sensors3.conf
sensors.d
services
settings
shadow
shadow-
shadow.YaST2save
shells
signond.conf
signon-ui
silc
skel
slp.conf
slp.reg.d
slp.spi
smartd.conf
smart_drivedb.h
smartd_warning.sh
snapper
ssh
ssl
sudoers
sudoers.d
SUSE-brand
susehelp.d
SuSE-release
sysconfig
sysctl.conf
sysctl.d
systemd
termcap
tmpdirs.d
tmpfiles.d
ttytype
tuned
udev
uefi
UPower
usb_modeswitch.conf
uucp
vconsole.conf
vdpau_wrapper.cfg
vimrc
vnc
vpnc
wgetrc
wicked
wpa_supplicant
X11
xattr.conf
xdg
xinetd.conf
xinetd.d
YaST2
yp.conf
zprofile
zsh_command_not_found
zsh_completion.d
zshenv
zshrc
zypp

less /mount/etc/fstab
Code:
/dev/DiePlatte/swap  swap                 swap       defaults              0 0
/dev/DiePlatte/root  /                    ext4       acl,user_xattr        1 1
UUID=d03f4b82-a1dd-4c65-9811-eeadaaed05a2 /boot                ext4       acl,user_xattr        1 2
/dev/DiePlatte/home  /home                ext4       acl,user_xattr        1 2
/dev/DiePlatte/tmp   /tmp                 ext4       acl,user_xattr        1 2


fdisk -l
Code:
Disk /dev/loop0: 338.4 MiB, 354783232 bytes, 692936 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/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
Disk identifier: 0x00018a8a

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sda1  *          2048    1220607    1218560  595M fd Linux raid autodetect
/dev/sda2          1220608 1259511807 1258291200  600G fd Linux raid autodetect
/dev/sda3       1259511808 3900919807 2641408000  1.2T fd Linux raid autodetect


Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
Disk identifier: 0x00018a8a

Device     Boot      Start        End    Sectors  Size Id Type
/dev/sdb1  *          2048    1220607    1218560  595M fd Linux raid autodetect
/dev/sdb2          1220608 1259511807 1258291200  600G fd Linux raid autodetect
/dev/sdb3       1259511808 3900919807 2641408000  1.2T fd Linux raid autodetect


Disk /dev/md127: 595 MiB, 623837184 bytes, 1218432 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/md126: 600 GiB, 644244897792 bytes, 1258290816 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/md125: 1.2 TiB, 1352400699392 bytes, 2641407616 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/LinuxSystem: 600 GiB, 644242800640 bytes, 1258286720 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/DiePlatte-home: 460 GiB, 493917044736 bytes, 964681728 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/DiePlatte-root: 120 GiB, 128849018880 bytes, 251658240 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/DiePlatte-swap: 4 GiB, 4294967296 bytes, 8388608 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/DiePlatte-tmp: 16 GiB, 17179869184 bytes, 33554432 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

lsblk -o NAME,MAJ:MIN,RM,SIZE,RO,TYPE,UUID,MOUNTPOINT
Code:
NAME                   MAJ:MIN RM   SIZE RO TYPE  UUID                                   MOUNTPOINT
sda                      8:0    0   1.8T  0 disk                                         
├─sda1                   8:1    0   595M  0 part  26f185dc-5961-b091-4786-3a18567b54d1   
│ └─md127                9:127  0   595M  0 raid1 d03f4b82-a1dd-4c65-9811-eeadaaed05a2   /mount/boot
├─sda2                   8:2    0   600G  0 part  4f20a2fb-72a7-2e4f-8573-c09b1928324e   
│ └─md126                9:126  0   600G  0 raid1 46ad218c-e0dc-4b02-bab5-3d0e01b15018   
│   └─LinuxSystem      253:0    0   600G  0 crypt Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP 
│     ├─DiePlatte-home 253:1    0   460G  0 lvm   c95f61c0-c1c5-4e45-8422-1a9c222e96da   
│     ├─DiePlatte-root 253:2    0   120G  0 lvm   1294fa3d-5233-45bb-a9bf-a024860c82bd   /mount
│     ├─DiePlatte-swap 253:3    0     4G  0 lvm   a2cc9175-91f1-4d01-afd6-107623dc4d76   
│     └─DiePlatte-tmp  253:4    0    16G  0 lvm   194e0f13-f33c-4a26-8ac0-6cddfdab0bb4   
└─sda3                   8:3    0   1.2T  0 part  3c4747a1-7696-16ca-2c6d-7f71d9c6d66c   
  └─md125                9:125  0   1.2T  0 raid1                                        
sdb                      8:16   0   1.8T  0 disk                                         
├─sdb1                   8:17   0   595M  0 part  26f185dc-5961-b091-4786-3a18567b54d1   
│ └─md127                9:127  0   595M  0 raid1 d03f4b82-a1dd-4c65-9811-eeadaaed05a2   /mount/boot
├─sdb2                   8:18   0   600G  0 part  4f20a2fb-72a7-2e4f-8573-c09b1928324e   
│ └─md126                9:126  0   600G  0 raid1 46ad218c-e0dc-4b02-bab5-3d0e01b15018   
│   └─LinuxSystem      253:0    0   600G  0 crypt Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP 
│     ├─DiePlatte-home 253:1    0   460G  0 lvm   c95f61c0-c1c5-4e45-8422-1a9c222e96da   
│     ├─DiePlatte-root 253:2    0   120G  0 lvm   1294fa3d-5233-45bb-a9bf-a024860c82bd   /mount
│     ├─DiePlatte-swap 253:3    0     4G  0 lvm   a2cc9175-91f1-4d01-afd6-107623dc4d76   
│     └─DiePlatte-tmp  253:4    0    16G  0 lvm   194e0f13-f33c-4a26-8ac0-6cddfdab0bb4   
└─sdb3                   8:19   0   1.2T  0 part  3c4747a1-7696-16ca-2c6d-7f71d9c6d66c   
  └─md125                9:125  0   1.2T  0 raid1                                        
sr0                     11:0    1 460.9M  0 rom   2016-08-12-17-03-34-00                 /livemnt/boot
loop0                    7:0    0 338.4M  1 loop                                         /livemnt/squashfs
 

gehrke

Administrator
Teammitglied
Die Fehlermeldung lautet:
Code:
Fehler: no such device: 5115d7f7-9584-4543-a6ae-11513d104ee7
Diese ID kann ich in deiner grub.cfg nur an dieser Stelle finden:
Code:
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/26f185dc5961b09147863a18567b54d1'  5115d7f7-9584-4543-a6ae-11513d104ee7
	else
	  search --no-floppy --fs-uuid --set=root 5115d7f7-9584-4543-a6ae-11513d104ee7
Ich habe hier eine durchaus vergleichbare Partitionierung mit mdadm, LVM und LUKS, allerdings unter CentOS und mit auf USB-Stick ausgelagerten /boot-Partitionen (ohne RAID). Dort sieht der entsprechende Abschnitt wie folgt aus:
Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'CentOS Linux (3.10.0-514.10.2.el7.x86_64) 7 (Core)' --class
centos --class gnu-linux --class gnu --class os --unrestricted
$menuentry_id_option
'gnulinux-3.10.0-327.el7.x86_64-advanced-a0acabd4-d011-4f86-ab92-408af4dfb935'
{
        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
cd1e069e-4873-43d7-a50f-ee8c9c9a3450
        else
          search --no-floppy --fs-uuid --set=root
cd1e069e-4873-43d7-a50f-ee8c9c9a3450
        fi
        linuxefi /vmlinuz-3.10.0-514.10.2.el7.x86_64
root=/dev/mapper/system-os1 ro
rd.luks.uuid=luks-878f29ba-543c-410b-9975-41711fe48a86
rd.md.uuid=e492685c:7f0e4d06:0e5f5ac1:fb071179 rd.lvm.lv=system/os1
rd.lvm.lv=system/swap rhgb quiet LANG=de_DE.UTF-8
        initrdefi /initramfs-3.10.0-514.10.2.el7.x86_64.img
}
Die entsprechende Partitionierung:
Code:
$ lsblk -o NAME,MAJ:MIN,RM,SIZE,RO,TYPE,UUID,MOUNTPOINT
NAME                                            MAJ:MIN RM   SIZE RO TYPE  UUID                                   MOUNTPOINT
sda                                               8:0    0 465,8G  0 disk                                         
└─sda3                                            8:3    0 465,2G  0 part  e492685c-7f0e-4d06-0e5f-5ac1fb071179   
  └─md127                                         9:127  0   465G  0 raid1 878f29ba-543c-410b-9975-41711fe48a86   
    └─luks-878f29ba-543c-410b-9975-41711fe48a86 253:0    0   465G  0 crypt q8N2cA-k3y9-Bn4b-hXU5-iFIy-yaA0-5Tevme 
      ├─system-os1                              253:1    0    15G  0 lvm   a0acabd4-d011-4f86-ab92-408af4dfb935   /
      ├─system-swap                             253:2    0    16G  0 lvm   7c7eb66b-6f73-472e-af47-a981aa2f3958   [SWAP]
      ├─system-home                             253:3    0 294,1G  0 lvm   de2524f2-7d79-459c-8c8b-409c898f7097   /home
      └─system-backup                           253:4    0   139G  0 lvm   ed8910a4-31a4-4a0a-a753-170628ad1e86   /var/backup/primary
sdb                                               8:16   0 465,8G  0 disk                                         
└─sdb3                                            8:19   0 465,2G  0 part  e492685c-7f0e-4d06-0e5f-5ac1fb071179   
  └─md127                                         9:127  0   465G  0 raid1 878f29ba-543c-410b-9975-41711fe48a86   
    └─luks-878f29ba-543c-410b-9975-41711fe48a86 253:0    0   465G  0 crypt q8N2cA-k3y9-Bn4b-hXU5-iFIy-yaA0-5Tevme 
      ├─system-os1                              253:1    0    15G  0 lvm   a0acabd4-d011-4f86-ab92-408af4dfb935   /
      ├─system-swap                             253:2    0    16G  0 lvm   7c7eb66b-6f73-472e-af47-a981aa2f3958   [SWAP]
      ├─system-home                             253:3    0 294,1G  0 lvm   de2524f2-7d79-459c-8c8b-409c898f7097   /home
      └─system-backup                           253:4    0   139G  0 lvm   ed8910a4-31a4-4a0a-a753-170628ad1e86   /var/backup/primary
sdc                                               8:32   1  14,9G  0 disk                                         
├─sdc1                                            8:33   1   100M  0 part  1153-024A                              /boot/efi
└─sdc2                                            8:34   1   512M  0 part  cd1e069e-4873-43d7-a50f-ee8c9c9a3450   /boot
In meiner funktionierenden Konfiguration zeigt der Eintrag auf 'cd1e069e-4873-43d7-a50f-ee8c9c9a3450', wohinter sich die Boot-Partition (/dev/sdc2) verbirgt.
Im Vergleich dazu sehe ich derzeit nicht, was in Deiner Konfiguration der Eintrag '5115d7f7-9584-4543-a6ae-11513d104ee7' referenzieren soll. Ich hätte hier eher 'd03f4b82-a1dd-4c65-9811-eeadaaed05a2' erwartet.

Ich hoffe, der Vergleich hilft Dir etwas weiter. Vielleicht testet Du einfach mal was passiert, wenn Du die Konfiguration hinsichtlich der ID temporär änderst.

https://linux-club.de/wiki/opensuse/GRUB_2
 

spoensche

Moderator
Teammitglied
Wie sieht den deine
Code:
/etc/crypttab
aus? Der systemd@cryptsetup meldet einen Formatfehler in der Datei. Als fehlerhaftes Zeichen wird eine 4 angegeben.

Gleichzeitig kannst du dann UUID's vergleichen.
 

gehrke

Administrator
Teammitglied
spoensche schrieb:
Wie sieht den deine
Code:
/etc/crypttab
aus? Der systemd@cryptsetup meldet einen Formatfehler in der Datei. Als fehlerhaftes Zeichen wird eine 4 angegeben.

Schweineschwarte schrieb:
less /mount/etc/crypttab
Code:
/mount/etc/crypttab: No such file or directory

Dass diese Datei fehlt verwundert mich etwas.
Damit sind wir schon zu dritt...
 
@gehrke
Ich habe in der grub.cfg alle "5115d7f7-9584-4543-a6ae-11513d104ee7" durch "d03f4b82-a1dd-4c65-9811-eeadaaed05a2" ersetzt. Nun kommt die Grub-Fehlermeldung "Fehler: no such device: 5115d7f7-9584-4543-a6ae-11513d104ee7" nicht mehr. Doch kommt anschließend gleich die Meldung mit "systemd-cryptsetup@luks.service". :???:
Ist es ratsam, die crypttab manuell anzulegen? Wenn ja, wie müssten die ersten beiden Spalten aussehen? Ich weiß im Moment nicht, wie openSUSE das "block device" benennt.
 

gehrke

Administrator
Teammitglied
Offentsichtlich hast Du (mindestens) zwei Probleme. Eins davon scheint nun wenigstens ansatzweise gelöst.

Ich vermute, dass die fehlende crypttab das zweite Problem darstellt und würde testweise eine eigene erstellen, oder sie aus dem Backup von vor der Installation restoren.

Ich habe kein openSUSE mehr, könnte Dir aber (leider voraussichtlich erst morgen) die Datei für mein Beispielsystem (CentOS) als Muster zur Verfügung stellen. Aber vielleicht findet sich vorher noch ein netter SUSE-User, der mit dieser Datei aushelfen kann...
 
Ich habe auf meinem Notebook noch eine:
Code:
cr_ata-ST9500325AS_5VEM6A55-part2 /dev/disk/by-id/ata-ST9500325AS_5VEM6A55-part2 none       none
Allerdings weiß ich nicht wie ich die ersten beiden Spalten entsprechend anpassen muss. Ich weiß jedenfalls nicht, wo ich die Bezeichnungen für die "block devices" herbekomme. :S
Die UUIDs sind es scheinbar nicht, da ich auf meinem Notebook keine UUIDs besitze:
Code:
lsblk -o NAME,MAJ:MIN,RM,SIZE,RO,TYPE,UUID,MOUNTPOINT 
NAME                                  MAJ:MIN RM   SIZE RO TYPE  UUID MOUNTPOINT
sda                                     8:0    0 465,8G  0 disk       
├─sda1                                  8:1    0   501M  0 part       /boot
└─sda2                                  8:2    0 465,3G  0 part       
  └─cr_ata-ST9500325AS_5VEM6A55-part2 254:0    0 465,3G  0 crypt      
    ├─MeinPlatte-swap                 254:1    0     3G  0 lvm        [SWAP]
    ├─MeinPlatte-root                 254:2    0    60G  0 lvm        /
    ├─MeinPlatte-home                 254:3    0 390,3G  0 lvm        /home
    └─MeinPlatte-tmp                  254:4    0    12G  0 lvm        /tmp
sr0                                    11:0    1  1024M  0 rom
 

gehrke

Administrator
Teammitglied
Schweineschwarte schrieb:
Die UUIDs sind es scheinbar nicht, da ich auf meinem Notebook keine UUIDs besitze:
Das habe ich nicht verstanden. Was heißt, Du besitzt keine UUIDs?

Aus dem Handbuch von crypttab:
DESCRIPTION
The /etc/crypttab file describes encrypted block devices that are set up during system boot.

Empty lines and lines starting with the "#" character are ignored. Each of the remaining lines describes one encrypted
block device, fields on the line are delimited by white space. The first two fields are mandatory, the remaining two
are optional.

Setting up encrypted block devices using this file supports three encryption modes: LUKS, TrueCrypt and plain. See
cryptsetup(8) for more information about each mode. When no mode is specified in the options field and the block device
contains a LUKS signature, it is opened as a LUKS device; otherwise, it is assumed to be in raw dm-crypt (plain mode)
format.

The first field contains the name of the resulting encrypted block device; the device is set up within /dev/mapper/.

The second field contains a path to the underlying block device or file, or a specification of a block device via
"UUID=" followed by the UUID.

The third field specifies the encryption password. If the field is not present or the password is set to "none" or "-",
the password has to be manually entered during system boot. Otherwise, the field is interpreted as a absolute path to a
file containing the encryption password. For swap encryption, /dev/urandom or the hardware device /dev/hw_random can be
used as the password file; using /dev/random may prevent boot completion if the system does not have enough entropy to
generate a truly random encryption key.
Was zeigt denn (als root):
Code:
ls -l /dev/mapper/
ls -l /dev/disk/by-uuid/
blkid
?
 

gehrke

Administrator
Teammitglied
Ich würde es mal hiermit probieren:
Code:
luks-Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP UUID=Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP none
 
wegen crypttab:
Ich habe nun in /mount/etc/ eine crypttab mit
Code:
luks-Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP UUID=Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP none none
erstellt. Doch scheinbar hat es nichts verändert. Jedenfalls kommt die gleiche Fehlermeldung immer noch. :-/

UUIDs auf Notebook (nicht den Desktoprechner):
Ich habe die genannten Befehle
Code:
ls -l /dev/mapper/
ls -l /dev/disk/by-uuid/
blkid
mal eingegeben und nun spuckt er mir auch UUIDs aus. Keine Ahnung warum sie am 27. März nicht ausgegeben wurden :???:
 

gehrke

Administrator
Teammitglied
Schweineschwarte schrieb:
wegen crypttab:
Ich habe nun in /mount/etc/ eine crypttab mit
Code:
luks-Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP UUID=Sqf1Mt-QInb-s5aI-eCLR-iPPC-gEJm-HNa5wP none none
erstellt. Doch scheinbar hat es nichts verändert. Jedenfalls kommt die gleiche Fehlermeldung immer noch. :-/
Dann habe ich meine Zweifel, ob mit
Code:
'No such file or directory'
tatsächlich diese Datei gemeint ist und bin für den Moment ratlos - sorry. Bei Existenz der Datei (wenn auch invalide) hätte ich zumindest eine andere Fehlermeldung erwartet.

Bei dieser konkreten Fehlermeldung hast Du schon die Suchmaschine Deines geringsten Mißtrauens befragt?
 
Oben