Installation steps part 1
Verify boot mode
To check if your system is booted in UEFI or BIOS run the following
command ls /sys/firmware/efi/efivars
If the directory does not exist you will get the following output ls: cannot access '/sys/firmware/efi/efivars': No such file or directory .
It means your system is booted in BIOS or CSM
Connect to the internet
If you have wireless connectivity(like me) assuming your wifi adapter/ network
card is plugged in enter the following command. wifi menu
The following menu should pop up.
ping google.com
If you see a output such as this it means you are connected.
Update the system clock
Update the systemclock using timedatectl timedatectl set-ntp true
Partition disks *
This is the scary part. Now you will be actually changing your physical file system,
unless you are running a virtual machine then you must be fine. Partitioning disks
requires that you use the appropriate tool cfdisk, fdisk, etc(cfdisk in my case).
The commands are pretty easy to follow. Remember to not screw up and do not forget to
keep a windows bootable by your side always!!. Usually you may want to split you arch linux installtion into parts such as home, root,swap and boot
Common partition configuration
Mount point | Partition | Size |
---|---|---|
/boot |
/dev/sdaX1 | Minimum 200M |
/swap (optional) |
/dev/sdaX2 | Depends on your RAM size. |
/root |
/dev/sdaX3 | Minimum 20G |
/home |
/dev/sdaX4 | Rest of the disk |
Formatting the file systems
Take note of the partition name of your drive eg. /dev/sda4, etc.
Use the command lsblk
Now it's time to partition the disks.Boot
mkfs.ext4 /dev/sdaX1
Swap
mkswap /dev/sdaX2
swapon /dev/sdaX2
Root
mkfs.ext4 /dev/sdaX3
Home
mkfs.ext4 /dev/sdaX4
Mounting the file system
To mount the partitions on /mnt
use the following commands. First create mount points
cd /mnt
mkdir home boot
cd
Mount boot
mount /dev/sdaX1 /mnt/boot
Mount root
mount /dev/sdaX3 /mnt
Mount home
mount /dev/sdaX4 /mnt/home