看这个就没错了->
https://wiki.archlinux.org/index.php/Beginners%27_Guide给个例子,我在笔记本上装的,在ssd上,分区是lvm。
useing fdisk create /dev/sda1 from sector 8192, set partition id to 8e -> lvm.
https://wiki.archlinux.org/index.php/Lvm#Configure_systempvcreate --dataalignment 1m /dev/sda1
http://serverfault.com/questions/356534/ssd-erase-block-size-lvm-pv-on-raw-device-alignmentcreate VG: VolGroup00
#vgcreate VolGroup00 /dev/sda1
create two lv: root and home
lvcreate -L 20G VolGroup00 -n home
lvcreate -L 20G VolGroup00 -n root
can be found on /dev/VolGroup00/root and home
mkfs.ext4 /dev/VolGroup00/root
mkfs.ext4 /dev/VolGroup00/home
mount /dev/VolGroup00/root /mnt
mkdir /mnt/home
mount /dev/VolGroup00/home /mnt/home
then modify mirrorlist and install base and base-devel
generate fstab
chroot
set locale
set timezone
set utc
set hostname
set dhcp
set wireless
set pacman.conf, enable multilib
systemctl enable lvm.service
# vim /etc/mkinitcpio.conf
HOOKS="... udev lvm2 filesystems"
You will need to rebuild the initramfs so the appropriate hooks can be added.
mkinitcpio -p linux
set root password
add user min:
useradd -m -g users -G audio,lp,optical,power,sys,video,wheel,network -s /bin/bash min
set passwd
install grub
chroot back
umount
reboot
最近弄了个新机器,不是legacy bios启动而是uefi,步骤和上面有点不同,我得再研究研究guide。