root@archiso ~ # parted -a optimal /dev/sda
GNU Parted 3.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt # 要与启动模式uefi一致 传统模式为 msdos
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 1100GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
(parted) unit mib
(parted) mkpart primary 1 1025
(parted) name 1 boot
(parted) mkpart primary 1025 2049
(parted) name 2 efi
(parted) mkpart primary 2049 11000
(parted) name 3 swap
(parted) mkpart primary 11000 25000
(parted) name 4 root
(parted) mkpart primary 25000 50000
(parted) name 5 var
(parted) mkpart primary 50000 100000
(parted) name 6 tmp
(parted) mkpart primary 100000 -1
(parted) name 7 home
(parted) set 1 bios_grub on
(parted) set 2 boot on
(parted) print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 1048576MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1.00MiB 1025MiB 1024MiB boot bios_grub
2 1025MiB 2049MiB 1024MiB efi boot, esp
3 2049MiB 11000MiB 8951MiB swap
4 11000MiB 25000MiB 14000MiB root
5 25000MiB 50000MiB 25000MiB var
6 50000MiB 100000MiB 50000MiB tmp
7 100000MiB 1048575MiB 948575MiB home
(parted) quit
Information: You may need to update /etc/fstab.
这里不用理会,是实时生效的
pacman -S vi net-tools sysstat openssh networkmanager nm-connection-editor network-manager-applet ttf-dejavu wqy-microhei xorg dosfstools grub efibootmgr ntfs-3g os-prober intel-ucode yay pmount firefox docker docker-compose lxde xf86-video-vesa cronie
systemctl enable NetworkManager #connman
systemctl enable wpa_supplicant
systemctl enable lxdm
grub-install --target=x86_64-efi --efi-directory=/efi --recheck --bootloader-id=GRUB
grub-install /dev/sda --boot-directory=/boot --recheck --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg