Arch Linux Installation
In this post we will try to understand , how we could install archlinux 10 on Host machine or Virtulization setup. Archlinux has some different kind of installation as compared of other Linux/Unix machine like CentOS/RHEL/Fedora/Ubuntu operating system. So we will see HowTo install Arch Linux latest version 10.
For same we need to download archlinux iso, as per our requirement 32/64 bit. In my scenrio i am using 64 bit iso for installation. Further we have to burn iso in DVD/CD for Host machine and in case of virtulization setup, we can also used iso file, that could directly used for installation purpose.
Booting from Arch Linux boot media
Once we boot machine with Archlinux boot media, we came across boot screen mentioned below.
For installation purpose we just need to select “Boot Arch Linux” and press enter. It will load vmlinuz file and other required file for boot, further provide command prompt for further steps of installation.
Partition the disks
First we need to find out available disk for installation with linux command fdisk. You can use same fdisk command for creation of Disk partition or can use more user friendly command cfdisk, In cfdisk command we should select dos label type. In my case I only created two partitions one is for Swap and another for Linux file-system. Below are fdisk output after creating partition.
Format Disk and mount Partition
Now we need to create make file-system as per our requirement, like in my case i am using Linux swap on /dev/sda1 and File-system on /dev/sda2. In case of swap i am also using it during installation as well for same we can should swapon.
mkfs.ext4 /dev/sda2 mkswap /dev/sda1 swapon /dev/sda1 mount /dev/sda2 /mnt
Installation of base package group
In last command I mount /dev/sda2 on /mnt, so that i would start installing operating system (Archlinux) base group packages through below commands.
#pacstrap /mnt base
It’s depend upon on your internet speed, that how much time it takes to install base group packages in /mnt.
Further we should write fstab in root install File-system.
# genfstab -U /mnt >> /mnt/etc/fstab
Now we should do chroot to get root file-system to edit things properly.
LOcal system configuration
Now we could work in new system as we login on its command prompt.we could do multiple of things over, like in my case i set zone-info, system Hostname, root password etc.
#ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime #echo "archlinux" >> /etc/hostname # passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Now we need to install boot-loader, we need to install boot-loader on disk not on partition, like in my case it is /dev/sda
Now we need to creat a new initramfs like in below command.
# mkinitcpio -p linux
Now we need to exit from chroot setup, umount /mnt and reboot machine. This is all for installation of Archlinux machine.
# exit # umount /mnt # reboot
To make bit more clear we have one video for same