-
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 boot partition:
# fdisk /dev/sda
* o * n * p * 1 * enter * +500M * t * a * n * p * 2 * enter * enter * t * 2 * 8E * w
-
# mkfs.ext2 /dev/sda1
-
Set up encryption
# cryptsetup luksFormat /dev/sda2
# cryptsetup open --type luks /dev/sda2 lvm
-
Set up lvm:
- Non-SSD:
# pvcreate /dev/mapper/lvm
- SSD:
# pvcreate --dataalignment 1m /dev/mapper/lvm
# vgcreate volgroup0 /dev/mapper/lvm
# 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
-
# mkdir /mnt/boot
-
# mount /dev/sda1 /mnt/boot
-
# pacstrap -i /mnt base base-devel
-
# genfstab -U -p /mnt >> /mnt/etc/fstab
-
# arch-chroot /mnt
-
# pacman -S nano grub-bios os-prober linux linux-headers mkinitcpio lvm2 network-manager-applet networkmanager networkmanager-openvpn wireless_tools wpa_supplicant
-
Edit
/etc/mkinitcpio.conf
and addencrypt
andlvm2
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) -
Edit
/etc/default/grub
: addcryptdevice=<PARTUUID>:volgroup0
to theGRUB_CMDLINE_LINUX_DEFAULT
line If using standard device naming, the option will look like this:cryptdevice=/dev/sda2:volgroup0
-
# 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