-
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
-
Create efi partition:
# fdisk /dev/sda
* g (to create an empty GPT partition table) * n * 1 * enter * +300M * t * 1 (For EFI) * n * 2 * enter * enter * t * 2 * 31 * w
-
# mkfs.fat -F32 /dev/sda1
-
Set up lvm:
- Non-SSD:
# pvcreate /dev/sda2
- SSD:
# pvcreate --dataalignment 1m /dev/sda2
# vgcreate volgroup0 /dev/sda2
# lvcreate -l 100%FREE volgroup0 -n root
# modprobe dm_mod
# vgscan
# vgchange -ay
- Non-SSD:
-
# mkfs.ext4 /dev/volgroup0/root
-
# mount /dev/volgroup0/lv_root /mnt
-
# pacstrap -i /mnt base base-devel
-
# genfstab -U -p /mnt >> /mnt/etc/fstab
-
# arch-chroot /mnt
-
# pacman -S nano grub efibootmgr dosfstools os-prober mtools linux-headers linux mkinitcpio lvm2 network-manager-applet 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 setting root password) -
# mkdir /boot/EFI
-
# mount /dev/sda1 /boot/EFI
-
# grub-install --target=x86_64-efi --bootloader-id=grub_uefi --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 -a
-
# reboot