Last active
January 22, 2022 14:52
-
-
Save simonwahlgren/d4a3d572fb1b077a2d2cad90e74eaedf to your computer and use it in GitHub Desktop.
Dual boot Arch Linux installation with BTRFS and UEFI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Prerequisite | |
windows 10 installed | |
empty space for linux | |
turn off safe boot to be able to boot usb drive | |
turn off fast startup as it might damage your EFI partition | |
### Installation | |
timedatectl set-ntp true | |
loadkeys sv-latin1 | |
cfdisk /dev/sdX (set disk to type GPT) | |
- create partition wit type EFI System, 512MB | |
- create one linux partition on the remaining space | |
mkfs.fat -F32 /dev/sdX1 | |
mkfs.btrfs -L "Arch Linux" /dev/sdX2 | |
mount /dev/sdX2 /mnt | |
mkdir /mnt/boot | |
mount /dev/sdX1 to /mnt/boot | |
wifi-menu | |
pacstrap -i /mnt base base-devel intel-ucode btrfs-progs wpa_supplicant iw dialog linux-lts | |
genfstab -U -p /mnt >> /mnt/etc/fstab | |
arch-chroot /mnt | |
nano /etc/locale.gen, uncomment en_US.UTF-8 | |
locale-gen | |
echo LANG=en_US.UTF-8 > /etc/locale.conf | |
echo LANGUAGE=en_US >> /etc/locale.conf | |
echo LC_ALL=C >> /etc/locale.conf | |
echo KEYMAP=sv-latin1 > /etc/vconsole.conf | |
ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime | |
hwclock --systohc --utc | |
echo hostname > /etc/hostname | |
passwd | |
#### Install bootloader | |
bootctl --path=/boot install | |
cp /usr/share/systemd/bootctl/loader.conf to /boot/loader/ | |
cp /usr/share/systemd/bootctl/arch.conf to /boot/loader/entries/ | |
blkid -s PARTUUID -o value /dev/sdaX (root partition) | |
edit loader.conf and add timeout 4 to arch | |
edit arch.conf and update accordingly: | |
```sh | |
title Arch Linux | |
linux /vmlinuz-linux-lts | |
initrd /intel-ucode.img | |
initrd /initramfs-linux-lts.img | |
options root=PARTUUID=<uuid-from-blkid-above> rw | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment