Removing windows and installing Arch Linux cover image

Removing windows and installing Arch Linux

Daan Geurts-Doorenbos • August 27, 2019 | Updated • September 18, 2019 14:40

linux arch linux

In the previous part you could've read which 'custom' laptop I've ordered and you can see the unboxing here so head back if you are interested.

One thing about ordering a 'custom' build laptop is that it doesn't come with a pricy pre-installed OS and that you are free to choose whatever OS you want. In the past I've used Linux distributions like CentOS, Ubuntu, Linux Mint, Arch linux for professional and personal use. One thing I like about Arch linux is that it is highly customizable and it's very lean after first install. The wiki is also fantastic, lots of information about all kinds of linux related stuff. One other thing about Arch is that you do need to configure a lot yourself but that makes you understand how an OS and your computer/hardware works. If one thing breaks you probably know what it is so you can fix it yourself of google with the right terms. For my new BTO laptop I'm going to use Arch linux.

When first booting the machine I'm straight booted into a Windows installer... Wait what? I've ordered this machine without any OS installed but apparently BTO.eu uses Windows to check if all hardware is working and setup properly but they didn't wipe my SSD after that. So first things first and I went straight into the BIOS by pressing F2 upon boot and changed the boot order to first boot an USB. In the meantime I've created, with my Mac Mini, a bootable USB with Arch linux on it like this:

$ sudo dd if=archlinux-2019.08.01-x86_64.iso of=/dev/rdisk3 bs=1m

where 'disk3' is my USB drive. This can be different on your system. So when I rebooted my machine I went into the Arch linux live environment. I will folow the installation instruction from the excellent Arch linux wiki

I used cfdisk to remove all Windows partitions and completely wipe the SSD, used efibootmgr to remove Windows Boot manager. After that removing USB and rebooting to make sure the machine is completely useless.

Put the USB back and booted again. Now I'm going to follow the installation instructions.

First steps:

Verifying boot mode by using this command:
Connect to the internet
Updating system clock
Partition disks
Formatting partitions
SSD partitions
Mounting file system
Mirrors
Installing Arch linux
Generating fstab file
Chroot into system
Setting timezone
Localization
Network configuration
Root password
Boot loader
Rebooting