Partitionphp |
Filesystemnode |
Sizelinux |
Descriptionios |
/dev/sda1vim |
(bootloader)網絡 |
2Mapp |
BIOS boot partitionssh |
/dev/sda2tcp |
ext2 (or vfat)ide |
128M |
Boot partition |
/dev/sda3 |
(swap) |
512M or higher |
Swap partition |
/dev/sda4 |
ext4 |
Rest of the disk |
Root partition |
root@archiso ~ # parted /dev/sda print
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 42.9GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number
grep -A1 China /etc/pacman.d/mirrorlist|egrep -v '^[#-]' >/etc/pacman.d/mirrorlist.china
mv /etc/pacman.d/mirrorlist.china /etc/pacman.d/mirrorlist
或者
Total Download Size:
Total Installed Size:
root@archiso ~ # genfstab
root@archiso ~ # cat /mnt/arch/etc/fstab
#
# /etc/fstab: static file system information
#
#
# /dev/sda4
UUID=8b0f3eb5-eb82-426f-97e6-646974897ccf /
# /dev/sda2
UUID=c8846f20-3d8a-4bcd-9809-19f8a2a85ae1 /boot
# /dev/sda3
UUID=0120550a-f99c-4b28-b955-55b984721efd none
chroot
arch-chroot /mnt/arch
hostname
echo jlive >/etc/hostname
time zone
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
locales
sed -i '/^#en_US/s/^#//' /etc/locale.gen
sed -i '/^#zh_CN/s/^#//' /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 >/etc/locale.conf
或
echo LANG=en_US.UTF-8 >$HOME/.config/locale.conf
keymap
https://wiki.archlinux.org/index.php/Keyboard_configuration_in_console
font
https://wiki.archlinux.org/index.php/Fonts#Console_fonts
network
https://wiki.archlinux.org/index.php/Network_configuration
https://wiki.archlinux.org/index.php/Netctl
initramfs
https://wiki.archlinux.org/index.php/Mkinitcpio
mkinitcpio -p linux
sh-4.3# mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Starting build: 4.3.3-2-ARCH
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Starting build: 4.3.3-2-ARCH
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
pacman -S grub os-prober
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
在重啓前能夠先安裝一些基本工具
pacman -S screen screenfetch dialog wpa_actiond ifplugd wpa_suppicant sudo zsh
[root@jlive ~]# uname -a
Linux jlive 2.6.63-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64 GNU/Linux
[root@jlive ~]# screenfetch
.` `/