fdisk -l
cfdisk <drive_name>
Enter dos
, create 2 partitions:
swap
partition: half the size of your RAM.root
partition: whatever the size you want and set it to bootable.- (Optional)
home
partition: some people like to have this partition, you can make the size of yourroot
partition like 20% or the size of thehome
partition.
mkfs.ext4 <root_partition_name>
If you are using the ethernet cable then it should be connected by default. However, if you are using the the Wifi then enter wifi-menu
to select the network.
mount <root_partition_name> /mnt
mkswap <swap_partition_name>
swapon <swap_partition_name>
pacstrap /mnt base base-devel
arch-chroot /mnt
passwd
pacman -S vim vi dialog wpa_supplicant networkmanager nm-connection-editor network-manager-applet
systemctl enable networkmanager
nano/vim /etc/locale.gen
Uncomment the languages you want to use then create the locale file:
locale-gen
Check the folders and files in the /usr/share/zoneinfo
directory. Find your country then create a symlink of it to the localtime
file.
ln -s /usr/share/zoneinfo/<continent>/<city> /etc/localtime
If the localtime file exists, just remove it and run that command again.
echo <your_choosen_hostname> > /etc/hostname
pacman -S grub-bios mkinitcpio linux
grub-install <the_hard_drive_not_partition>
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
Exit the chroot session by typing in exit
A fstab file contains information to our partitions.
genfstab /mnt >> /mnt/etc/fstab
umount /mnt