Easiest method for Installing Arch Linux


Arch is a Linux based distribution from Canada for 32 and 64-bit computers for some reasons arch is dropping 32bit support. Arch is the most simple Linux distribution which forces you to learn each and every part of the operating system from root to other parts of the operating system during installation, for some reason its installation is a little difficult than other distributions of Linux and it does not use GUI during installation. This is the main reason I am writing this article to help others and to provide a guide to make installation as easy and simple as it is possible. In YouTube videos often I have seen people make the installation more difficult than it actually is and over complicates the processes of installation by presenting difficult methods in their videos. In this guide, you only have to follow few steps correctly to put Arch Linux onto your computer. Arch Linux only gives you the one method of installation which they call "the archway" and it is difficult than usual GUI installations of other Linux operating systems. Arch only provides a command line interface and all the software's gets installed from the active internet connection. This method further helps users to diagnose and fix problems after the installation of the operating system if they get into any trouble after installation. Arch Linux only gives you the base system and core library after installation and you install your favorite stuff on it, you get a lot of choices on Arch Linux, for instance, Graphical user interface and software, in simple words you design your Linux computer for your needs and requirements.
So let's get started without wasting any single precious movement in talking.
Declaimer: I am not responsible for any hardware failure and data loss after installing do this at your own risk. For success in installation follow all the steps carefully and we recommend data backup before installation. if you get any trouble in installation then mention in comments we will reply as soon as possible.

Getting things ready

  • Download Arch Linux from their official website.
Download
  • Prepare USB for installation. (you can use Rufus if you are on windows computer or if you are on Mac or Linux you can use unetbootin for preparation of bootable USB).
  • Reboot your computer from USB and select boot from Arch Linux and you will be automatically signed in as a root.

Installation

Setting up hard disk

For checking hard disk partitions type
Fdisk -l
This will display your connected hard disks and USB devices choose carefully according to your mount point my hard disk is mounted on /dev/sda in most cases your hard disk might be mounted on the same location.
To launch partition wizard type
cfdisk /dev/sda
Now create partitions according to your need but remember to create swap and mark your install directory/partition as bootable and ext4 before writing partitions. If you want to create data partition then give some space to your third partition and choose one of your favorite file systems, for example, NTFS before exiting cfdisk.
Remember: cfdisk automatically create mount points for your partitions for example.
/dev/sda1
/dev/sda2

Formatting hard disk partitions and connecting to internet

First, I am going to format my second partition which is /dev/sda2
In order to formate and utilize/ harddisk partitions type
mkfs.ext4 /dev/sda2
This will format your partition as ext4 now mount it on /mnt folder by typing following command.
mount /dev/sda2 /mnt
This command will mount your partition on /mnt folder which we will utilize for installation of Arch Linux.
Now make /dev/sda1 as swap type
mkswap /dev/sda1
to utilize swap type
swapon /dev/sda1
Remember: If you are using ethernet for installation you will be automatically connected to the internet and if you are using wifi for installation then type wifi-menu and connect to your desired network.
check your connection by sending a ping
ping -c3 www.feedstime.tk 

Installing

Finally, install Arch Linux by typing
pacstrap /mnt base base-devel 
This will download and install Arch Linux on your PC watch below video for the further guide.

Configuration

For configuration, we need a root access arch installation on /mnt folder
arch-chroot /mnt 
set password for root
passwd 
type your password and press enter and same for conform
In next step generate keyboard layout and computer language using nano text editor type
nano /etc/local.gen 
and remove hash # or pound sign from your desired language and press Ctrl + o to write language files and press enter to confirm and ctrl + o to exit and type below command to generate local files
local-gen
now set your timezone for the computer by typing
ln -S /user/share/zoneinfo/Asia/Karachi /etc/localtime 
Remember: change Asia and Karachi according to your time zone
Now create hostname for your computer type
echo > manzoor /etc/hostname
Remember: change Manzoor into your desired hostname
Next, I am installing bootloader grub in order to make installation bootable you can choose from a list of bootloader here but I highly recommend grub because of its features.
Pacman -S grub-bios 
After downloading grub install it on your actual hard disk not on partition for example /dev/sda or /sdb in order to install type
grub-install /dev/sda 
Now generate init file for Linux init file is used to load ramdisk temporarily  root filesystem onto memory during startup before actual root system mount you can find more information here in order to generate init file type
mkinit -P linux
This will generate init file now configure grub by typing
Grub-mkconfig -o /boot/grub/grub.cfg
now install some key packages for internet and wifi
Pacman -S dialog wpa_supplicant networkmanager 
Now exit chroot session type
exit 
Finally, generate fstab. fstab is a file used to define how harddisk partitions/filesystem should be mounted
genfstab /mnt/ >> /mnt/etc/fstab
unmount your partition
umount /dev/sda2
finally reboot
reboot
Watch below video for the further guide.

I hope this article helps you in the installation of arch Linux and make installation as easy as it is possible.

You Might Also Like:

Comments:

 
We use users cookies to improve user experience. or