Lädt...

🔧 Setting Up Dual Boot with Windows and Arch Linux Using systemd-boot


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Dual-booting Windows and Arch Linux is fairly straightforward when each operating system is installed separately. However, you might need to manually select the boot device through your BIOS settings every time you want to switch. To make this more convenient, you can configure systemd-boot to present a centralized boot menu, allowing you to choose between Arch and Windows easily at startup.

Installing and Configuring systemd-boot

systemd-boot comes bundled with systemd, so you don't need to install anything extra. To initialize it, simply use bootctl:

bootctl install

This command will install systemd-boot into your EFI system partition, set up a new bootloader entry named Linux Boot Manager, and configure it as the first option in your UEFI firmware.

At this point, if you reboot, you will only see Arch Linux listed as a boot option — we still need to add Windows manually.

Adding the Windows Boot Entry

The goal is to make Windows available directly from the systemd-boot menu. To do this, we'll copy Windows' EFI boot files into Linux's EFI partition. systemd-boot will automatically detect the Windows bootloader once the files are in place — no need to create a manual entry.

Step 1: Identify the Windows EFI Partition

First, list all block devices:

lsblk

Sample output:

NAME          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS  
sda             8:0    0 223.6G  0 disk   
├─sda1          8:1    0   100M  0 part   
├─sda2          8:2    0    16M  0 part   
├─sda3          8:3    0 222.9G  0 part   
└─sda4          8:4    0   546M  0 part   
zram0         253:0    0     4G  0 disk [SWAP]  
nvme0n1       259:0    0 476.9G  0 disk   
├─nvme0n1p1   259:1    0     1G  0 part /boot  
├─nvme0n1p2   259:2    0    47G  0 part /  
└─nvme0n1p3   259:3    0 428.9G  0 part /home

In this example, sda1 is a 100MB partition, which typically indicates Windows' EFI partition.

Step 2: Mount the Windows EFI Partition

Create a mount point and mount the Windows EFI partition:

sudo mkdir /mnt/windows-efi
sudo mount /dev/sda1 /mnt/windows-efi

Step 3: Copy Windows Boot Files

Copy the Microsoft EFI directory into your Arch system’s EFI folder:

sudo cp -r /mnt/windows-efi/EFI/Microsoft /boot/EFI/

Once copied, systemd-boot will automatically detect the Windows Boot Manager.

Final Step: Reboot and Enjoy

After setting everything up, reboot your machine. You should now see both Arch Linux and Windows listed in the systemd-boot menu — no additional configuration required!

...

🐧 You Don't need Arch to use the Arch Wiki, it is my main source of information for setting up Ubuntu!


📈 28.72 Punkte
🐧 Linux Tipps

🐧 PSA: Systemd intentionally draining laptop batteries if using suspend-then-resume since systemd-252


📈 26.05 Punkte
🐧 Linux Tipps

📰 Arch Linux Officially Kills 32-Bit Support, Migrate to "Arch Linux 32" Fork Now


📈 25.07 Punkte
📰 IT Security Nachrichten

🐧 Questions about Arch Linux and the Arch User Repository (AUR)


📈 24.15 Punkte
🐧 Linux Tipps

🎥 Arch Conf 2020 - Arch Linux: Past, Present and Future


📈 24.15 Punkte
🎥 IT Security Video

🐧 Useless fact about Arch Linux (and Arch based distros):


📈 24.15 Punkte
🐧 Linux Tipps

🐧 Raspberry Pi Arch Linux ARM no-systemd


📈 23.56 Punkte
🐧 Linux Tipps

🐧 Support for Go library and utilities by Foxboron · Pull Request #36914 · systemd/systemd


📈 23.36 Punkte
🐧 Linux Tipps

📰 Arch Anywhere ISO Lets You Install a Fully Custom Arch Linux System in Minutes


📈 22.85 Punkte
📰 IT Security Nachrichten

📰 Arch Anywhere ISO Lets You Install a Fully Custom Arch Linux System in Minutes


📈 22.85 Punkte
📰 IT Security Nachrichten

🐧 TIL That Arch Linux has retro websites of Arch in URL form : https://www.archlinux.org/retro/2002/


📈 22.85 Punkte
🐧 Linux Tipps

🐧 [1920x1080] Arch Linux wallpaper that I made for my Arch computer


📈 22.85 Punkte
🐧 Linux Tipps

📰 Arch Conf 2020: Die Linux-Distribution Arch skizziert ihre Zukunft


📈 22.85 Punkte
📰 IT Nachrichten

🎥 Arch Conf 2020 - Enter the Matrix: Install your own Matrix server on Arch Linux


📈 22.85 Punkte
🎥 IT Security Video

🎥 Arch Conf 2020 - Closing Talk: Arch Linux Conf in review


📈 22.85 Punkte
🎥 IT Security Video

🎥 Arch Conf 2020 - GamerOS: An Arch Linux based gaming OS


📈 22.85 Punkte
🎥 IT Security Video

🎥 Arch Conf 2020 - Arch Linux Team Q&A


📈 22.85 Punkte
🎥 IT Security Video

🎥 Arch Conf 2020 - Packaging Rust Applications for Arch Linux


📈 22.85 Punkte
🎥 IT Security Video

🐧 easy-arch (a fashionable way to install Arch Linux)


📈 22.85 Punkte
🐧 Linux Tipps

🐧 Arch Linux software projects: Request for participation - Arch-dev-public


📈 22.85 Punkte
🐧 Linux Tipps

🐧 Which of the two Arch Linux distros with KDE is best? Manjaro or vanilla Arch?


📈 22.85 Punkte
🐧 Linux Tipps

🕵️ systemd tmpfiles.d/systemd.conf Information Disclosure


📈 22.06 Punkte
🕵️ Sicherheitslücken