http://mirrors.163.com/archlinux/iso/2012.12.01/archlinux-2012.12.01-dual.iso
dd if=archlinux-2012.12.01-dual.iso of=/dev/sdb
cfdisk #/dev/sda1-----/boot-----100M #/dev/sda2-----swap------2G #/dev/sda3-----/---------6G
mkfs.ext4 /dev/sda1 mkfs.ext4 /dev/sda3
mkswap /dev/sda2 && swapon /dev/sda2
mount /dev/sda3 /mnt mkdir /mnt/boot mount /dev/sda1 /mnt/boot
dhclient
vi /etc/pacman.d/mirrorlist
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
pacstrap /mnt base base-devel syslinux vim
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
vi /etc/hostname #内容里添加主机名
vi /etc/hosts #在<hostname>列的两行localhost值后面添加一个空格和刚才设置的主机名
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
vim /etc/timezone #添加Asia/Shanghai这一行后保存退出
vi /etc/locale.gen
en_US.UTF-8 UTF-8 en_US ISO-8859-1 zh_CN.GB18030 GB18030 zh_CN.GBK GBK zh_CN.UTF-8 UTF-8 zh_CN GB2312
locale-gen
vim /etc/locale.conf
LANG=en_US.UTF-8
mkinitcpio -p linux
vim /boot/syslinux/syslinux.cfg #检查APPEND root=/dev/sdax ro 这行的sdax设置为正确的/所在分区即可
syslinux-install_update -iam
passwd
useradd -d /home/admin -m admin
pacman -S sudo
visudo
%wheel ALL=(ALL) ALL
usermod -G audio,video,wheel,users,games,optical,storage,lp admin
exit
umount /mnt