pre-installation:
1.connect to the internet
ping www.baidu.com
2.Update the system clock
timedatectl set-ntp true
3.Partition the disks
parted/fdisk/cfdisk
方案:
/dev/da1 efi-system :512M
/dev/sda2 | /dev/sdax linux lvm :所有其他的磁盘以及当前磁盘剩余
4.LVM
vgcreate VolGroup00 /dev/sda2 /dev/sdb1 /dev/sdc//创建LVM
lvcreate -L 16G VolGroup00 -n lvolswap //交换空间
lvcreate -L 100G VolGroup00 -n lvolroot // /root
lvcreate -L 300G VolGroup00 -n lvolhome // /home
lvcreate -L 100G VolGroup00 -n lvolvar // /var
lvcreate -l 100%FREE VolGroup00 -n lvolbak //快照
lvcreate -L 16G VolGroup00 -n lvolswap //交换空间
lvcreate -L 100G VolGroup00 -n lvolroot // /root
lvcreate -L 300G VolGroup00 -n lvolhome // /home
lvcreate -L 100G VolGroup00 -n lvolvar // /var
lvcreate -l 100%FREE VolGroup00 -n lvolbak //快照
5.mount the partition
mount ESP to /boot/efi and use a boot loader which has a driver for your root file system (eg. GRUB, rEFInd).
mount ESP to /boot. This is the preferred method when directly booting a EFISTUB kernel from UEFI.
eg:
# mkfs.xxx /dev/VolGroup00/lvolhome
# mount /dev/VolGroup00/lvolhome /hom
# mkfs.xxx /dev/VolGroup00/lvolhome
# mount /dev/VolGroup00/lvolhome /hom
6.installation
pacstrap /mnt base xxx
//xxx为你想添加到新系统的软件包7
7
7.chroot
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
locale-gen
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime
locale-gen