- Press
nto create a new partition. - Choose
pfor a primary partition. - Enter
1for the partition number. - Press
Enterto accept the default starting sector. - Enter
+500Mfor the size. - Press
tto change the partition type. - Enter
83for Linux filesystem (orbfor W95 FAT32 if using BIOS boot).
- Press
nto create a new partition. - Choose
pfor a primary partition. - Enter
2for the partition number. - Press
Enterto accept the default starting sector. - Enter
+500Mfor the size. - Press
tto change the partition type. - Enter
effor EFI System.
- Press
nto create a new partition. - Choose
pfor a primary partition. - Enter
3for the partition number. - Press
Enterto accept the default starting sector. - Enter
+8Gfor the size. - Press
tto change the partition type. - Enter
82for Linux swap.
- Press
nto create a new partition. - Choose
pfor a primary partition. - Enter
4for the partition number. - Press
Enterto accept the default starting sector. - Press
Enteragain to use the remaining space.
- Press
wto write the changes and exitfdisk.
mkfs.ext4 /dev/sdb1
mkfs.fat -F32 /dev/sdb2
mkfs.ext4 /dev/sdb4
mkswap /dev/sdb3
mount /dev/sdb4 /mnt
mkdir /mnt/boot
mount /dev/sdb1 /mnt/boot
mkdir /mnt/boot/efi
mount /dev/sdb2 /mnt/boot/efi
swapon /dev/sdb3
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
useradd -m -G wheel -s /bin/bash yourname
passwd newusername
visudo
and enable or copy
%wheel ALL=(ALL) ALL
pacman -S plasma-desktop sddm vim nano networkmanager git github-cli ufw
pacman -S grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot