-
Use wifi-menu to connect to network
-
Visit https://www.archlinux.org/mirrorlist/ on another computer, generate mirrorlist
-
Edit /etc/pacman.d/mirrorlist on the Arch computer and paste the faster servers
-
Update package indexes:
# pacman -Syyy
-
Partition disk, create lvm partition:
# fdisk /dev/sda
* o * enter * n * p * 1 * enter * enter * t * 1 * 8E * w
-
Create lvm:
- Non-SSD:
# pvcreate /dev/sda1
- SSD:
# pvcreate --dataalignment 1m /dev/sda1
# vgcreate volgroup0 /dev/sda1
# lvcreate -l 100%FREE volgroup0 -n root
# modprobe dm_mod
# vgscan
# vgchange -ay
- Non-SSD:
-
# mkfs.ext4 /dev/volgroup0/root
-
# mount /dev/volgroup0/root /mnt
-
# pacstrap -i /mnt base base-devel
-
# genfstab -U -p /mnt >> /mnt/etc/fstab
-
# arch-chroot /mnt
-
# pacman -S nano openssh grub-bios linux-headers linux network-manager-applet mkinitcpio networkmanager networkmanager-openvpn wireless_tools wpa_supplicant
-
Edit
/etc/mkinitcpio.conf
and addlvm2
in betweenblock
andfilesystems
-
# mkinitcpio -p linux
-
# nano /etc/locale.gen (uncomment en_US.UTF-8)
-
# locale-gen
-
# ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
-
# hwclock --systohc --utc
-
# passwd
(for root) -
# grub-install --target=i386-pc --recheck /dev/sda
-
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
-
# grub-mkconfig -o /boot/grub/grub.cfg
-
Create swap file:
# fallocate -l 2G /swapfile
# chmod 600 /swapfile
# mkswap /swapfile
# echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab
-
$ exit
-
# umount /mnt/home
-
# umount /mnt
-
# reboot