Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

[Software] dual-boot LUKs grub hell

$
0
0
see error screen here:
https://ibb.co/PFP47vL
https://ibb.co/16sqQdj
https://ibb.co/nBb8L1Y
https://ibb.co/Vvr17qQ

Updating to the latest kerne [l6.1.0-18-amd64] failed but was partly installed. It conflicted with my NVIDIA card (I think - now i've seen post about it - doh!). I was able to restart into the older kernel using restore but was still getting issues. However I think I then messed up -> I ran timemachine to an earlier date when system was fine but now I can't boot into Debian (see pics). Seems TM doesn't play nice with dual-boot setups(?) Or maybe it was a Win11 update that happened after I booted into it too?

This is my disk + partition layout

Code:

/dev/nvme1n1p1     gpt    c12a7328-f81f-11d3-ba4b-00a0c93ec93b vfat      EFI System/dev/nvme1n1p2     gpt    0fc63daf-8483-4771-8e79-3d69d8477de4 ext2      Linux filesystem/dev/nvme1n1p3     gpt    0fc63daf-8483-4771-8e79-3d69d8477de4 crypto_LU Linux filesystem/dev/nvme0n1       gpt                                                   /dev/nvme0n1p1     gpt    c12a7328-f81f-11d3-ba4b-00a0c93ec93b vfat      EFI System/dev/nvme0n1p2     gpt    e3c9e316-0b5c-4db9-817d-f92df00215ae           Microsoft reserved/dev/nvme0n1p3     gpt    ebd0a0a2-b9e5-4434-87c0-68b6b72699c7 ntfs      Microsoft basic data/dev/nvme0n1p4     gpt    de94bba4-06d1-4d41-a16a-bfd50179d6ac ntfs      Windows recovery environment/dev/nvme0n1p5     gpt    0fc63daf-8483-4771-8e79-3d69d8477de4 crypto_LU Linux filesystem

I tried this using a ubuntu live usb via chroot

Code:

sudo cryptsetup luksOpen /dev/nvme1n1p3 debian12sudo mkdir /mnt/debian12sudo mount /dev/mapper/debian12 /mnt/debian12sudo vgchange -aysudo lvdisplaysudo mount /dev/d12xps-vg/root /mnt/debian12sudo mount /dev/nvme1n1p2 /mnt/debian12/sudo mkdir -p /mnt/debian12/bootsudo mkdir /mnt/debian12/boot/efisudo mount /dev/nvme1n1p1 /mnt/debian12/boot/efisudo mount --bind /dev /mnt/debian12/devsudo mount --bind /proc /mnt/debian12/procsudo mount --bind /sys /mnt/debian12/syssudo mkdir -p /mnt/debian12/dev/ptssudo mount -t devpts devpts /mnt/debian12/dev/ptssudo chroot /mnt/debian12dpkg --list | grep linux-imagesudo apt install initramfs-toolssudo mkinitramfs -o /boot/initrd.img-6.1.0-17-amd64 6.1.0-17-amd64sudo apt install os-probersudo nano /etc/default/grub#check that: GRUB_DISABLE_OS_PROBER=false#check that: GRUB_CMDLINE_LINUX="cryptdevice=UUID=0fc63daf-8483-4771-8e79-3d69d8477de4:nvme1n1p3_crypt"sudo update-grubsudo umount /mnt/debian12/dev/ptssudo umount /mnt/debian12/devsudo umount /mnt/debian12/procsudo umount /mnt/debian12/syssudo umount /mnt/debian12exit

But nothing changed. I can boot into windows11 fine, but when I select debian 6.1.0-17-amd64 [or safe mode] it never leads to the LUKS prompt. My data is backed up fine apart from program configurations. Didn't want to admit defeat but need this system running again before end of weekend.

Not sure what else to try or where i'm going wrong :roll:

Statistics: Posted by Vieno — 2024-02-16 15:22 — Replies 2 — Views 135



Viewing all articles
Browse latest Browse all 3474

Trending Articles