Disk Partitioning
This part of the guide is divided into two steps:
- UEFI system
- BIOS system
Note: For this guide we assume that the disk you're installing on is named /dev/sda
.
Delete partitions
- List disks:
fdisk -l
- Find the disk you want to install Arch Linux onto
- Use fdisk on disk:
fdisk /dev/sda
- Wipe all partitions on disk:
d
- Repeat this step for all partitions
Creating partitions
UEFI Systems
If you have an UEFI system you need a ROOT and a BOOT partition.
BOOT partition
- Create the EFI/BOOT partition:
n
- Partition number: Enter
- First sector: Enter
- Last sector:
+512M
- Change partition type to EFI:
t
- Press the number corresponding to EFI
- list all types with
L
- list all types with
ROOT partition
- Partition number: Enter
- First sector: Enter
- Last sector: Enter
- Write changes to disk:
w
Make file systems
- Make BOOT file system:
mkfs.fat -F32 /dev/sda1 && fatlabel /dev/sda1 BOOT
- Make ROOT file system:
mkfs.ext4 -L ROOT /dev/sda2
BIOS Systems
If you have a BIOS system you only need a ROOT partition.
ROOT partition
- Create the ROOT partition:
n
- Partition number: Enter
- First sector: Enter
- Last sector: Enter
- Write changes to disk:
w
Make file system
- Make ROOT file system:
mkfs.ext4 -L ROOT /dev/sda1