>>No.69302838
(把那个烦人的“AI-Monitor”赶走之后——虽然不知道有没有真的删干净,毕竟删除过程也太顺利了——你突然想试试Arch Linux)
(谁不想每天早起第一件事是打开终端输入“sudo pacman -syu”呢)
(虽然这个系统有着些许争议……但喜欢折腾电脑的你一直很喜欢Arch Linux灵活、可高度定制的特性)
(你把刚刚拔下来的U盘又插了回去)
SystemRescue 13.02 (2026-08-01)
root@sysrescue ~ # # mkfs.ext4 /dev/nvme0n1p2 -y
(诶等等,是“-y”吗?fsck.ext4是,但是mkfs……你决定先查一下)
(打开那个三星手机的浏览器:https://cn.bing.com/search?q=mkfs.ext4)
(哦是“-F”嘛,记错了……你把“-y”改成了“-F”)
mke2fs 1.47.2 (2026-06-25)
Creating filesystem with 131072000 4k blocks and 32768000 inodes
...
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
(`/dev/nvme0n1p2` 分区删干净了。现在挂载分区:)
root@sysrescue ~ # mount /dev/nvme0n1p2 /mnt
root@sysrescue ~ # mkdir /mnt/boot
root@sysrescue ~ # mount /dev/nvme0n1p1 /mnt/boot
(把基础系统装上去吧)
root@sysrescue ~ # pacstrap /mnt base linux linux-firmware vim sudo networkmanager dhcpcd
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
core 163.3 KiB 2.34 MiB/s 00:00 [################] 100%
extra 179.2 KiB 2.56 MiB/s 00:00 [################] 100%
community 5.9 MiB 5.92 MiB/s 00:01 [################] 100%
:: Resolving dependencies...
(吭哧吭哧地安装……)
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
==> Image generation successful
root@sysrescue ~ # genfstab -U /mnt >> /mnt/etc/fstab
root@sysrescue ~ # arch-chroot /mnt
(“啊,进来了……”你舒服地看着显示出来的“[root@archiso /]# ”)
sed -i 's/^#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
(在 Arch Linux 中,/etc/locale.gen 安装后所有行都被 # 注释掉了。所以,你把需要的那一行取消了注释)
[root@archiso /]# locale-gen
Generating locales...
en_US.UTF-8... done
Generation complete.
[root@archiso /]# echo "LANG=en_US.UTF-8" > /etc/locale.conf
[root@archiso /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.10.13-arch1-1'
...
(过了一会……)
==> Image generation successful
[root@archiso /]# passwd
New password:
(把经常用的密码输了上去)
Retype new password:
passwd: password updated successfully
[root@archiso /]# systemctl enable NetworkManager
[root@archiso /]# systemctl enable dhcpcd
(诶?两个都打开会冲突的吧……得关一个)
(不过关那个呢……好像NetworkManager内置了DHCP客户端,那就没必要再打开dhcpcd了。把这个关了)
[root@archiso /]# systemctl disable dhcpcd
(还得把GRUB配置好)
[root@archiso /]# pacman -S grub efibootmgr base-devel
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Resolving dependencies...
(省略......)
==> Image generation successful
[root@archiso /]# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
Installing for x86_64-efi platform.
Installation finished. No error reported.
[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
done
(安装完了,重启吧……)
[root@archiso /]# exit
root@sysrescue ~ # reboot
(终端完成了重启)
Arch Linux 6.10.13-arch1-1 (tty1)
archiso login: root
Password:
[root@archiso ~]#