Dual boot (on a single SSD) #900
Replies: 6 comments 13 replies
-
|
This is the video I used for dual booting before fully committing to omarchy. Hopefully this is more clear and simple, he explains quite alot and even shows you how to add the windows entry to grub. |
Beta Was this translation helpful? Give feedback.
-
|
Here are the steps I used to install Omarchy in dual boot with Windows (inspired by https://www.youtube.com/watch?v=9jTk3K3ExaI):
Add to /boot/limine.conf
|
Beta Was this translation helpful? Give feedback.
-
|
This was perfect for me, I was all night trying to make it work, the installing omarchy first then shrinking didn't occur to me at all lol. Step 12 did take some time, like 1 1/2 hours but I didn't want risk it and just waited for it while I was out. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
|
Use iwctl to connect to wifi lsblk cfdisk /dev/sdXY 2G EFI System Encrypt the root with LUKS2 btrfs su cr /mnt/@ umount /mnt mount --mkdir /dev/sda1 /mnt/boot reflector --verbose -c us -a 12 --sort rate --save /etc/pacman.d/mirrorlist pacstrap -K /mnt base base-devel linux linux-firmware git vim btrfs-progs efibootmgr limine cryptsetup dhcpcd iwd networkmanager reflector bash-completion avahi acpi acpi_call acpid alsa-utils pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber sof-firmware util-linux openssh man sudo rsync genfstab -U /mnt >> /mnt/etc/fstab arch-chroot /mnt ln -sf /usr/share/zoneinfo/Europe/Sofia /etc/localtime vim /etc/locale.gen vim /etc/vconsole.conf echo arch > /etc/hostname passwd useradd -mG wheel john EDITOR=vim visudo /etc/mkinitcpio.conf MODULES=(btrfs) mkinitcpio -P Setting up Limine bootloader mkdir -p /boot/EFI/limine Now we need to create an entry for Limine in the NVRAM: efibootmgr --create --disk /dev/sda2 --part 1 --label "Arch Linux Limine Bootloader" --loader '\EFI\limine\BOOTX64.EFI' --unicode efibootmgr -v N.B. --disk /dev/nvme0n1 --part 1 means /dev/nvme0n1p1 N.B. Do NOT include boot when pointing to Limine Bootloader file. N.B. In a Limine config, boot():/ represents the partition on which limine.conf is located. blkid /dev/sda2 Finally let's make a basic configuration for Limine. Use the command vim /boot/EFI/limine/limine.conf and write inside the following (or at least the first of the two sections): timeout: 3 /Arch Linux /Arch Linux (fallback) cryptsetup luksUUID /dev/sda2 Remember being advised to save an UUID? Now is the time to use it. Replace the above with the UUID of your LUKS container. systemctl enable NetworkManager exit Reboot and login as user and run: curl -fsSL https://omarchy.org/install | bash https://learn.omacom.io/2/the-omarchy-manual/96/manual-installation good luck!! |
Beta Was this translation helpful? Give feedback.
-
|
Brilliant solution to resize a standard Omarchy installation post install! This approach is a lot more robust than trying to install Omarchy alongside an existing OS, especially for new users! however, creating a 2nd EFI partition for Windows is not a normal setup and may cause problems later. I posted install instructions without using Gparted, since it confused Windows installer. (It could be Intel Mac UEFI specific issue.) Thank you for the inspiration to find a working solution. ;) My post: #3349 |
Beta Was this translation helpful? Give feedback.
-
|
If you like you can follow my guide : |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As 'archinstall' and 'omarchy' ISOs do not currently support "pre-mount" partitioning option with LUKS encryption, this is what I did to dual boot ArchLinux & Win11 on a single SSD.
General:
-- BIOS: Secure Boot OFF
-- Prepare GParted, ArchLinux & Win11 live usb's
Assumption:
archinstall/omarchy created 2 partitions:
-- nvme0n1p1 as boot; &
-- nvme0n1p2 as encrypted root with all the btrfs subvolumes.
Steps:
01 Boot into GParted live usb
02 Select default options
03 Select /dev/nvme0n1
04 Unlock encryption on /dev/nvme0n1p2
05 Shrink /dev/nvme0n1p2 to create unallocated space at the end (according to your Win11 space preference)
06 Lock /dev/nvme0n1p2
07 Apply changes
08 Reboot into ArchLinux live usb
09 Run "gdisk /dev/nvme0n1"
10 Create 2 partitions:
-- p3 and assign last sector as "+128M" & type as "0C01" (Windows Reserved Partition); &
-- p4 and assign type as "0700" (Microsoft Basic Data)
11 (Optional) Run "cfdisk /dev/nvme0n1" to check partition types were done correctly
12 Run "mkfs.ntfs /dev/nvme0n1p4" (this will take time)
13 Reboot into Win11 live usb
14 Select nvme0n1p4 partition and install Win11
15 Boot into BIOS and change first boot option from Windows to Limine.
16 Boot into omarchy
17 Append "/boot/limine.conf" with:
/Windows
comment: Microsoft Windows 11
comment: order-priority=20
protocol: efi_chainload
image_path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
18 Reboot
For step 12, if you run the command with "-f" it will not take time but Win11 was crashing after installation. This might not be a persistent issue though.
I'm not a tech person, I just did it out of a need to run both on a single SSD. If anyone has a simpler approach, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions