Hallo zusammen!
Ich habe diesen Thread ueber Google gefunden, da ich von dem Problem ebenfalls betroffen bin.
Ich habe den geposteten Loesungsvorschlag (etwas abgewandelt) angewandt, jedoch besteht das Problem nach wie vor. Mit "etwas angewandt" meine ich, dass ich die geposteten Schritte nicht von einer LiveCD aus ausgefuehrt habe, sondern aus der betroffenen Debian-Installation selbst. Nach vielen vielen "lvm is not available"-Meldungen kam ich naemlich in eine ?Busybox?-Shell, von der aus ich mit Ctrl+D den Bootvorgang fortsetzen konnte. Debian startete dann, allerdings ohne swap. Swap in crypttab und fstab auskommentiert und reboot welcher dann unauffaellig verlief.
Nach dem Neustart habe ich anschlieszend folgende Schritte in geposteter Reihe ausgefuehrt:
(Entschuldigt meine seltsamen Umlaute, aber ich habe keine deutsche Tastatur gerade.)
Code: Alles auswählen
manuel@manuelthinkpad:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 238,5G 0 disk
├─sda1 8:1 0 260M 0 part /boot/efi
├─sda2 8:2 0 16M 0 part
├─sda3 8:3 0 59,6G 0 part
├─sda4 8:4 0 1000M 0 part
├─sda5 8:5 0 953M 0 part /boot
├─sda6 8:6 0 7,9G 0 part
├─sda7 8:7 0 18,6G 0 part
│ └─sda7_crypt 254:0 0 18,6G 0 crypt /
└─sda8 8:8 0 150,2G 0 part
└─sda8_crypt 254:1 0 150,2G 0 crypt /home
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha512 -y /dev/sda6
[sudo] password for manuel:
WARNING!
========
This will overwrite data on /dev/sda6 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo cryptsetup luksOpen /dev/sda6 sda6_crypt
Enter passphrase for /dev/sda6:
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo mkswap /dev/mapper/sda6_crypt
Setting up swapspace version 1, size = 7,9 GiB (8497655808 bytes)
no label, UUID=0f1ef890-a6fc-4c46-9ae1-8bddf8078495
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo swapon /dev/mapper/sda6_crypt
Hier habe ich dann die oberste Zeile der crypttab ent-auskommentiert und die UUID angepasst. Endprodukt:
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo cat /etc/crypttab
sda6_crypt UUID=0f1ef890-a6fc-4c46-9ae1-8bddf8078495 none luks,swap
sda7_crypt UUID=0c1cb6b9-c62b-46e2-95b8-0a89ffbfc6d0 none luks
sda8_crypt UUID=d70472ed-ea42-4f3b-a7a0-5bfc97dd07e0 none luks
In der fstab habe ich die unterste Zeile ent-auskommentiert:
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/sda7_crypt / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda5 during installation
UUID=85f70d48-b916-46fa-a679-278a82985daf /boot ext4 defaults 0 2
# /boot/efi was on /dev/sda1 during installation
UUID=0091-28C0 /boot/efi vfat umask=0077 0 1
/dev/mapper/sda8_crypt /home ext4 defaults 0 2
/dev/mapper/sda6_crypt none swap sw 0 0
Code: Alles auswählen
manuel@manuelthinkpad:~$ dpkg -l | grep linux-image
rc linux-image-3.16.0-4-amd64 3.16.36-1+deb8u2 amd64 Linux 3.16 for 64-bit PCs
ii linux-image-4.7.0-1-amd64 4.7.8-1 amd64 Linux 4.7 for 64-bit PCs (signed)
ii linux-image-4.9.0-1-amd64 4.9.6-3 amd64 Linux 4.9 for 64-bit PCs (signed)
ii linux-image-amd64 4.9+78 amd64 Linux for 64-bit PCs (meta-package)
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo dpkg-reconfigure linux-image-4.7.0-1-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.7.0-1-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-4.9.0-1-amd64
Found initrd image: /boot/initrd.img-4.9.0-1-amd64
Found linux image: /boot/vmlinuz-4.7.0-1-amd64
Found initrd image: /boot/initrd.img-4.7.0-1-amd64
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Ubuntu 16.10 (16.10) on /dev/sda3
Adding boot menu entry for EFI firmware configuration
done
Code: Alles auswählen
manuel@manuelthinkpad:~$ sudo dpkg-reconfigure linux-image-4.9.0-1-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-1-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: .background_cache.png
Found linux image: /boot/vmlinuz-4.9.0-1-amd64
Found initrd image: /boot/initrd.img-4.9.0-1-amd64
Found linux image: /boot/vmlinuz-4.7.0-1-amd64
Found initrd image: /boot/initrd.img-4.7.0-1-amd64
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Ubuntu 16.10 (16.10) on /dev/sda3
Adding boot menu entry for EFI firmware configuration
done
Meinem Verstaendnis nach haetten diese Schritte das Problem beheben muessen. Dass das nicht der Fall war, zeigt, dass ich irgendwas noch nicht ganz durchblickt habe. Koennt ihr mir weiterhelfen? Swap benoetige ich nicht unbedingt, ich koennte (und tue einstweilen auch) swap einfach abschalten. Ich moechte aber trotzdem verstehen, weshalb die von mir geposteten Schritte nicht zum Erfolg gefuehrt haben. Einfach, um zu lernen. Ich musste beruflich auf GNU/Linux umsteigen, habe allerdings Gefallen daran gefunden und moechte auch die Hintergruende verstehen, anstatt einfach nur blind Befehle abzutippseln.
Danke!
LG Manuel