Win10 + Arch Linux dual boot step (UEFI)
Prerequired
- use
Microsoft online toolto make USB installer - use
Rufusto make Arch Linux USB installer (In Win10) (or try treminal command in Mac/Linux/Win10)
Install arch linux
Partition, format & mount
use
cfdisk <DISK_NUMBER>|fdiskMount point Partition type Suggested Size /boot EFI system partition 550MB ~ 1GB / Linux x86_x64 root 23GB~32GB [SWAP] Linux swap 512MB~3GB /home Linux home remainder of the device format
mkfs.vfat -F32 /dev/sdxN // EFI only mkfs.ext4 /dev/sdxN // root & home mkswap /dev/sdxN // swqp only swapon /dev/sdxNmount
mount /dev/sdxN /mnt // root = /mnt mkdir /mnt/boot // mount EFI partition to here mkdir /mnt/home // home = /mnt/home mount /dev/sdxN /mnt/boot mount /dev/sdxN /mnt/homemake sure network work properly. (
ping 8.8.8.8)timedatectl set-ntp truemove the nearlest postion line to top of file at
/etc/pacman.d/mirrorlistand install necessary packagre by run cmd below:pacstrap /mnt base base-devel linux linux-firmware archiso nano vimthengenfstab -U /mnt >> /mnt/etc/fstabSetting installed system
run
arch-chroot /mntto change into ittime & zone setting
ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime hwclock --systohclocale setting
edit by run
nano /etc/locale.genand uncomment these lines below:en_US.UTF-8 UTF-8 zh_CN.UTF-8 UTF-8 zh_TW.UTF-8 UTF-8then run
locale-genand add below line to/etc/locale.conf:LANG=en_US.UTF-8network
echo myhostname >> /etc/hostname- edit
/etc/hostsand add:127.0.0.1 localhost ::1 localhost 127.0.1.1 myhostname.localdomain myhostname
password
Set login password by
passwdbootloader (grub)
pacman -S grub efibootmgr mkdir /boot/efi mount /dev/sdxN /boot/efi // mount EFI partition to here grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi grub-mkconfig -o /boot/grub/grub.cfgthen
exit // exit chroot umount -R /mnt rebootInstall Desktop (KDE)
use default user
rootwithout password to login and install desktop enviroment:pacman -S xorg xorg-server xorg-xinit xorg-apps pacman -S plasma kde-applications pacman -S sddm sddm-kcm systemctl enable sddmrelogin and select
KDE enviromentin login UIOptional
- Chat app (Line, Telegram)
- Develop IDE (vscode, JetBrain ToolBox)
- Browser (Chrome)
- VCS (git)
- IME (gcin or ibus)
Get all of above from two way:
pacman- from AUR:
pacman base base-devel // Prerequired, if installed then ignore it pacman -Syyu // Update package git clone https://aur.archlinux.org/XXXXX.git cd XXXXX makepkg -si
Install Win10
- Disable
CSMin BIOS (avoid legacy mode installed) - If need partition manually, use
Shift + F10to open cmd when installing win10 and run below command:Diskpart clean convert gpt create partition efi size=100 create partition primarysize unit = MB
- … Happy next-step installing …
- After installing finished, run
System Informationand check BIOS Mode equal to UEFI
Re-gen grub config
To discover Win10 efi boot setting:
grub-mkconfig -o /boot/grub/grub.cfg
Q&A
- Update package by running
pacman -Syutimeout ??
- check /etc/resolve.conf dns address
# Google IPv4 nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4
# Google IPv6 nameservers
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844
- update
mirrorlistmanually by
sudo curl -o /etc/pacman.d/mirrorlist "https://www.archlinux.org/mirrorlist/?country%3DTW%26protocol%3Dhttps%26ip_version%3D4%26ip_version%3D6"