Preface
Goal: Examine arch install for multiboot situation.
The last time I wrote about Arch install is in 2014 (nine years ago).
I do every single command in black TTY terminal under arch installer. But for illustration, I give it some white terminal screenshot. So my article could be easier to be read.
Reading
Nine years ago I wrote this: Arch philosophy is about knowing your system. It doesn’t give fancy installer. In fact you have to do it all manually with command line without installer. Before you step in, you have to be brave to walk with command line. And be sure you have read the manual.
The difference is, now you can have archinstall script that can guide you, and that means you can entirely skip this article.
I still prefere manual install. Because I still need to update my knowledge.
Rewrite
Nine years ago I wrote this article:
It is worth the risk. Your few days of installing Arch give you more knowledge than a year with Kali. After you get the knowledge for a while, you can install it again in just a few minutes.
Many beginners asking for guidance to install Arch. There is actualy two steps. First step is Install Vanilla Arch itself. Until you get your first root login after boot. The second step is Post Install. e.g. setup Wireless, or setup WM/DE (Desktop Environment).
If you feel that you are not ready for Arch, you can still improve your skill with other distro.
Table of Content
- Table of Content
- A: Prepare the Bootable
- B: BIOS and Windows Setting
- C: Partition Setup
- D: Wireless Connexion
- Arch :: Install Log
- 1: Changing Root
- 2: Basic Setting
- 3: Prepare System
- What is Next?
Backup
Better safe than sorry
For multiboot situtation, the longest time you need to do is not installling. But, backup.
Please prepare your journey by backuping your data first.
A: Prepare the Bootable
Flash Disk
If you are a windows user, you can use rufus
.
Linux user would simply love dd
.
Since I also use pipe to pv
,
and pipe don’t do well with sudo,
I intentionally use sudo ls
,
so the next command (dd
and pv
) already has the priviliges.
B: BIOS and Windows Setting
Yes we need to learn to coexist.
BIOS Setting
Please disable the boot secure.
Windows Setting
If you are using Windows 10 or later,
without boot secure, you need to disable bitlocker
.
C: Partition Setup
As usual we need to prepare the partition.
Planned Partition
My SSD capacity is about 500 GB, This is what I plan.
In real life situtation
We have to deal with /boot/efi
,
and also swap.
I also preserved about 74 GB empty space for Gentoo. Note that the number is rounded, and the total sum is just approximation.
Real Partition
I’m using the free Easeus to manage the partition. First I create the Docs as NTFS. Then I create empty space for swap, rot and other partition as well.
As a linux user, you can see the GPT artition structure is flat, different with MBR.
The docs is, my data partition in windows. And the works is, my data partition for daily usage in linux.
Reading
For more multiboot fun, you can read in my other article series.
D: Wireless Connexion
This is something you can try in other linux, as practice preparation, before you get into real arch linux installation.
The arch linux install comes with this good iwd
.
More about iwd can be read here:
iwd
is definitely easy to be used.
Arch :: Install Log
Let’s get into it. Boot the arch installer. And see what we’ve got.
First impression
What I feel is the boot take a little bit longer than I expect. Maybe it becuase of my notebook.
Then I found that sometimes my terminal suffocated with a lot of information. I try to reboot, then it’s gone. But sometimes it comes again, very annoying. I solve this with this two commands:
Wireless Connexion
Connecting to the internet
Yes, of course, first thing to do is,
connecting to the internet.
As I said you can use iwd
.
After connected with internet,
you can immediately use timedatectl
.
1: Changing Root
Formatting The Root Partition
I wpuld like a fresh start.
So I format the nvme0n1p71
partition with ext4.
Mount All Partition
We are going to chroot, so we need to mount all required partition.
And also the EFI part.
And finally the swap.
Note that, some tutorial mount the EFI in /mnt/boot/
.
But I choose different method.
Base Install
Now we can fill with some basic packages, required to run the system.
You are going to see packages downloaded from internet, similar to below figure:
Generate File System Configuration
And we also need to configure fstab
,
in order to chroot
.
Change Root
This is the most important part. Changing the root, from the arch installer, into your newly installed one.
I’m a fan of chroot in multiboot situation. You can also chroot, from any running linux partition. Not just arch installer from bootable flash disk, but also from different partition.
Mount
I would like to know the result of our previous genfstab
.
Since it has a lot of comment #
,
I filter using -v
grep exclusion .
The fstab format is concise,
but it doesn’t seems clear to me in narrow terminal.
so I’d better use findmnt
instead.
Text Editor
I really think that text editor can be useful.
Do this inside the chroot.
2: Basic Setting
Localtime
Localtime: Asia/Jakarta
Clock
Locale
Also uncomment your chosen locale, or just write it if you dpn’t have any text editor already.
Here I invert the grep with -v
.
Now we have required file to build by locale-gen
The system wide setting,
that actually used the locale is in the conf
file.
You can still set without text editor.
Hostname
Let’s change a bit,
such as utama
is the hostname I want.
Now we see what’s in there.
3: Prepare System
Initial Ramdisk
I understand in install process we become doer, without really understanding of what is really going on.
This will make the initramfs
as below:
If you are curious you can go further examining,
by uisng lsinitcpio
after you finish your install,
and do not forget the sudo thing.
We can do it later.
Root Password
This is also a task you don not want to forget.
If you forget, you can always chroot
.
GRUB Install
I should learn new knowledge about EFI stuff.
The command would install the grubx64.efi
or something similar.
We require the EFI boot manager, to understand the situation.
Now you can see this:
Grub Configuration
With BIOS managed boot, we do not need to worry about windows boot in the first place. This means, we can ignore os-probe while doing installation, and take care of the windows boot in GRUB later on.
Your screen would output text similar to this menu entry:
The configuration itself would looks like something below:
OS Prober
I will skip this part. My goal is succeed in booting linux.
The windows menu configuration can be configured later after boot.
Prepare Post Install.
Networking is only one thing to be rpepared for post install.
So you’d better install iwd
in the first place.
You can change to network manager later.
Or if you can also install network manager.
Reboot
That is all.
We can finally exit
your chroot.
go back to acrh installer.
Then reboot.
Check if your arch linux can boot correctly using EFI from BIOS. Also check from BIOS if your windows boot is still there, and run correctly.
What is Next 🤔?
Form Installment, we can dive into post installment.
Consider continue reading [ Arch: Post Install ].