技术 2025 年 3 月 28 日
Install the Archlinux (SpeedRun Version)
arch速通纪录,请在专业人士指导下操作XD
🚀 Arch Linux Dual Boot Guide (Speedrun Version)
1. Prepare Windows
- Shrink Windows Partition
- Open
diskmgmt.msc
, shrinkC:
by 50GB+ (Unallocated Space).
- Open
- Check Boot Mode
- Press
Win + R
, typemsinfo32
, check BIOS Mode:- UEFI → Continue with UEFI
- Legacy (MBR) → Use MBR installation
- Press
2. Boot into Arch Live USB
- Create USB:
dd if=archlinux.iso of=/dev/sdX bs=4M status=progress
- Boot from USB in BIOS.
3. Partition the Disk
lsblk # Identify your disk (e.g., /dev/nvme0n1)
cfdisk /dev/nvme0n1
- Keep Windows partitions
- Create Linux Root Partition (
ext4
, 50GB+) - (Optional) Create Swap Partition (8GB)
4. Format & Mount
mkfs.ext4 /dev/nvme0n1p3
mount /dev/nvme0n1p3 /mnt
mkdir -p /mnt/boot/efi
mount /dev/nvme0n1p1 /mnt/boot/efi # Use Windows' EFI partition
(If Swap)
mkswap /dev/nvme0n1p4
swapon /dev/nvme0n1p4
5. Install Arch
pacstrap /mnt base linux linux-firmware vim
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
6. Basic Config
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
hwclock --systohc
echo "LANG=en_US.UTF-8" > /etc/locale.conf
echo "archlinux" > /etc/hostname
passwd # Set root password
7. Install & Configure GRUB
pacman -S grub efibootmgr os-prober
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
os-prober
grub-mkconfig -o /boot/grub/grub.cfg
8. Finish Installation
exit
umount -R /mnt
reboot
- Select Arch Linux from GRUB 🎉
- If Windows is missing from GRUB:
os-prober grub-mkconfig -o /boot/grub/grub.cfg
Done! 🚀
版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)
作者: 小明 发表日期:2025 年 3 月 28 日