Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

ArchLinux ; Installation #2 Disk Partitioning


ArchLinux ; Installation #2 Disk Partitioning (This page)
ArchLinux ; Installation #3 Initial settings during installation
uses ext4 for the file system
If you are installing on a btrfs file system, the following page summarizes the installation

1. Partitioning the disk on which Arch Linux is installed

This time, use gdisk command in UEFI mode and GPT for the partition table.
Check current disk information

In the above case, a 20 GB virtual HDD was created on VmwareWorkstion, so the SIZE of the sda is set to 20 GB.
The sda in the NAME line is the name of the device that represents the entire disk and will be partitioned to this sda.
This time, create an EFI partition and a partition for Arch Linux, but not a swap partition.
In the past, a partition was created for swap and allocated as swap, but now a "swap file" can be used without a swap partition.
A "swap file" is a method of creating a single file of any size for swap and using that area as swap, which can be created, deleted, and resized.

For GPT

・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

2. Format each partition

・Formatting the EFI System Partition

・Formatting partitions for Arch Linux
File systems that can be used with Linux include ext4 and XFS, but use the stable ext4 file system.

3. Install Arch Linux

3.1 Connect to the Internet

The files (packages) to be installed must be downloaded from the Internet, so you must first connect to the Internet on the installation system. (In most cases, if you have a wired LAN, the connection is made automatically at startup.
Connection Confirmation

3.2 Time setting
When downloading a package from the Internet, adjust the time from the Internet, as it may not be possible to download if the computer time is not correct.

3.3 Mounting partitions

・Mounting partitions for Arch Linux

・Mounting the EFI System Partition
Mount the EFI system partition to /mnt/boot where the boot loader and Linux kernel will be installed

3.4 Select Repository Server
・When using the reflector command

・To edit a mirror list
Open a mirror site for Country:Japan with the Pacman Mirrorlist Generator (https://archlinux.org/mirrorlist/) and you will find the following

##Japan
#Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = https://mirrors.cat.net/archlinux/$repo/os/$arch
#Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
#Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = https://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
#Server = https://mirror.saebasol.org/archlinux/$repo/os/$arch

Delete the # at the beginning of these and paste them at the top of /etc/pacman.d/mirrorlist

3.5 Installing packages
At a minimum, you will need a base Linux kernel, firmware, a text editor (CUI), etc.
Others are useful tools that can be installed later when needed.

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

Check the contents of the fstab file

タイトルとURLをコピーしました