Hi, thx for support. I finally managed to install a working dual-boot setup (w11 + zorin). After w11 install, I installed zorin in an encrypted partition.
There were some things that made it difficult for me:
- The needed partitioning for installing zorin. I found easier to use gparted (from zorin live os) to make 3 new partitions (on top of the existing ones from windows install) and then continue with the zorin install. The final partitions are:
fdisk -l
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 206847 204800 100M EFI System
/dev/nvme0n1p2 206848 239615 32768 16M Microsoft reserved
/dev/nvme0n1p3 239616 142266367 142026752 67,7G Microsoft basic data
/dev/nvme0n1p4 142266368 143597567 1331200 650M Windows recovery environment
/dev/nvme0n1p5 143597568 144594943 997376 487M EFI System
/dev/nvme0n1p6 144594944 146216959 1622016 792M Linux filesystem
/dev/nvme0n1p7 146216960 500117503 353900544 168,8G Linux filesystem
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
├─nvme0n1p6 ext4 1.0 2f4f298a-d073-4861-bef6-29ad673eac51
├─nvme0n1p1 vfat FAT32 AE63-E62B
├─nvme0n1p2
├─nvme0n1p3 BitLocker 2
├─nvme0n1p4 ntfs 26F4B970F4B942BB
├─nvme0n1p5 vfat FAT32 A719-EEE5
└─nvme0n1p7 crypto_LUKS 2 a16302d2-c6ab-433b-a0bc-b1c1daafb082
└─nvme0n1p7_crypt ext4 1.0
├─nvme0n1p5 vfat FAT32 EFI 64B6-35B0
├─nvme0n1p6 ext4 1.0 /boot 404c0f9e-8bfb-43d8-ae00-5e23d5ea23a7
└─nvme0n1p7
- I created a second EFI partition exclusive for zorin:
/dev/nvme0n1p5 143597568 144594943 997376 487M EFI System
nvme0n1p5 vfat FAT32 EFI 64B6-35B0
It needs some tweaks to make it work. See below.
- To be able to install zorin on an encrypted partition you need to create a new partition and mark it as /boot:
/dev/nvme0n1p6 144594944 146216959 1622016 792M Linux filesystem
├─nvme0n1p6 ext4 1.0 /boot 404c0f9e-8bfb-43d8-ae00-5e23d5ea23a7
-
Then you can create the partition for zorin, just create a partition with no filesystem and mark it as /.
-
Now you can proceed with the zorin install, but before you need to make another step: to make the EFI partitions work you need to enter gparted in zorin live and:
sudo parted /dev/nvme0n1
set boot 1 off
set boot 5 off
q
-
Proceed with zorin install and in gparted while installing select "something else" and select
/dev/nvme0n1p7 146216960 500117503 353900544 168,8G Linux filesystem
as "partition for encryption"
then proceed as a normal installation
-
Do no reboot after zorin is installed. Go back to gparted in zorin live and enable back to on the EFI flag in both EFI partitions:
sudo parted /dev/nvme0n1
set boot 1 on
set boot 5 on
q
-
Reboot
-
secure boot will require you to enroll MOK key (that you entered when you installed zorin)
-
Now you enter zorin but only grub shows zorin os. So it needs to be fixed to enable grub hosting win11 and zorin.
Check that ubuntu is the first option at booting:
sudo efibootmgr
In next reboot (not now) remember in BIOS you have to check for it too.
Fix grub:
x@x~# grub-install --target=x86_64-efi --efi-directory=/boot/efi --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.
Open your /etc/default/grub
file.
x@x:~# nano /etc/default/grub
Then manually add this line to the bottom of that file .. to allow Grub to look for other OS:
GRUB_DISABLE_OS_PROBER=false
Check if it recognises "Windows Boot Manager":
x@Sx:~# os-prober
/dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
Create a new Grub config file:
x@x:~# grub-mkconfig -o /boot/grub/grub.cfg
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/zorin/theme.txt
Found linux image: /boot/vmlinuz-6.8.0-45-generic
Found initrd image: /boot/initrd.img-6.8.0-45-generic
Found linux image: /boot/vmlinuz-6.8.0-40-generic
Found initrd image: /boot/initrd.img-6.8.0-40-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
It was successfull since it found "Windows Boot Manager":
Now restart.
- Since we encrypted the partition for zorin, when booting both OS will not be shown. At this point the /boot partition does not access the encrypted partition yet. We need to fix it:
The theme.txt is here:
x@x:/usr/share/grub/themes/zorin$ ls
background.png menu_bkg_c.png select_bkg_c.png slider_c.png theme.txt
icons progress_bar_s.png select_bkg_e.png slider_n.png
info.png progress_highlight_c.png select_bkg_w.png slider_s.png
We need to copy it to /booot/grub/ ...but before we need to create the directories:
/boot/grub$ sudo mkdir themes
/boot/grub/themes$ sudo mkdir zorin
..now we can copy it:
/boot/grub/themes$ sudo cp -r /usr/share/grub/themes/ /boot/grub/
/boot/grub/themes/zorin$ ls
background.png menu_bkg_c.png select_bkg_c.png slider_c.png theme.txt
icons progress_bar_s.png select_bkg_e.png slider_n.png
info.png progress_highlight_c.png select_bkg_w.png slider_s.png
Also modify grub.cfg:
/etc/default/grub.d$ sudo nano /etc/default/grub
and change..
GRUB_THEME=/usr/share/grub/themes/zorin/theme.txt to
GRUB_THEME=/boot/grub/themes/Zorin/theme.txt
Run 'update-grub' afterwards to update.
Hope this helps to anyone that goes the same road