mount /dev/nvme0n1p2 /mnt btrfs su cr /mnt/@ btrfs su cr /mnt/@log btrfs su cr /mnt/@cache btrfs su cr /mnt/@snapshots # 这个安装完snapper之后再挂载, 暂时创建完不用挂载 umount /mnt mount /dev/sda1 /mnt btrfs su cr /mnt/@home btrfs su cr /mnt/@swap umount /mnt
挂载子卷, 以及引导分区
1 2 3 4 5 6 7
mount /dev/nvme0n1p2 /mnt -o subvol=@,noatime,discard=async,compress=zstd mount /dev/nvme0n1p2 /mnt/var/log -o subvol=@log,noatime,discard=async,compress=zstd mount /dev/nvme0n1p2 /mnt/var/cache -o subvol=@cache,noatime,discard=async,compress=zstd mount /dev/sda1 /mnt/home -o subvol=@home,noatime,discard=async,compress=zstd mkdir /mnt/swap mount /dev/sda1 /mnt/swap -o subvol=@swap,noatime,discard=async,compress=zstd mount /dev/nvme0n1p1 /boot
安装系统,生成新系统/etc/fstab
安装系统
安装基础包
1 2
pacstrap -K /mnt base base-devel linux linux-headers linux-firmware vim amd-ucode btrfs-progs arch-chroot /mnt