Click here for "Error Codes for Commercial Air Conditioners".(Japanese Version)

ArchLinux ; Installation #4 How to install with btrfs file system

For installation with ext4 file system, please refer to the following page

1.Creating partitions

1.1 Confirmation of installation device

Check the target device with the lsblk command

This time the device is in /dev/sda from above

1.2 Creating partitions


・Create an empty partition table with the command "o"

・Create EFI system partition
"n" command to add a partition

・Create partition for Arch Linux
"n" command to add a partition

・Write partition table to disk
Use the w command

1.3 Partition Formatting

1.4 Mounting partitions

Mount /dev/sda2 on partition for Arch Linux to /mnt directory
Mount /dev/sda1 on the EFI system partition to the /mnt/boot directory to install the boot loader and Linux kernel

2.Installing Arch Linux

2.1 Installation of base system, etc.

Install base, base-devel, linux, linux-headers, linux-firmware group, btrfs utilities, and also vim as editor with the following command

2.2 Creating fstab

Describe information such as partitions to be automatically mounted at startup in the file /etc/fstab.

Check the contents of the fstab file

3.Initial setup within the installed system

To enter the installed system, use the arch-chroot command.
arch-chroot is a script for Arch Linux installation that mounts the system so that the specified path is the root "/".
However, after this, only commands in the destination ArchLinux can be used. Commands in the installation media cannot be used.
For example, to install a package, use pacman instead of pacstrap.

Enter the installed system (/mnt becomes /)

3.1 Using the File Search command

Install locate command to locate files

3.2 Timezone settings

Execute the following command to set timezone to Japan.

3.3 Time setting.

Write the current time on Linux to the motherboard's internal clock so that the time will be correct after reboot.

3.4 Set the language to be used

This time, make it English.
Delete the leading # from "#en_US.UTF-8 UTF-8" and "#ja_JP.UTF-8 UTF-8" in /etc/locale.gen
Generate the locale for each language with the locale-gen command

Create /etc/locale.conf file and specify the default locale (in this case, English)

3.5 keyboard layout settings

Specify keyboard layout as Japanese

3.6 Host Name Setting

Decide on a host name for the computer and set it up.
If the computer is to be used only within the local network, use an appropriate name (in this case, Lepard).
If you want to make it public outside the network, use FQDN.

The same hostname is also written in /etc/hosts

4. Network-related settings

On the Arch Linux installation, the network is not yet configured, so it needs to be configured separately.
In this case, we will use systemd-networkd to configure it.
However, systemd-resolved is also needed to manage DNS.

4.1 Ensure systemd-networkd and systemd-resolved are enabled at startup

4.2 Network configuration file creation

For each network, a text file must be generated and configured
Create a new file in /etc/systemd/network/ (the mynet part can be arbitrary)

can be found with the following command
#ip a

4.3 systemd-resolved configuration

systemd-resolved is a service that manages DNS. The IP address of the DNS server must be entered in /etc/resolv.conf, but this file is not automatically generated when systemd-resolved is used.
Instead, it is necessary to link the file in /run/systemd/resolve/ with the following command, which is not created during the installation phase, and should be executed after installation and Arch Linux startup.

Do not implement at this stage.

5. Password Setting

Set a password for root (administrator privileges)
We first created a simple password, but now we will set a complex password as the official password.

6. Boot Loader Installation

This time, install GRUB, which supports both BIOS/UEFI.

6.1 Microcode Installation

Install the microcode package intel-ucode or amd-ucode in advance, so that GRUB will automatically configure the process during grub-mkconfig (intel-ucode, in this case).

6.2 Install GRUB in a UEFI-GPT 64-bit environment

The name of archlinux_grub can be arbitrary.
If "No error reported." is displayed at the end, success.

※Copying .efi
Some UEFI firmware may require a default efi file named bootx64.efi in /boot/EFI/boot, so copy the *.efi file for GRUB and create it.

6.3 Generating grub.cfg

Automatic generation of configuration files with startup information, etc.

7. Reboot

Installation is complete, reboot.

After rebooting
Log in as root because you have not created a general user again
Use the password created above.

Continue with the initial setup in the installed ArchLinux boot environment.

Copied title and URL