• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How To Install Arch Linux

{{postValue.id}}

Installation and Configuration of Arch Linux

Arch Linux is a GNU based Linux distribution. It is not recommended for Linux beginners due to the complicated command line installer. It provides its software packages through Pacman (Package Manager). Installation and configuration of Arch Linux is explained in this article.

To Create Disk Partitions Layout

Download Arch Linux from its official website. Create a bootable CD/USB and plug it into your system CD/USB drive. Now choose your CPU Architecture type and then press Enter.
disk partition layout

Verify your network connection by using the ping command.

root@archiso~ # ping  google.co.in

ping command
Check the hard disk information.

root@archiso~ # fdisk &ndash l

hard disk information

Use Cfdisk utilities to perform a disk partition and select the label type accordingly.

root@archiso~ # cfdisk

Cfdisk utilities

Use the following structure for a basic layout partition table

Root partition

Device /dev/sda1
Size 10G as Primary with Boot flag, ext4 formatted.

Swap partition

Device /dev/sda2
Size 2xRAM as Primary, Swap On.


Now start to create the partitions. Select Free Space then hit on New.
partitioning

Enter partition size in GB and then create partition at the Beginning of Free Space. Here, we are setting the main partition size as 10gb and select primary
free space
Then set bootable to that main partition.
set bootable
Select “ write” and type " yes" to add the partition.
partitioning process

partitioning process
Use arrow key to select Free Space then repeat the same steps as above to create swap partition.
swap partition
Select “ quit” for closing the partition window. Run " fdisk &ndash l" command to view the partition table.

root@archiso~ # fdisk -l

partition table

Run the following command to create disk file system and also format the main partition with ext4.

root@archiso~ # mkfs.ext4 /dev/sda1

main partition

To Format and initialize SWAP partition, run the following command.

root@archiso~ # mkswap /dev/sda2
root@archiso~ # swapon /dev/sda2

swap partition

Installation of Arch Base System

In order to perform an Arch Linux installation, you must mount the two partitions created on Arch Live running system to the mount point. Here we are using the /mnt as the mount point.

root@archiso~ # mount /dev/sda1 /mnt

Install Arch Linux by running the following command and then press Enter on both packages selection.

root@archiso~ # pacstrap  /mnt base base-devel

arch linux

The installation process is started.
installation process

Generate fstab file for our Arch Linux system to boot from new partitions by running the following command.

root@archiso~ # genfstab  /mnt > >  /mnt/etc/fstab

If any error occurs, open and edit fstab to boot properly.

root@archiso~ # cat /mnt/etc/fstab

fstab editing

Machine Configuration

To configure Arch Linux, move to the /mnt path and issue the /bin/bash shell interpreter, to get rid of the shell.

root@archiso~ # arch-chroot /mnt  /bin/bash

bash shell interpreter

First configure System Language and choose your preferred encoding languages from /etc/locale.gen file by running the following command.

root@archiso~ # vi /etc/locale.gen

system language
Once the locale-gen file opened, find your local language zone and enable it by removing # symbol.
locale-gen file
Then save and quit.

Now configure your system time zone by running the following command.

root@archiso~ # locale-gen

system time zoneCreate locale.conf file.

root@archiso~ # vi /etc/locale.conf

Add following line into it.

LANG=en_US.UTF-8

List all the time zone and create soft link for your sub time zone from /usr/share/zoneinfo/Continent/Main_city to /etc/localtime path.

root@archiso~ # ls /usr/share/zoneinfo/
root@archiso~ # ln -s /usr/share/zoneinfo/Asia/Kolkata   /etc/localtime

time zone

You can configure hardware clock to use UTC.

root@archiso~ # hwclock --systohc &ndash utc

hardware clock

Add password for root account by running the following command.

root@archiso~ # passwd

root account

First enable DHCP and install boot loader by running the following command.

root@archiso~ # systemctl enable dhcpcd
root@archiso~ # pacman &ndash S grub os-prober

DHCP

Run “ grub-install" command to complete the grub installation.
grub install

Exit chroot environment and unmount your partitions by running the following command.

root@archiso~ # exit
root@archiso~ # umount /mnt

Finally reboot your system to apply changes.

root@archiso~ # reboot

reboot

After your system reboots, enter the user credentials to login to Arch Linux.
system reboots

Now your machine contains a minimal installation, which is fully functional to receive and install new software packages in command line.

Tags:
jack
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Is Arch designed to be used as a server? A desktop? A workstation?

A

Arch is not designed for any particular type of use. Arch can be used both their desktops and workstations

Q

Why should a static IP be preferred over 127.0.1.1 in /etc/hosts under host configuration on ARCH Linux installation?

A

If a system has a permanent IP address, it should be used instead of 127.0.1.1.

Q

What about network configuration on ARCH Linux then?

A

Interface for ethernet and other loopback should also be configured via command line.

Q

Where you will have permanent mount points for external devices after ARCH Linux installation?

A

That file has to created via installation by genfstab /mnt >> /mnt/etc/fstab for ARCH Linux

Q

What architectures does Arch support?

A

Arch only supports the x86_64 (sometimes called amd64) architecture

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.