I installed Debian 12 over 11 today. I have been using two disks where LUKS and LVM were configured, making it work as a single disk. I tried to reuse them, but the installation failed at boot. So I did a fresh install encrypting both disks and creating an LV to use both disks as a single one. The boot fails again throwing a few lines, one of which is:
I reinstalled Debian 12 again, but on one disk using the default "Guided - use entire disk and set up encrypted LVM" option. I chose to have separate root and home partition on the disk. The boot was successful. I then followed this tutorial to encrypt the second disk and add it to the existing home partition. The size of the home partition increased and I could use it too.
However, even after updating initramfs and updating the /etc/crypttab file, the boot fails throwing the same error. This time, however, I luksOpened the second encrypted drive using the cryptsetup included with BusyBee. It now boots to the Debian I installed. The set up currently is that I have to manually unlock/open the second drive using crypttab in the busybee/initramfs shell every time I boot in.
Note that sda was recognised as sdc during the installation: hence sdc5_crypt.
Would love to hear what I am doing wrong?
Code:
ALERT! /dev/mapper/x230--vg-root does not exist. Dropping to a shell!
However, even after updating initramfs and updating the /etc/crypttab file, the boot fails throwing the same error. This time, however, I luksOpened the second encrypted drive using the cryptsetup included with BusyBee. It now boots to the Debian I installed. The set up currently is that I have to manually unlock/open the second drive using crypttab in the busybee/initramfs shell every time I boot in.
Code:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTSsda 8:0 0 119.2G 0 disk ├─sda1 8:1 0 487M 0 part /boot├─sda2 8:2 0 1K 0 part └─sda5 8:5 0 118.8G 0 part └─sdc5_crypt 254:0 0 118.7G 0 crypt ├─X230--vg-root 254:1 0 27.9G 0 lvm / ├─X230--vg-swap_1 254:2 0 976M 0 lvm [SWAP] └─X230--vg-home 254:4 0 328.3G 0 lvm /homesdb 8:16 0 238.5G 0 disk └─sdb_crypt 254:3 0 238.5G 0 crypt └─X230--vg-home 254:4 0 328.3G 0 lvm /home
Code:
/dev/mapper/X230--vg-root: UUID="b7ca30ef-12ee-4b90-a2e9-7569e96f29b0" BLOCK_SIZE="4096" TYPE="ext4"/dev/sdb: UUID="766b740c-4676-4055-bd9e-85a16ef2cfe1" TYPE="crypto_LUKS"/dev/mapper/X230--vg-home: UUID="27b2b33a-dd5f-4da3-9a88-ec91d25b5e0a" BLOCK_SIZE="4096" TYPE="ext4"/dev/mapper/X230--vg-swap_1: UUID="d00e6e72-bcaa-4d3d-9043-ca6a49c6ca9a" TYPE="swap"/dev/mapper/sdc5_crypt: UUID="r8Zcg8-2Qh0-duAC-wEjC-GeLn-tgyt-asQcql" TYPE="LVM2_member"/dev/sda5: UUID="d3b40617-5cee-40b5-8498-d508c2f366f0" TYPE="crypto_LUKS" PARTUUID="f1ee17c0-05"/dev/sda1: UUID="13fb51f6-bddf-471d-9669-7c4eca464a5b" BLOCK_SIZE="1024" TYPE="ext2" PARTUUID="f1ee17c0-01"/dev/mapper/sdb_crypt: UUID="dmL37J-r9vo-SHiW-RsXL-uVcc-I2jB-LsGR0Z" TYPE="LVM2_member"
Code:
sdc5_crypt UUID=d3b40617-5cee-40b5-8498-d508c2f366f0 none luks,discardsdb_crypt UUID=766b740c-4676-4055-bd9e-85a16ef2cfe1 none luks,discard
Statistics: Posted by debber — 2024-06-19 18:06 — Replies 2 — Views 62