Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #242341 > unrolled thread

Broken UEFI Dual boot : Debian 12 + encrypted Debian 11

Started byYvan Masson <yvan@masson-informatique.fr>
First post2021-11-23 14:10 +0100
Last post2021-11-23 17:30 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Broken UEFI Dual boot : Debian 12 + encrypted Debian 11 Yvan Masson <yvan@masson-informatique.fr> - 2021-11-23 14:10 +0100
    Re: Broken UEFI Dual boot : Debian 12 + encrypted Debian 11 Yvan Masson <yvan@masson-informatique.fr> - 2021-11-23 17:00 +0100
      Re: Broken UEFI Dual boot : Debian 12 + encrypted Debian 11 David Wright <deblis@lionunicorn.co.uk> - 2021-11-23 17:30 +0100

#242341 — Broken UEFI Dual boot : Debian 12 + encrypted Debian 11

FromYvan Masson <yvan@masson-informatique.fr>
Date2021-11-23 14:10 +0100
SubjectBroken UEFI Dual boot : Debian 12 + encrypted Debian 11
Message-ID<DmDIB-4zb-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi list,

I have a laptop with two drive, historically installed with an encrypted 
Debian 11 booting in UEFI mode (done with Debian Installer).

I just installed Debian 12 without encryption in a small partition. 
Unfortunately, I can not boot Debian 11 anymore, grub-efi only shows the 
Debian 12 install.

Any help to make both install boot would greatly appreciated. Being able 
to boot Debian 11 only would also be great if the dual boot is not possible.

Below is a reworked `lsblk` output:

sda
|-sda1 -> a data partition
|-sda2 -> D12 /
`-sda3 -> D12 swap
sdb
|-sdb1 -> EFI partition
|-sdb2 -> D11 /boot
`-sdb3
   `-luks-73072c13-9ffa-4b03-b82b-91db0c063069
     |-crypt-root -> D11 /
     |-crypt-swap -> D11 swap
     `-crypt-home -> D11 /home


$ sudo tree /boot/efi/
/boot/efi/
└── EFI
     └── debian
         ├── BOOTX64.CSV
         ├── fbx64.efi
         ├── grub.cfg
         ├── grubx64.efi
         ├── mmx64.efi
         └── shimx64.efi


$ sudo efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* debian
Boot0001* UEFI: Flash


Regards,
Yvan

[toc] | [next] | [standalone]


#242345

FromYvan Masson <yvan@masson-informatique.fr>
Date2021-11-23 17:00 +0100
Message-ID<DmGn8-5Vh-15@gated-at.bofh.it>
In reply to#242341

[Multipart message — attachments visible in raw view] — view raw

Le 23/11/2021 à 13:57, Yvan Masson a écrit :
> Hi list,
> 
> I have a laptop with two drive, historically installed with an encrypted 
> Debian 11 booting in UEFI mode (done with Debian Installer).
> 
> I just installed Debian 12 without encryption in a small partition. 
> Unfortunately, I can not boot Debian 11 anymore, grub-efi only shows the 
> Debian 12 install.
> 
> Any help to make both install boot would greatly appreciated. Being able 
> to boot Debian 11 only would also be great if the dual boot is not 
> possible.
I found first an answer for the second question : the wiki 
(https://wiki.debian.org/GrubEFIReinstall) explains exactly how to 
recover from such issue. This is what I did and I can now only boot on 
my encrypted Debian 11.

For the first question, I found different solutions on AskUbuntu 
(https://askubuntu.com/questions/617045/how-do-i-install-two-independent-ubuntu-installations-on-a-single-hard-drive-wit) 
: I chose the method with two EFI partitions, because it seems easier to 
me (but this might no be true). If you do this, do not forget to modify 
/etc/fstab so that each install uses the proper EFI partition.

Regards,
Yvan

[toc] | [prev] | [next] | [standalone]


#242346

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-11-23 17:30 +0100
Message-ID<DmGQa-6k9-17@gated-at.bofh.it>
In reply to#242345
On Tue 23 Nov 2021 at 16:50:30 (+0100), Yvan Masson wrote:
> Le 23/11/2021 à 13:57, Yvan Masson a écrit :
> > I have a laptop with two drive, historically installed with an
> > encrypted Debian 11 booting in UEFI mode (done with Debian
> > Installer).
> > 
> > I just installed Debian 12 without encryption in a small
> > partition. Unfortunately, I can not boot Debian 11 anymore,
> > grub-efi only shows the Debian 12 install.
> > 
> > Any help to make both install boot would greatly appreciated.
> > Being able to boot Debian 11 only would also be great if the dual
> > boot is not possible.

It sounds like when you installed 12, your encrypted partition for 11
was still locked, and so the os-prober couldn't find it. When in 12,
you need to unlock 11 and then update grub so it can include 11 in its menu.

> I found first an answer for the second question : the wiki
> (https://wiki.debian.org/GrubEFIReinstall) explains exactly how to
> recover from such issue. This is what I did and I can now only boot on
> my encrypted Debian 11.
> 
> For the first question, I found different solutions on AskUbuntu (https://askubuntu.com/questions/617045/how-do-i-install-two-independent-ubuntu-installations-on-a-single-hard-drive-wit)
> : I chose the method with two EFI partitions, because it seems easier
> to me (but this might no be true). If you do this, do not forget to
> modify /etc/fstab so that each install uses the proper EFI partition.

I've no experience with doing that. I've always set up grub-install
to point to the device that contains /boot belonging to the system
I want to boot up by default, and then used update-grub to make that
/boot/grub/grub.cfg aware of all the systems on the machine (but
they all need to be visible so that they get entries added). This
latter grub.cfg will boot this same system by default.

Cheers,
David.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web