My commands to dual booting Arch
I love dual booting Arch everytime I break it, but sometimes I needed a simple book to do it so I don't have to remember every single commands. So, I shrink my C: volume in Disk Manager, then boot to the Arch ISO with Ventoy (You can use Rufus, Balenaetcher too).
Connnect wifi
systemctl start iwd
itwctl
station list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect '{the SSID}'
exit
Test the connection
ping 1.1.1.1
Ctrl+C to done the testing.
Configure unallocated disk to arch
fdisk -l
fdisk /dev/nvme0n1
p
n
# Enter, enter until
Last sector
1. +512M
2. Left space (just enter)
w
archinstall
pacman -Sy archinstall
y
archinstall
Disk configuration
Go to section Disk confguration
Select Manual partitioning
Select the created 512MB partition
- Mark/Unmark to be formatted
- Assign mountpoint: /boot
- Filesystem: fat32
- Assign labels: boot, esp
- Select the created left space partiton
- Mark/Unmark to be formatted
- Assign mountpoint: /
- Filesystem: ext4
- Assign labels: -
Confirm and exit.
Other configuration
| Section | Option |
|---|---|
| Mirrors and repositories | Select region > Your country |
| Hostname | Give your computer a name |
| Bootloader | Grub (must be) |
| Authentication > Root password | Set yours |
| Authentication > User account | Add a user > Superuser: Yes > Confirm and exit |
| Profile > Type > Desktop | Set yours, recommended: KDE or GNOME |
| Applications > Audio | pipewire |
| Network configuration | Use NetworkManager |
| Timezone | Set yours |
If all feels right, click the Install. The installation duration can be more than 15 minutes, depends on your PC and internet speed.
Installation completed
Select chroot into installation for post-installation configuration.
Run command efibootmgr to see that Arch Grub bootloader is installed or not.
grub-install --target=x86_64-efi --efi-directory=/boot --recheck
Run efiboormgr again, and if the Arch there, then it's succesfully installed. Now you can see the brand new Arch.
exit
reboot
First login to Arch, detecting Windows boot
Now you see the Arch Linux option, click on it and login. And now you get a full-featured Arch with GNOME/KDE experience. Now, we need to detect the Windows to be on Grub, with terminal app.
sudo pacman -Syu
sudo pacman -S os-prober
sudo os-prober
Edit the grub configuration file,
sudo nano /etc/default/grub
Ctrl+End (to go to the last line), then uncomment the
#GRUB_DISABLE_OS_PROBER=false
by removing the hashtag sign (#). Ctrl+O, Enter, Ctrl+X. Then, update the GRUB
sudo grub-mkconfig -o /boot/grub/grub.cfg
Reboot, and Done!
Adapted from KMDTech video guide