Bypassing Secure Boot to Install Arch Linux Alongside Windows 11
In this article, we will discuss the process of installing Arch Linux alongside Windows 11, with a focus on bypassing Secure Boot. Secure Boot is a security feature in modern computers that prevents unauthorized firmware, operating systems, or bootloaders from running. However, it can also prevent us from installing our preferred Linux distribution.
Prerequisites
Before we begin, make sure you have the following:
- A computer with Windows 11 installed.
- At least 30 GB of free space for Arch Linux.
- A USB drive with at least 8 GB of storage for the Arch Linux installation media.
Creating the Arch Linux Installation Media
First, download the latest version of Arch Linux from the official website and use a tool like Rufus or Etcher to create a bootable USB drive.
Disabling Secure Boot
To disable Secure Boot, follow these steps:
- Restart your computer and enter the BIOS settings.
- Navigate to the Security tab and select Secure Boot.
- Set Secure Boot to Disabled and save the changes.
Installing Arch Linux
Now that Secure Boot is disabled, we can proceed with the installation:
- Boot your computer from the Arch Linux USB drive.
- Connect to the internet using a wired or wireless connection.
- Partition the hard drive using a tool like fdisk or parted.
- Format the partition using a filesystem like ext4:
- Mount the partition:
- Install the base system:
- Generate the fstab file:
- Chroot into the new system:
- Configure the system:
- Install a bootloader:
- Exit and reboot:
fdisk /dev/sda
n
p
1
+30G
a
1
w
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
pacstrap /mnt base base-devel linux linux-firmware
genfstab -U /mnt > /mnt/etc/fstab
arch-chroot /mnt
nano /etc/locale.gen
locale-gen
echo LANG=en\_US.UTF-8 > /etc/locale.conf
ln -sf /usr/share/zoneinfo/America/New\_York /etc/localtime
hwclock --systohc
echo root:password | chpasswd
passwd
pacman -S grub efibootmgr
grub-install --target=x86\_64-efi --efi-directory=/boot --bootloader-id=ArchLinux
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount -R /mnt
reboot
Re-enabling Secure Boot
Once Arch Linux is installed and booting correctly, you can re-enable Secure Boot if desired:
- Restart your computer and enter the BIOS settings.
- Navigate to the Security tab and select Secure Boot.
- Set Secure Boot to Enabled and save the changes.
References
- Arch Linux Installation Guide
- GRUB - Arch Linux Wiki
- Microsoft Recommended Block Rules for Linux on Windows
Types of References
- Online resources