全新安装 Arch Linux 教程

分类:Linux 评论: 0

Arch Linux 与常见的 Linux 发行版略有不同,不提供 GUI 安装界面,全部的安装过程需要 CLI 进行操作,因此门槛相较之下较高。

安装

本文使用 VMware Fusion 进行演示,与实际安装流程一致,主要区别在于实际安装时需要制作 U盘 等安装介质。

实际上常见发行版的 GUI 安装流程与手动操作一致。

制作镜像

从官网下载 ISO 镜像后,需要制作为引导盘才可使用。

# dd if=./archlinux-2019.06.01-x86_64.img of=/dev/fd0 bs=1440k 
$ dd if=./archlinux-2019.06.01-x86_64.img of=/dev/fd0 bs=1440k 

一、UltraISO
二、Rufus (推荐)

磁盘分区

使用镜像引导启动后启动的就是 Arch 的系统,只不过不是从磁盘引导的,类似于 Ubuntu 的试用模式。

注意:使用 BIOS 和 UEFI 引导安装步骤略有不同,新主板一般都支持完善的 UEFI,关于 UEFI 详见维基百科。简而言之的优势在于对硬件兼容性更好,性能更优异,自定义化强。

本文以虚拟机方式模拟安装流程,并以 UEFI 方式引导。

以 UEFI 方式引导后可见的引导选项一般为 Arch Linux archiso x86_64 UEFI CD

启动后可见

Arch Linux 5.1.5-arch1-2-ARCH (tty1)

archiso login: root (automatic login)

root@archiso ~ # _

这里可以正常执行常用命令进行系统安装,先检查磁盘分区情况。

root@archiso ~ # fdisk -l
Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Disk model: VMware Virtual S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop0: 500.8 MiB, 525082624 bytes, 1025552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

使用命令进行分区操作此处较为省略,详见 fdisk 命令使用。

创建磁盘分区表

如果为 BIOS/MBR 方式引导,此步骤无需操作。

root@archiso ~ # fdisk /dev/sda 

Welcome to fdisk (util-linux 2.33.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x70a9ff23.

Command (m for help): g
Created a new GPT disklabel (GUID: 6FE0DFC8-BBAF-6F4E-9ECF-BE54AFE3DD00).

Command (m for help): n
Partition number (1-128, default 1): 
First sector (2048-16777182, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-16777182, default 16777182): +512M

Created a new partition 1 of type 'Linux filesystem' and of size 512 MiB.

Command (m for help): n
Partition number (2-128, default 2): 
First sector (1050624-16777182, default 1050624): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1050624-16777182, default 16777182): 

Created a new partition 2 of type 'Linux filesystem' and of size 7.5 GiB.

Command (m for help): t
Partition number (1,2, default 2): 1
Partition type (type L to list all types): l
  1 EFI System                     C12A7328-F81F-11D2-BA4B-00A0C93EC93B
  2 MBR partition scheme           024DEE41-33E7-11D3-9D69-0008C781F39F
  3 Intel Fast Flash               D3BFE2DE-3DAF-11DF-BA40-E3A556D89593
  4 BIOS boot                      21686148-6449-6E6F-744E-656564454649
  5 Sony boot partition            F4019732-066E-4E12-8273-346C5641494F
  6 Lenovo boot partition          BFBFAFE7-A34F-448A-9A5B-6213EB736C22
  7 PowerPC PReP boot              9E1A2D38-C612-4316-AA26-8B49521E5A8B
  8 ONIE boot                      7412F7D5-A156-4B13-81DC-867174929325
  9 ONIE config                    D4E6E2CD-4469-46F3-B5CB-1BFF57AFC149
 10 Microsoft reserved             E3C9E316-0B5C-4DB8-817D-F92DF00215AE
 11 Microsoft basic data           EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
 12 Microsoft LDM metadata         5808C8AA-7E8F-42E0-85D2-E1E90434CFB3
 13 Microsoft LDM data             AF9B60A0-1431-4F62-BC68-3311714A69AD
 14 Windows recovery environment   DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
 15 IBM General Parallel Fs        37AFFC90-EF7D-4E96-91C3-2D7AE055B174
 16 Microsoft Storage Spaces       E75CAF8F-F680-4CEE-AFA3-B001E56EFC2D
 17 HP-UX data                     75894C1E-3AEB-11D3-B7C1-7B03A0000000
 18 HP-UX service                  E2A1E728-32E3-11D6-A682-7B03A0000000
 19 Linux swap                     0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
 20 Linux filesystem               0FC63DAF-8483-4772-8E79-3D69D8477DE4
 21 Linux server data              3B8F8425-20E0-4F3B-907F-1A25A76F98E8
 22 Linux root (x86)               44479540-F297-41B2-9AF7-D131D5F0458A
 23 Linux root (ARM)               69DAD710-2CE4-4E3C-B16C-21A1D49ABED3
 24 Linux root (x86-64)            4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709
 25 Linux root (ARM-64)            B921B045-1DF0-41C3-AF44-4C6F280D3FAE
 26 Linux root  (IA-64)             993D8D3D-F80E-4225-855A-9DAF8ED7EA97
 27 Linux reserved                 8DA63339-0007-60C0-C436-083AC8230908
 28 Linux home                     933AC7E1-2EB4-4F13-B844-0E14E2AEF915
 29 Linux RAID                     A19D880F-05FC-4D3B-A006-743F0F84911E
 30 Linux extended boot            BC13C2FF-59E6-4262-A352-B275FD6F7172
 31 Linux LVM                      E6D6D379-F507-44C2-A23C-238F2A3DF928
 32 FreeBSD data                   516E7CB4-6ECF-11D6-8FF8-00022D09712B
 33 FreeBSD boot                   83BD6B9D-7F41-11DC-BE0B-001560B84F0F
 34 FreeBSD swap                   516E7CB5-6ECF-11D6-8FF8-00022D09712B
 35 FreeBSD UFS                    516E7CB6-6ECF-11D6-8FF8-00022D09712B
 36 FreeBSD ZFS                    516E7CBA-6ECF-11D6-8FF8-00022D09712B
 37 FreeBSD Vinum                  516E7CB8-6ECF-11D6-8FF8-00022D09712B
 38 Apple HFS/HFS+                 48465300-0000-11AA-AA11-00306543ECAC
 39 Apple UFS                      55465300-0000-11AA-AA11-00306543ECAC
 40 Apple RAID                     52414944-0000-11AA-AA11-00306543ECAC
 41 Apple RAID offline             52414944-5F4F-11AA-AA11-00306543ECAC
 42 Apple boot                     426F6F74-0000-11AA-AA11-00306543ECAC
 43 Apple label                    4C616265-6C00-11AA-AA11-00306543ECAC
 44 Apple TV recovery              5265636F-7665-11AA-AA11-00306543ECAC
 45 Apple Core storage             53746F72-6167-11AA-AA11-00306543ECAC
 46 Solaris boot                   6A82CB45-1DD2-11B2-99A6-080020736631
 47 Solaris root                   6A85CF4D-1DD2-11B2-99A6-080020736631


Partition type (type L to list all types): 1

Changed type of partition 'Linux filesystem' to 'EFI System'.

Command (m for help): p
Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Disk model: VMware Virtual S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6FE0DFC8-BBAF-6F4E-9ECF-BE54AFE3DD00

Device       Start      End  Sectors  Size Type
/dev/sda1     2048  1050623  1048576  512M EFI System
/dev/sda2  1050624 16777182 15726559  7.5G Linux filesystem

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

以上步骤创建了一个 512M 的引导分区,剩余磁盘空间创建了一个根分区。

格式化磁盘

将 EFI 引导分区格式化为 FAT32 (只支持此种格式)根分区格式化为 ext4(其他亦可)。

root@archiso ~ # mkfs.fat -F32 /dev/sda1
mkfs.fat 4.1 (2017-01-24)
root@archiso ~ # mkfs.ext4 /dev/sda2
mke2fs 1.45.2 (27-May-2019)
Creating filesystem with 1965819 4k blocks and 491520 inodes
Filesystem UUID: a69e7513-a45b-44c2-b787-b5a88f2c4ab9
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

挂载分区

将创建好的磁盘挂载到当前系统上,准备进行安装系统。

root@archiso ~ # mount /dev/sda2 /mnt

如果是UEFI/GPT引导方式,执行以下命令创建 /boot 文件夹并将引导分区挂载到上面。BIOS/MBR 引导方式无需进行这步。

root@archiso ~ # cd /mnt 
root@archiso /mnt # mkdir boot
root@archiso /mnt # mount /dev/sda1 /mnt/boot 

选择安装源

将距离机器最近的节点放置在文件配置文件最上端即可,即可优先选择。

root@archiso ~ # cat /etc/pacman.d/mirrorlist 
##
## Arch Linux repository mirrorlist
## Filtered by mirror score from mirror status page
## Generated on 2019-06-01
##

## Hong Kong
Server = http://mirror.xtom.com.hk/archlinux/$repo/os/$arch
## United States
Server = http://archlinux.surlyjake.com/archlinux/$repo/os/$arch
## Belarus
Server = http://mirror.datacenter.by/pub/archlinux/$repo/os/$arch
## South Africa
Server = http://archlinux.za.mirror.allworldit.com/archlinux/$repo/os/$arch
## Croatia
Server = http://archlinux.iskon.hr/$repo/os/$arch
## Poland
Server = http://ftp.vectranet.pl/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.netcologne.de/archlinux/$repo/os/$arch
## Singapore
Server = http://mirror.0x.sg/archlinux/$repo/os/$arch
## United States
Server = http://mirror.umd.edu/archlinux/$repo/os/$arch
## Canada
Server = http://mirror.sergal.org/archlinux/$repo/os/$arch
## Macedonia
Server = http://mirror.onevip.mk/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.ocf.berkeley.edu/archlinux/$repo/os/$arch
## Germany
Server = http://mirrors.n-ix.net/archlinux/$repo/os/$arch
## Ecuador
Server = http://mirror.cedia.org.ec/archlinux/$repo/os/$arch
## Brazil
Server = http://archlinux.pop-es.rnp.br/$repo/os/$arch
## United States
Server = http://mirrors.rutgers.edu/archlinux/$repo/os/$arch
## Greece
Server = http://foss.aueb.gr/mirrors/linux/archlinux/$repo/os/$arch
## Macedonia
Server = http://arch.softver.org.mk/archlinux/$repo/os/$arch
## Brazil
Server = http://mirror.ufam.edu.br/archlinux/$repo/os/$arch
## France
Server = http://mirror.lastmikoi.net/archlinux/$repo/os/$arch
## Canada
Server = http://mirror.cedille.club/archlinux/$repo/os/$arch
## France
Server = http://mirrors.arnoldthebat.co.uk/archlinux/$repo/os/$arch
## Romania
Server = http://mirrors.nxthost.com/archlinux/$repo/os/$arch
## Spain
Server = http://osl.ugr.es/archlinux/$repo/os/$arch
## Russia
Server = http://mirror.rol.ru/archlinux/$repo/os/$arch
## Netherlands
Server = http://archmirror.lavatech.top/$repo/os/$arch
## United States
Server = http://mirror.es.its.nyu.edu/archlinux/$repo/os/$arch
## Turkey
Server = http://mirror.veriteknik.net.tr/archlinux/$repo/os/$arch
## Russia
Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
## France
Server = http://archlinux.mirrors.benatherton.com/$repo/os/$arch
## Paraguay
Server = http://archlinux.mirror.py/archlinux/$repo/os/$arch
## Brazil
Server = http://br.mirror.archlinux-br.org/$repo/os/$arch
## Hungary
Server = http://ftp.gtx.hu/archlinux/$repo/os/$arch
## China
Server = http://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
## Sweden
Server = http://archlinux.dynamict.se/$repo/os/$arch
## United Kingdom
Server = http://arch.serverspace.co.uk/arch/$repo/os/$arch
## Canada
Server = http://muug.ca/mirror/archlinux/$repo/os/$arch
## United Kingdom
Server = http://mirror.bytemark.co.uk/archlinux/$repo/os/$arch
## Ecuador
Server = http://mirror.uta.edu.ec/archlinux/$repo/os/$arch
## Portugal
Server = http://glua.ua.pt/pub/archlinux/$repo/os/$arch
## Ukraine
Server = http://mirrors.nix.org.ua/linux/archlinux/$repo/os/$arch
## United States
Server = http://repo.ialab.dsu.edu/archlinux/$repo/os/$arch
## Serbia
Server = http://mirror.pmf.kg.ac.rs/archlinux/$repo/os/$arch
## United States
Server = http://mirror.math.princeton.edu/pub/archlinux/$repo/os/$arch
## Iran
Server = http://repo.sadjad.ac.ir/arch/$repo/os/$arch
## Chile
Server = http://mirror.ufro.cl/archlinux/$repo/os/$arch
## Spain
Server = http://mirror.librelabucm.org/archlinux/$repo/os/$arch
## France
Server = http://mirrors.celianvdb.fr/archlinux/$repo/os/$arch
## Israel
Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/$arch
## China
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
## Czechia
Server = http://ftp.linux.cz/pub/linux/arch/$repo/os/$arch
## France
Server = http://mirror.oldsql.cc/archlinux/$repo/os/$arch
## Russia
Server = http://mirror.truenetwork.ru/archlinux/$repo/os/$arch
## United States
Server = http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/$arch
## United States
Server = http://reflector.luehm.com/arch/$repo/os/$arch
## United Kingdom
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
## Germany
Server = http://packages.oth-regensburg.de/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/$arch
## Brazil
Server = http://pet.inf.ufsc.br/mirrors/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/$arch
## Netherlands
Server = http://archlinux.mirror.wearetriple.com/$repo/os/$arch
## Netherlands
Server = http://mirror.ams1.nl.leaseweb.net/archlinux/$repo/os/$arch
## United States
Server = http://arch.mirrors.pair.com/$repo/os/$arch
## Germany
Server = http://mirror.thomaskilian.net/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
## France
Server = http://ftp.u-strasbg.fr/linux/distributions/archlinux/$repo/os/$arch
## South Africa
Server = http://za.mirror.archlinux-br.org/$repo/os/$arch
## United States
Server = http://mirror.dc02.hackingand.coffee/arch/$repo/os/$arch
## New Caledonia
Server = http://archlinux.nautile.nc/archlinux/$repo/os/$arch
## France
Server = http://mirror.cyberbits.eu/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.23media.com/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.orbit-os.com/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.gigenet.com/archlinux/$repo/os/$arch
## Netherlands
Server = http://ftp.snt.utwente.nl/pub/os/linux/archlinux/$repo/os/$arch
## Norway
Server = http://mirror.neuf.no/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.sonic.net/archlinux/$repo/os/$arch
## Czechia
Server = http://mirrors.nic.cz/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.ubrco.de/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.liquidweb.com/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.gwdg.de/pub/linux/archlinux/$repo/os/$arch
## France
Server = http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch
## Germany
Server = http://arch.eckner.net/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.acm.wpi.edu/archlinux/$repo/os/$arch
## Germany
Server = http://archlinux.honkgong.info/$repo/os/$arch
## United States
Server = http://mirrors.rit.edu/archlinux/$repo/os/$arch
## Sweden
Server = http://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch
## Greece
Server = http://ftp.ntua.gr/pub/linux/archlinux/$repo/os/$arch
## France
Server = http://mir.archlinux.fr/$repo/os/$arch
## France
Server = http://mirror.archlinux.ikoula.com/archlinux/$repo/os/$arch
## United States
Server = http://mirror.vtti.vt.edu/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
## France
Server = http://archlinux.de-labrusse.fr/$repo/os/$arch
## Germany
Server = http://archlinux.thaller.ws/$repo/os/$arch
## Germany
Server = http://mirror.united-gameserver.de/archlinux/$repo/os/$arch
## Belarus
Server = http://ftp.byfly.by/pub/archlinux/$repo/os/$arch
## Kazakhstan
Server = http://mirror.ps.kz/archlinux/$repo/os/$arch
## Hong Kong
Server = http://mirror-hk.koddos.net/archlinux/$repo/os/$arch
## Romania
Server = http://mirrors.pidginhost.com/arch/$repo/os/$arch
## Germany
Server = http://linux.rz.rub.de/archlinux/$repo/os/$arch
## France
Server = http://arch.nimukaito.net/$repo/os/$arch
## Switzerland
Server = http://mirror.puzzle.ch/archlinux/$repo/os/$arch
## Czechia
Server = http://mirror.dkm.cz/archlinux/$repo/os/$arch
## Colombia
Server = http://mirror.edatel.net.co/archlinux/$repo/os/$arch
## Lithuania
Server = http://mirrors.atviras.lt/archlinux/$repo/os/$arch
## Australia
Server = http://archlinux.mirror.digitalpacific.com.au/$repo/os/$arch
## Italy
Server = http://archlinux.mirror.garr.it/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.selfnet.de/archlinux/$repo/os/$arch
## Greece
Server = http://mirrors.myaegean.gr/linux/archlinux/$repo/os/$arch
## Switzerland
Server = http://pkg.adfinis-sygroup.ch/archlinux/$repo/os/$arch
## Kenya
Server = http://archlinux.mirror.liquidtelecom.com/$repo/os/$arch
## Iceland
Server = http://mirror.system.is/arch/$repo/os/$arch
## Russia
Server = http://archlinux.zepto.cloud/$repo/os/$arch
## Belgium
Server = http://archlinux.mirror.kangaroot.net/$repo/os/$arch
## Sweden
Server = http://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch
## Australia
Server = http://ftp.swin.edu.au/archlinux/$repo/os/$arch
## Colombia
Server = http://mirror.upb.edu.co/archlinux/$repo/os/$arch
## Netherlands
Server = http://mirror.i3d.net/pub/archlinux/$repo/os/$arch
## United States
Server = http://mirror.kaminski.io/archlinux/$repo/os/$arch
## Serbia
Server = http://arch.petarmaric.com/$repo/os/$arch
## Ecuador
Server = http://mirror.espoch.edu.ec/archlinux/$repo/os/$arch
## Thailand
Server = http://mirror.kku.ac.th/archlinux/$repo/os/$arch
## Norway
Server = http://archlinux.uib.no/$repo/os/$arch
## Bulgaria
Server = http://mirrors.netix.net/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.aggregate.org/archlinux/$repo/os/$arch
## Netherlands
Server = http://ftp.nluug.nl/os/Linux/distr/archlinux/$repo/os/$arch
## Slovenia
Server = http://archimonde.ts.si/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.fra10.de.leaseweb.net/archlinux/$repo/os/$arch
## Brazil
Server = http://archlinux.c3sl.ufpr.br/$repo/os/$arch
## New Zealand
Server = http://mirror.smith.geek.nz/archlinux/$repo/os/$arch
## South Korea
Server = http://mirror.premi.st/archlinux/$repo/os/$arch
## Hungary
Server = http://quantum-mirror.hu/mirrors/pub/archlinux/$repo/os/$arch
## Austria
Server = http://mirror.easyname.at/archlinux/$repo/os/$arch
## United States
Server = http://ca.us.mirror.archlinux-br.org/$repo/os/$arch
## Australia
Server = http://archlinux.melbourneitmirror.net/$repo/os/$arch
## Austria
Server = http://mirror.digitalnova.at/archlinux/$repo/os/$arch
## Taiwan
Server = http://shadow.ind.ntou.edu.tw/archlinux/$repo/os/$arch
## Canada
Server = http://archlinux.mirror.colo-serv.net/$repo/os/$arch
## China
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
## Worldwide
Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch
## Poland
Server = http://arch.midov.pl/arch/$repo/os/$arch
## United Kingdom
Server = http://archlinux.mirrors.uk2.net/$repo/os/$arch
## Belgium
Server = http://archlinux.cu.be/$repo/os/$arch
## Romania
Server = http://mirrors.m247.ro/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.fau.de/archlinux/$repo/os/$arch
## France
Server = http://mirror.ibcp.fr/pub/archlinux/$repo/os/$arch
## United States
Server = http://mirror.dal10.us.leaseweb.net/archlinux/$repo/os/$arch
## Turkey
Server = http://ftp.linux.org.tr/archlinux/$repo/os/$arch
## Poland
Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
## Germany
Server = http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/$arch
## Worldwide
Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch
## Japan
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
## Germany
Server = http://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
## Sweden
Server = http://ftp.lysator.liu.se/pub/archlinux/$repo/os/$arch
## Bosnia and Herzegovina
Server = http://archlinux.mirror.ba/$repo/os/$arch
## Chile
Server = http://mirror.archlinux.cl/$repo/os/$arch
## Netherlands
Server = http://mirror.neostrada.nl/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.xtom.com/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.f4st.host/archlinux/$repo/os/$arch
## Norway
Server = http://mirror.homelab.no/archlinux/$repo/os/$arch
## Spain
Server = http://ftp.rediris.es/mirror/archlinux/$repo/os/$arch
## Denmark
Server = http://mirror.one.com/archlinux/$repo/os/$arch
## United States
Server = http://mirror.cc.columbia.edu/pub/linux/archlinux/$repo/os/$arch
## United Kingdom
Server = http://mirrors.manchester.m247.com/arch-linux/$repo/os/$arch
## Luxembourg
Server = http://archlinux.mirror.root.lu/$repo/os/$arch
## Russia
Server = http://mirror.aur.rocks/$repo/os/$arch
## Czechia
Server = http://ftp.fi.muni.cz/pub/linux/arch/$repo/os/$arch
## Norway
Server = http://mirror.archlinux.no/$repo/os/$arch
## Bulgaria
Server = http://mirrors.uni-plovdiv.net/archlinux/$repo/os/$arch
## South Africa
Server = http://mirror.is.co.za/mirror/archlinux.org/$repo/os/$arch
## Finland
Server = http://mirror.pseudoform.org/$repo/os/$arch
## Germany
Server = http://archlinux.mirror.iphh.net/$repo/os/$arch
## Canada
Server = http://archlinux.olanfa.rocks/$repo/os/$arch
## United Kingdom
Server = http://mirrors.ukfast.co.uk/sites/archlinux.org/$repo/os/$arch
## New Zealand
Server = http://mirror.fsmg.org.nz/archlinux/$repo/os/$arch
## United States
Server = http://www.gtlib.gatech.edu/pub/archlinux/$repo/os/$arch
## Bangladesh
Server = http://mirror.xeonbd.com/archlinux/$repo/os/$arch
## Slovakia
Server = http://tux.rainside.sk/archlinux/$repo/os/$arch
## Greece
Server = http://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/$arch
## Germany
Server = http://arch.jensgutermuth.de/$repo/os/$arch
## Ukraine
Server = http://mirror.mirohost.net/archlinux/$repo/os/$arch
## Taiwan
Server = http://archlinux.cs.nctu.edu.tw/$repo/os/$arch
## China
Server = http://mirrors.zju.edu.cn/archlinux/$repo/os/$arch
## Japan
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
## Czechia
Server = http://gluttony.sin.cvut.cz/arch/$repo/os/$arch
## Netherlands
Server = http://mirror-archlinux.webruimtehosting.nl/$repo/os/$arch
## Finland
Server = http://arch.mirror.far.fi/$repo/os/$arch
## United States
Server = http://arlm.tyzoid.com/$repo/os/$arch
## United Kingdom
Server = http://mirror.netweaver.uk/archlinux/$repo/os/$arch
## Greece
Server = http://ftp.otenet.gr/linux/archlinux/$repo/os/$arch
## Brazil
Server = http://mirror.ufscar.br/archlinux/$repo/os/$arch
## Philippines
Server = http://mirror.rise.ph/archlinux/$repo/os/$arch
## United States
Server = http://mirror.stephen304.com/archlinux/$repo/os/$arch
## United States
Server = http://mirror.lty.me/archlinux/$repo/os/$arch
## Australia
Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
## Georgia
Server = http://archlinux.grena.ge/$repo/os/$arch
## United States
Server = http://il.us.mirror.archlinux-br.org/$repo/os/$arch
## Slovakia
Server = http://mirror.lnx.sk/pub/linux/archlinux/$repo/os/$arch
## South Korea
Server = http://ftp.harukasan.org/archlinux/$repo/os/$arch
## New Caledonia
Server = http://mirror.lagoon.nc/pub/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.metalgamer.eu/archlinux/$repo/os/$arch
## Denmark
Server = http://mirrors.dotsrc.org/archlinux/$repo/os/$arch
## Brazil
Server = http://linorg.usp.br/archlinux/$repo/os/$arch
## United States
Server = http://mirror.siena.edu/archlinux/$repo/os/$arch
## Romania
Server = http://mirrors.nav.ro/archlinux/$repo/os/$arch
## Australia
Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
## Ireland
Server = http://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/$arch
## Romania
Server = http://archlinux.mirrors.linux.ro/$repo/os/$arch
## Brazil
Server = http://www.caco.ic.unicamp.br/archlinux/$repo/os/$arch
## Taiwan
Server = http://ftp.yzu.edu.tw/Linux/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.wtnet.de/arch/$repo/os/$arch
## France
Server = http://archlinux.mailtunnel.eu/$repo/os/$arch
## Czechia
Server = http://mirror.vpsfree.cz/archlinux/$repo/os/$arch
## Japan
Server = http://mirrors.cat.net/archlinux/$repo/os/$arch
## Belgium
Server = http://mirror.adct.be/arch/$repo/os/$arch
## Germany
Server = http://artfiles.org/archlinux.org/$repo/os/$arch
## Austria
Server = http://mirror.reisenbauer.ee/archlinux/$repo/os/$arch
## Canada
Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.uni-bayreuth.de/linux/archlinux/$repo/os/$arch
## United States
Server = http://distro.ibiblio.org/archlinux/$repo/os/$arch
## South Korea
Server = http://ftp.lanet.kr/pub/archlinux/$repo/os/$arch
## France
Server = http://mirrors.standaloneinstaller.com/archlinux/$repo/os/$arch
## United States
Server = http://mirror.cs.pitt.edu/archlinux/$repo/os/$arch
## United States
Server = http://arch.mirror.square-r00t.net/$repo/os/$arch
## France
Server = http://archlinux.polymorf.fr/$repo/os/$arch
## Singapore
Server = http://mirror.nus.edu.sg/archlinux/$repo/os/$arch
## Ukraine
Server = http://archlinux.ip-connect.vn.ua/$repo/os/$arch
## Thailand
Server = http://mirror2.totbb.net/archlinux/$repo/os/$arch
## Macedonia
Server = http://mirror.t-home.mk/archlinux/$repo/os/$arch
## Taiwan
Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
## United States
Server = http://mirror.metrocast.net/archlinux/$repo/os/$arch
## Netherlands
Server = http://arch.nixlab.pl/$repo/os/$arch
## Germany
Server = http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/$arch
## China
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
## Netherlands
Server = http://mirror.koddos.net/archlinux/$repo/os/$arch
## United States
Server = http://arch.mirror.constant.com/$repo/os/$arch
## China
Server = http://mirror.lzu.edu.cn/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.uni-hannover.de/archlinux/$repo/os/$arch
## India
Server = http://mirror.cse.iitk.ac.in/archlinux/$repo/os/$arch
## Czechia
Server = http://ftp.sh.cvut.cz/arch/$repo/os/$arch
## Latvia
Server = http://archlinux.koyanet.lv/archlinux/$repo/os/$arch
## United Kingdom
Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/$arch
## Bulgaria
Server = http://mirror.host.ag/archlinux/$repo/os/$arch
## Hong Kong
Server = http://mirrors.kurnode.com/archlinux/$repo/os/$arch
## United States
Server = http://repo.miserver.it.umich.edu/archlinux/$repo/os/$arch
## Canada
Server = http://archlinux.mirror.rafal.ca/$repo/os/$arch
## Germany
Server = http://www.gutscheindrache.com/mirror/archlinux/$repo/os/$arch
## Indonesia
Server = http://suro.ubaya.ac.id/archlinux/$repo/os/$arch
## Portugal
Server = http://ftp.rnl.tecnico.ulisboa.pt/pub/archlinux/$repo/os/$arch
## Hungary
Server = http://archmirror.hbit.sztaki.hu/archlinux/$repo/os/$arch
## Germany
Server = http://mirrors.niyawe.de/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.cat.pdx.edu/archlinux/$repo/os/$arch
## Vietnam
Server = http://f.archlinuxvn.org/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.advancedhosters.com/archlinux/$repo/os/$arch
## France
Server = http://archlinux.vi-di.fr/$repo/os/$arch
## Singapore
Server = http://mirror.aktkn.sg/archlinux/$repo/os/$arch
## Poland
Server = http://mirror.onet.pl/pub/mirrors/archlinux/$repo/os/$arch
## United States
Server = http://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch
## Netherlands
Server = http://archlinux.mirror.pcextreme.nl/$repo/os/$arch
## Hungary
Server = http://ftp.energia.mta.hu/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
## United States
Server = http://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
## South Korea
Server = http://ftp.kaist.ac.kr/ArchLinux/$repo/os/$arch
## France
Server = http://mirrors.phx.ms/arch/$repo/os/$arch
## Iran
Server = http://mirrors.mirjamali.ir/archlinux/$repo/os/$arch
## Colombia
Server = http://mirrors.udenar.edu.co/archlinux/$repo/os/$arch
## Italy
Server = http://mirrors.prometeus.net/archlinux/$repo/os/$arch
## Germany
Server = http://ftp.wrz.de/pub/archlinux/$repo/os/$arch
## United States
Server = http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch
## Indonesia
Server = http://mirror.poliwangi.ac.id/archlinux/$repo/os/$arch
## United States
Server = http://mirrors.xmission.com/archlinux/$repo/os/$arch
## Canada
Server = http://mirror.its.dal.ca/archlinux/$repo/os/$arch
## Germany
Server = http://mirror.checkdomain.de/archlinux/$repo/os/$arch

安装系统

root@archiso ~ # pacstrap /mnt base base-devel

小贴士:选择最近的安装源可以加速安装过程,否则可能等待很久。

以下为安装详细流程(可忽略)

==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 core                     133.7 KiB   238K/s 00:01 [######################] 100%
 extra                   1636.0 KiB  2.18M/s 00:01 [######################] 100%
 community                  4.8 MiB  10.8M/s 00:00 [######################] 100%
:: There are 50 members in group base:
:: Repository core
   1) bash  2) bzip2  3) coreutils  4) cryptsetup  5) device-mapper  6) dhcpcd
   7) diffutils  8) e2fsprogs  9) file  10) filesystem  11) findutils  12) gawk
   13) gcc-libs  14) gettext  15) glibc  16) grep  17) gzip  18) inetutils
   19) iproute2  20) iputils  21) jfsutils  22) less  23) licenses  24) linux
   25) linux-firmware  26) logrotate  27) lvm2  28) man-db  29) man-pages
   30) mdadm  31) nano  32) netctl  33) pacman  34) pciutils  35) perl
   36) procps-ng  37) psmisc  38) reiserfsprogs  39) s-nail  40) sed
   41) shadow  42) sysfsutils  43) systemd-sysvcompat  44) tar  45) texinfo
   46) usbutils  47) util-linux  48) vi  49) which  50) xfsprogs

Enter a selection (default=all): 
:: There are 26 members in group base-devel:
:: Repository core
   1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file
   7) findutils  8) flex  9) gawk  10) gcc  11) gettext  12) grep  13) groff
   14) gzip  15) libtool  16) m4  17) make  18) pacman  19) patch  20) pkgconf
   21) sed  22) sudo  23) systemd  24) texinfo  25) util-linux  26) which

Enter a selection (default=all): 
warning: skipping target: file
warning: skipping target: findutils
warning: skipping target: gawk
warning: skipping target: gettext
warning: skipping target: grep
warning: skipping target: gzip
warning: skipping target: pacman
warning: skipping target: sed
warning: skipping target: texinfo
warning: skipping target: util-linux
warning: skipping target: which
resolving dependencies...
:: There are 2 providers available for resolvconf:
:: Repository core
   1) openresolv  2) systemd-resolvconf

Enter a number (default=1): 
looking for conflicting packages...

Packages (155) acl-2.2.53-1  archlinux-keyring-20190123-2  argon2-20171227-3
               attr-2.4.48-1  audit-2.8.5-3  ca-certificates-20181109-1
               ca-certificates-mozilla-3.44.1-1
               ca-certificates-utils-20181109-1  cracklib-2.9.7-1
               curl-7.65.1-3  db-5.3.28-4  dbus-1.12.16-1  expat-2.2.6-1
               gc-7.6.8-1  gdbm-1.18.1-2  glib2-2.60.4-1  gmp-6.1.2-2
               gnupg-2.2.16-1  gnutls-3.6.8-1  gpgme-1.13.1-1  guile-2.2.5-1
               hwids-20190316-1  iana-etc-20190531-1  icu-64.2-1
               iptables-1:1.8.3-1  json-c-0.13.1-2  kbd-2.0.4-2  keyutils-1.6-1
               kmod-26-2  krb5-1.17-1  libaio-0.3.112-1  libarchive-3.4.0-2
               libassuan-2.5.3-1  libatomic_ops-7.6.10-1  libcap-2.27-1
               libcap-ng-0.7.9-1  libcroco-0.6.13-1  libelf-0.176-1
               libffi-3.2.1-3  libgcrypt-1.8.4-1  libgpg-error-1.36-1
               libidn2-2.2.0-1  libksba-1.3.5-1  libldap-2.4.47-3
               libmnl-1.0.4-2  libmpc-1.1.0-1  libnetfilter_conntrack-1.0.7-1
               libnfnetlink-1.0.1-3  libnftnl-1.1.3-1  libnghttp2-1.36.0-1
               libnl-3.4.0-1  libpcap-1.9.0-1  libpipeline-1.5.1-1
               libpsl-0.21.0-1  libsasl-2.1.27-1  libseccomp-2.4.1-2
               libsecret-0.18.8-2  libssh2-1.8.2-1  libtasn1-4.13-1
               libtirpc-1.1.4-1  libunistring-0.9.10-1  libusb-1.0.22-1
               libutil-linux-2.34-2  libxml2-2.9.9-2  linux-api-headers-5.1-1
               lz4-1:1.9.1-1  mkinitcpio-25-2  mkinitcpio-busybox-1.30.1-1
               mpfr-4.0.2-1  ncurses-6.1-6  nettle-3.4.1-1  npth-1.6-1
               openresolv-3.9.0-2  openssl-1.1.1.c-1  p11-kit-0.23.16.1-1
               pacman-mirrorlist-20190614-1  pam-1.3.1-1  pambase-20190105.1-1
               pcre-8.43-1  pcre2-10.33-1  pinentry-1.1.0-4  popt-1.16-10
               readline-8.0.0-1  sqlite-3.28.0-1  systemd-libs-242.29-3
               thin-provisioning-tools-0.8.5-2  tzdata-2019a-1  xz-5.2.4-1
               zlib-1:1.2.11-3  zstd-1.4.0-1  autoconf-2.69-5
               automake-1.16.1-1  bash-5.0.007-1  binutils-2.32-2
               bison-3.3.2-1  bzip2-1.0.6-8  coreutils-8.31-1
               cryptsetup-2.1.0-1  device-mapper-2.02.185-1  dhcpcd-7.2.2-1
               diffutils-3.7-1  e2fsprogs-1.45.2-1  fakeroot-1.23-1
               file-5.37-2  filesystem-2019.05-2  findutils-4.6.0-4
               flex-2.6.4-2  gawk-4.2.1-2  gcc-9.1.0-2  gcc-libs-9.1.0-2
               gettext-0.19.8.1-3  glibc-2.29-3  grep-3.3-1  groff-1.22.4-1
               gzip-1.10-1  inetutils-1.9.4-7  iproute2-5.1.0-1
               iputils-20180629.f6aac8d-4  jfsutils-1.1.15-6  less-551-1
               libtool-2.4.6+42+gb88cebd5-4  licenses-20181104-1
               linux-5.1.15.arch1-1  linux-firmware-20190618.acb56f2-1
               logrotate-3.15.0-1  lvm2-2.02.185-1  m4-1.4.18-2  make-4.2.1-3
               man-db-2.8.5-2  man-pages-5.01-1  mdadm-4.1-1  nano-4.3-1
               netctl-1.20-1  pacman-5.1.3-1  patch-2.7.6-7  pciutils-3.6.2-1
               perl-5.30.0-3  pkgconf-1.6.1-1  procps-ng-3.3.15-1
               psmisc-23.2-1  reiserfsprogs-3.6.27-2  s-nail-14.9.13-2
               sed-4.7-1  shadow-4.6-3  sudo-1.8.27-1  sysfsutils-2.1.0-10
               systemd-242.29-3  systemd-sysvcompat-242.29-3  tar-1.32-1
               texinfo-6.6-1  usbutils-010-1  util-linux-2.34-2  vi-1:070224-3
               which-2.21-3  xfsprogs-4.20.0-2

Total Download Size:    325.33 MiB
Total Installed Size:  1303.98 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 linux-api-headers-5...   981.8 KiB  9.99M/s 00:00 [######################] 100%
 tzdata-2019a-1-x86_64    362.2 KiB  35.4M/s 00:00 [######################] 100%
 iana-etc-20190531-1-any  368.9 KiB  27.7M/s 00:00 [######################] 100%
 filesystem-2019.05-...    27.8 KiB  0.00B/s 00:00 [######################] 100%
 glibc-2.29-3-x86_64        9.1 MiB  12.1M/s 00:01 [######################] 100%
 gcc-libs-9.1.0-2-x86_64   22.7 MiB  42.0M/s 00:01 [######################] 100%
 ncurses-6.1-6-x86_64    1066.4 KiB  65.1M/s 00:00 [######################] 100%
 readline-8.0.0-1-x86_64  296.1 KiB  0.00B/s 00:00 [######################] 100%
 bash-5.0.007-1-x86_64   1536.9 KiB  11.9M/s 00:00 [######################] 100%
 bzip2-1.0.6-8-x86_64      53.5 KiB  0.00B/s 00:00 [######################] 100%
 attr-2.4.48-1-x86_64      65.0 KiB  0.00B/s 00:00 [######################] 100%
 acl-2.2.53-1-x86_64      131.9 KiB  0.00B/s 00:00 [######################] 100%
 gmp-6.1.2-2-x86_64       408.1 KiB  9.96M/s 00:00 [######################] 100%
 libcap-2.27-1-x86_64      39.1 KiB  12.7M/s 00:00 [######################] 100%
 gdbm-1.18.1-2-x86_64     160.5 KiB  52.3M/s 00:00 [######################] 100%
 db-5.3.28-4-x86_64      1094.0 KiB  3.28M/s 00:00 [######################] 100%
 perl-5.30.0-3-x86_64      14.2 MiB  17.5M/s 00:01 [######################] 100%
 openssl-1.1.1.c-1-x...     3.4 MiB  29.2M/s 00:00 [######################] 100%
 coreutils-8.31-1-x86_64    2.4 MiB  29.5M/s 00:00 [######################] 100%
 libgpg-error-1.36-1...   195.8 KiB  0.00B/s 00:00 [######################] 100%
 libgcrypt-1.8.4-1-x...   485.7 KiB  36.5M/s 00:00 [######################] 100%
 lz4-1:1.9.1-1-x86_64     105.2 KiB  0.00B/s 00:00 [######################] 100%
 xz-5.2.4-1-x86_64        231.2 KiB  17.4M/s 00:00 [######################] 100%
 systemd-libs-242.29...   413.0 KiB  10.1M/s 00:00 [######################] 100%
 device-mapper-2.02....   270.0 KiB  37.7M/s 00:00 [######################] 100%
 popt-1.16-10-x86_64       62.8 KiB  0.00B/s 00:00 [######################] 100%
 libutil-linux-2.34-...   378.3 KiB  2.21M/s 00:00 [######################] 100%
 json-c-0.13.1-2-x86_64    44.8 KiB  1948K/s 00:00 [######################] 100%
 argon2-20171227-3-x...    31.5 KiB  1854K/s 00:00 [######################] 100%
 cryptsetup-2.1.0-1-...   392.7 KiB   543K/s 00:01 [######################] 100%
 expat-2.2.6-1-x86_64      97.7 KiB  1843K/s 00:00 [######################] 100%
 e2fsprogs-1.45.2-1-...  1074.0 KiB  2011K/s 00:01 [######################] 100%
 libsasl-2.1.27-1-x86_64  137.1 KiB  2.48M/s 00:00 [######################] 100%
 libldap-2.4.47-3-x86_64  282.5 KiB  2.30M/s 00:00 [######################] 100%
 keyutils-1.6-1-x86_64     84.4 KiB  1919K/s 00:00 [######################] 100%
 krb5-1.17-1-x86_64      1225.4 KiB  2022K/s 00:01 [######################] 100%
 libcap-ng-0.7.9-1-x...    36.1 KiB  3.52M/s 00:00 [######################] 100%
 audit-2.8.5-3-x86_64     337.6 KiB  1940K/s 00:00 [######################] 100%
 dbus-1.12.16-1-x86_64    277.8 KiB  3.01M/s 00:00 [######################] 100%
 libmnl-1.0.4-2-x86_64     10.6 KiB  3.46M/s 00:00 [######################] 100%
 libnftnl-1.1.3-1-x86_64   58.5 KiB  2.85M/s 00:00 [######################] 100%
 libnl-3.4.0-1-x86_64     352.6 KiB  1763K/s 00:00 [######################] 100%
 libusb-1.0.22-1-x86_64    55.4 KiB  3.18M/s 00:00 [######################] 100%
 libpcap-1.9.0-1-x86_64   233.4 KiB  1373K/s 00:00 [######################] 100%
 iptables-1:1.8.3-1-...   405.8 KiB  1670K/s 00:00 [######################] 100%
 zlib-1:1.2.11-3-x86_64    81.3 KiB  1891K/s 00:00 [######################] 100%
 cracklib-2.9.7-1-x86_64  249.9 KiB  1496K/s 00:00 [######################] 100%
 libtirpc-1.1.4-1-x86_64  177.5 KiB  1571K/s 00:00 [######################] 100%
 pambase-20190105.1-...     3.1 KiB  0.00B/s 00:00 [######################] 100%
 pam-1.3.1-1-x86_64       552.8 KiB  1675K/s 00:00 [######################] 100%
 kbd-2.0.4-2-x86_64      1140.9 KiB  2.23M/s 00:01 [######################] 100%
 kmod-26-2-x86_64         113.9 KiB  2.59M/s 00:00 [######################] 100%
 hwids-20190316-1-any     366.5 KiB  2.11M/s 00:00 [######################] 100%
 libunistring-0.9.10...   501.7 KiB  2.37M/s 00:00 [######################] 100%
 libidn2-2.2.0-1-x86_64   113.6 KiB  2.52M/s 00:00 [######################] 100%
 libelf-0.176-1-x86_64    368.9 KiB  1583K/s 00:00 [######################] 100%
 libseccomp-2.4.1-2-...    77.7 KiB  2.81M/s 00:00 [######################] 100%
 shadow-4.6-3-x86_64     1103.8 KiB  2.21M/s 00:00 [######################] 100%
 util-linux-2.34-2-x...     2.1 MiB  3.04M/s 00:01 [######################] 100%
 pcre2-10.33-1-x86_64    1026.3 KiB  3.42M/s 00:00 [######################] 100%
 systemd-242.29-3-x86_64    4.6 MiB  5.32M/s 00:01 [######################] 100%
 dhcpcd-7.2.2-1-x86_64    169.4 KiB  4.14M/s 00:00 [######################] 100%
 diffutils-3.7-1-x86_64   327.1 KiB  7.99M/s 00:00 [######################] 100%
 file-5.37-2-x86_64       292.0 KiB  7.13M/s 00:00 [######################] 100%
 findutils-4.6.0-4-x...   426.6 KiB  5.63M/s 00:00 [######################] 100%
 mpfr-4.0.2-1-x86_64      313.8 KiB  8.28M/s 00:00 [######################] 100%
 gawk-4.2.1-2-x86_64     1047.3 KiB  4.45M/s 00:00 [######################] 100%
 pcre-8.43-1-x86_64       929.2 KiB  4.93M/s 00:00 [######################] 100%
 libffi-3.2.1-3-x86_64     31.8 KiB  0.00B/s 00:00 [######################] 100%
 glib2-2.60.4-1-x86_64      2.4 MiB  4.79M/s 00:01 [######################] 100%
 icu-64.2-1-x86_64          8.8 MiB  5.00M/s 00:02 [######################] 100%
 gettext-0.19.8.1-3-...  1796.9 KiB  3.11M/s 00:01 [######################] 100%
 grep-3.3-1-x86_64        185.4 KiB  2.87M/s 00:00 [######################] 100%
 less-551-1-x86_64        100.9 KiB   631K/s 00:00 [######################] 100%
 gzip-1.10-1-x86_64        77.9 KiB  1948K/s 00:00 [######################] 100%
 inetutils-1.9.4-7-x...   295.0 KiB   922K/s 00:00 [######################] 100%
 iproute2-5.1.0-1-x86_64  835.6 KiB  2.06M/s 00:00 [######################] 100%
 iputils-20180629.f6...    73.1 KiB  5.10M/s 00:00 [######################] 100%
 jfsutils-1.1.15-6-x...   179.9 KiB  4.75M/s 00:00 [######################] 100%
 licenses-20181104-1-any   67.2 KiB  6.57M/s 00:00 [######################] 100%
 linux-firmware-2019...    79.9 MiB  12.5M/s 00:06 [######################] 100%
 mkinitcpio-busybox-...   252.7 KiB  17.6M/s 00:00 [######################] 100%
 zstd-1.4.0-1-x86_64      375.4 KiB  28.2M/s 00:00 [######################] 100%
 libarchive-3.4.0-2-...   472.2 KiB  2.83M/s 00:00 [######################] 100%
 mkinitcpio-25-2-any       40.1 KiB  0.00B/s 00:00 [######################] 100%
 linux-5.1.15.arch1-...    71.6 MiB  24.5M/s 00:03 [######################] 100%
 logrotate-3.15.0-1-...    42.0 KiB  0.00B/s 00:00 [######################] 100%
 libaio-0.3.112-1-x86_64    6.3 KiB  0.00B/s 00:00 [######################] 100%
 thin-provisioning-t...   397.0 KiB  4.12M/s 00:00 [######################] 100%
 lvm2-2.02.185-1-x86_64  1353.4 KiB  7.51M/s 00:00 [######################] 100%
 groff-1.22.4-1-x86_64   2043.9 KiB  10.7M/s 00:00 [######################] 100%
 libpipeline-1.5.1-1...    38.0 KiB  0.00B/s 00:00 [######################] 100%
 man-db-2.8.5-2-x86_64    969.6 KiB  5.67M/s 00:00 [######################] 100%
 man-pages-5.01-1-any       5.8 MiB  9.34M/s 00:01 [######################] 100%
 mdadm-4.1-1-x86_64       345.2 KiB   450K/s 00:01 [######################] 100%
 nano-4.3-1-x86_64        481.1 KiB  2.01M/s 00:00 [######################] 100%
 openresolv-3.9.0-2-any    21.1 KiB  5.16M/s 00:00 [######################] 100%
 netctl-1.20-1-any         38.7 KiB  9.45M/s 00:00 [######################] 100%
 libtasn1-4.13-1-x86_64   117.1 KiB  2.86M/s 00:00 [######################] 100%
 p11-kit-0.23.16.1-1...   453.4 KiB  2.11M/s 00:00 [######################] 100%
 ca-certificates-uti...     7.9 KiB  0.00B/s 00:00 [######################] 100%
 ca-certificates-moz...   337.3 KiB  2.14M/s 00:00 [######################] 100%
 ca-certificates-201...     2.1 KiB  0.00B/s 00:00 [######################] 100%
 libssh2-1.8.2-1-x86_64   182.9 KiB  1220K/s 00:00 [######################] 100%
 libpsl-0.21.0-1-x86_64    73.9 KiB  10.3M/s 00:00 [######################] 100%
 libnghttp2-1.36.0-1...    86.7 KiB  2.29M/s 00:00 [######################] 100%
 curl-7.65.1-3-x86_64     984.1 KiB  1770K/s 00:01 [######################] 100%
 npth-1.6-1-x86_64         13.1 KiB  4.26M/s 00:00 [######################] 100%
 libksba-1.3.5-1-x86_64   116.0 KiB  3.15M/s 00:00 [######################] 100%
 libassuan-2.5.3-1-x...    85.2 KiB  3.20M/s 00:00 [######################] 100%
 libsecret-0.18.8-2-...   196.7 KiB  1185K/s 00:00 [######################] 100%
 pinentry-1.1.0-4-x86_64  101.1 KiB  3.29M/s 00:00 [######################] 100%
 nettle-3.4.1-1-x86_64    330.4 KiB  1652K/s 00:00 [######################] 100%
 gnutls-3.6.8-1-x86_64      2.5 MiB  3.31M/s 00:01 [######################] 100%
 sqlite-3.28.0-1-x86_64  1387.9 KiB  5.02M/s 00:00 [######################] 100%
 gnupg-2.2.16-1-x86_64      2.1 MiB  6.15M/s 00:00 [######################] 100%
 gpgme-1.13.1-1-x86_64    410.4 KiB  7.16M/s 00:00 [######################] 100%
 pacman-mirrorlist-2...     5.8 KiB  0.00B/s 00:00 [######################] 100%
 archlinux-keyring-2...   685.1 KiB  3.64M/s 00:00 [######################] 100%
 pacman-5.1.3-1-x86_64    751.1 KiB  4.22M/s 00:00 [######################] 100%
 pciutils-3.6.2-1-x86_64   87.0 KiB  8.50M/s 00:00 [######################] 100%
 procps-ng-3.3.15-1-...   339.2 KiB  7.05M/s 00:00 [######################] 100%
 psmisc-23.2-1-x86_64     105.7 KiB  7.94M/s 00:00 [######################] 100%
 reiserfsprogs-3.6.2...   204.3 KiB  8.68M/s 00:00 [######################] 100%
 s-nail-14.9.13-2-x86_64  493.0 KiB  2.72M/s 00:00 [######################] 100%
 sed-4.7-1-x86_64         218.1 KiB  4.02M/s 00:00 [######################] 100%
 sysfsutils-2.1.0-10...    31.4 KiB  10.2M/s 00:00 [######################] 100%
 systemd-sysvcompat-...     7.6 KiB  0.00B/s 00:00 [######################] 100%
 tar-1.32-1-x86_64        743.7 KiB  1458K/s 00:01 [######################] 100%
 texinfo-6.6-1-x86_64    1299.0 KiB  2.68M/s 00:00 [######################] 100%
 usbutils-010-1-x86_64     69.2 KiB  3.98M/s 00:00 [######################] 100%
 vi-1:070224-3-x86_64     152.1 KiB  3.45M/s 00:00 [######################] 100%
 which-2.21-3-x86_64       16.0 KiB  5.20M/s 00:00 [######################] 100%
 xfsprogs-4.20.0-2-x...   923.5 KiB  1924K/s 00:00 [######################] 100%
 m4-1.4.18-2-x86_64       169.7 KiB  3.31M/s 00:00 [######################] 100%
 autoconf-2.69-5-any      586.7 KiB  2.64M/s 00:00 [######################] 100%
 automake-1.16.1-1-any    598.6 KiB  2.37M/s 00:00 [######################] 100%
 binutils-2.32-2-x86_64     4.8 MiB  4.13M/s 00:01 [######################] 100%
 bison-3.3.2-1-x86_64     603.3 KiB  6.85M/s 00:00 [######################] 100%
 fakeroot-1.23-1-x86_64    66.8 KiB  9.32M/s 00:00 [######################] 100%
 flex-2.6.4-2-x86_64      298.4 KiB  6.78M/s 00:00 [######################] 100%
 libmpc-1.1.0-1-x86_64     64.7 KiB  9.02M/s 00:00 [######################] 100%
 gcc-9.1.0-2-x86_64        33.9 MiB  15.1M/s 00:02 [######################] 100%
 libtool-2.4.6+42+gb...   399.5 KiB  55.7M/s 00:00 [######################] 100%
 make-4.2.1-3-x86_64      412.7 KiB  40.3M/s 00:00 [######################] 100%
 patch-2.7.6-7-x86_64      92.8 KiB  30.2M/s 00:00 [######################] 100%
 pkgconf-1.6.1-1-x86_64    54.4 KiB  0.00B/s 00:00 [######################] 100%
 sudo-1.8.27-1-x86_64     760.7 KiB  4.86M/s 00:00 [######################] 100%
 libnfnetlink-1.0.1-...    16.4 KiB  0.00B/s 00:00 [######################] 100%
 libnetfilter_conntr...    47.5 KiB  1285K/s 00:00 [######################] 100%
 libxml2-2.9.9-2-x86_64  1268.8 KiB  1322K/s 00:01 [######################] 100%
 libcroco-0.6.13-1-x...   146.0 KiB  3.85M/s 00:00 [######################] 100%
 libatomic_ops-7.6.1...    63.7 KiB  4.79M/s 00:00 [######################] 100%
 gc-7.6.8-1-x86_64        219.2 KiB  4.04M/s 00:00 [######################] 100%
 guile-2.2.5-1-x86_64       5.6 MiB  3.64M/s 00:02 [######################] 100%
(155/155) checking keys in keyring                 [######################] 100%
(155/155) checking package integrity               [######################] 100%
(155/155) loading package files                    [######################] 100%
(155/155) checking for file conflicts              [######################] 100%
:: Processing package changes...
(  1/155) installing linux-api-headers             [######################] 100%
(  2/155) installing tzdata                        [######################] 100%
(  3/155) installing iana-etc                      [######################] 100%
(  4/155) installing filesystem                    [######################] 100%
(  5/155) installing glibc                         [######################] 100%
Optional dependencies for glibc
    gd: for memusagestat
(  6/155) installing gcc-libs                      [######################] 100%
(  7/155) installing ncurses                       [######################] 100%
(  8/155) installing readline                      [######################] 100%
(  9/155) installing bash                          [######################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
( 10/155) installing bzip2                         [######################] 100%
( 11/155) installing attr                          [######################] 100%
( 12/155) installing acl                           [######################] 100%
( 13/155) installing gmp                           [######################] 100%
( 14/155) installing libcap                        [######################] 100%
( 15/155) installing gdbm                          [######################] 100%
( 16/155) installing db                            [######################] 100%
( 17/155) installing perl                          [######################] 100%
( 18/155) installing openssl                       [######################] 100%
Optional dependencies for openssl
    ca-certificates [pending]
( 19/155) installing coreutils                     [######################] 100%
( 20/155) installing libgpg-error                  [######################] 100%
( 21/155) installing libgcrypt                     [######################] 100%
( 22/155) installing lz4                           [######################] 100%
( 23/155) installing xz                            [######################] 100%
( 24/155) installing systemd-libs                  [######################] 100%
( 25/155) installing device-mapper                 [######################] 100%
( 26/155) installing popt                          [######################] 100%
( 27/155) installing libutil-linux                 [######################] 100%
( 28/155) installing json-c                        [######################] 100%
( 29/155) installing argon2                        [######################] 100%
( 30/155) installing cryptsetup                    [######################] 100%
( 31/155) installing expat                         [######################] 100%
( 32/155) installing e2fsprogs                     [######################] 100%
( 33/155) installing libsasl                       [######################] 100%
( 34/155) installing libldap                       [######################] 100%
( 35/155) installing keyutils                      [######################] 100%
( 36/155) installing krb5                          [######################] 100%
( 37/155) installing libcap-ng                     [######################] 100%
( 38/155) installing audit                         [######################] 100%
( 39/155) installing dbus                          [######################] 100%
( 40/155) installing libmnl                        [######################] 100%
( 41/155) installing libnftnl                      [######################] 100%
( 42/155) installing libnl                         [######################] 100%
( 43/155) installing libusb                        [######################] 100%
( 44/155) installing libpcap                       [######################] 100%
( 45/155) installing libnfnetlink                  [######################] 100%
( 46/155) installing libnetfilter_conntrack        [######################] 100%
( 47/155) installing iptables                      [######################] 100%
( 48/155) installing zlib                          [######################] 100%
( 49/155) installing cracklib                      [######################] 100%
( 50/155) installing libtirpc                      [######################] 100%
( 51/155) installing pambase                       [######################] 100%
( 52/155) installing pam                           [######################] 100%
( 53/155) installing kbd                           [######################] 100%
( 54/155) installing kmod                          [######################] 100%
( 55/155) installing hwids                         [######################] 100%
( 56/155) installing libunistring                  [######################] 100%
( 57/155) installing libidn2                       [######################] 100%
( 58/155) installing libelf                        [######################] 100%
( 59/155) installing libseccomp                    [######################] 100%
( 60/155) installing shadow                        [######################] 100%
( 61/155) installing util-linux                    [######################] 100%
Optional dependencies for util-linux
    python: python bindings to libmount
    words: default dictionary for look
( 62/155) installing pcre2                         [######################] 100%
( 63/155) installing systemd                       [######################] 100%
Initializing machine ID from random generator.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries [pending]
    polkit: allow administration as unprivileged user
    curl: machinectl pull-tar and pull-raw [pending]
( 64/155) installing dhcpcd                        [######################] 100%
Optional dependencies for dhcpcd
    openresolv: resolvconf support [pending]
( 65/155) installing diffutils                     [######################] 100%
( 66/155) installing file                          [######################] 100%
( 67/155) installing findutils                     [######################] 100%
( 68/155) installing mpfr                          [######################] 100%
( 69/155) installing gawk                          [######################] 100%
( 70/155) installing pcre                          [######################] 100%
( 71/155) installing libffi                        [######################] 100%
( 72/155) installing glib2                         [######################] 100%
Optional dependencies for glib2
    python: gdbus-codegen, glib-genmarshal, glib-mkenums, gtester-report
    libelf: gresource inspection tool [installed]
( 73/155) installing icu                           [######################] 100%
( 74/155) installing libxml2                       [######################] 100%
( 75/155) installing libcroco                      [######################] 100%
( 76/155) installing gettext                       [######################] 100%
Optional dependencies for gettext
    git: for autopoint infrastructure updates
( 77/155) installing grep                          [######################] 100%
( 78/155) installing less                          [######################] 100%
( 79/155) installing gzip                          [######################] 100%
( 80/155) installing inetutils                     [######################] 100%
( 81/155) installing iproute2                      [######################] 100%
Optional dependencies for iproute2
    linux-atm: ATM support
( 82/155) installing iputils                       [######################] 100%
Optional dependencies for iputils
    xinetd: for tftpd
( 83/155) installing jfsutils                      [######################] 100%
( 84/155) installing licenses                      [######################] 100%
( 85/155) installing linux-firmware                [######################] 100%
( 86/155) installing mkinitcpio-busybox            [######################] 100%
( 87/155) installing zstd                          [######################] 100%
( 88/155) installing libarchive                    [######################] 100%
( 89/155) installing mkinitcpio                    [######################] 100%
Optional dependencies for mkinitcpio
    xz: Use lzma or xz compression for the initramfs image [installed]
    bzip2: Use bzip2 compression for the initramfs image [installed]
    lzop: Use lzo compression for the initramfs image
    lz4: Use lz4 compression for the initramfs image [installed]
    mkinitcpio-nfs-utils: Support for root filesystem on NFS
( 90/155) installing linux                         [######################] 100%
Optional dependencies for linux
    crda: to set the correct wireless channels of your country
( 91/155) installing logrotate                     [######################] 100%
( 92/155) installing libaio                        [######################] 100%
( 93/155) installing thin-provisioning-tools       [######################] 100%
( 94/155) installing lvm2                          [######################] 100%
( 95/155) installing groff                         [######################] 100%
Optional dependencies for groff
    netpbm: for use together with man -H command interaction in browsers
    psutils: for use together with man -H command interaction in browsers
    libxaw: for gxditview
( 96/155) installing libpipeline                   [######################] 100%
( 97/155) installing man-db                        [######################] 100%
Optional dependencies for man-db
    gzip [installed]
( 98/155) installing man-pages                     [######################] 100%
( 99/155) installing mdadm                         [######################] 100%
(100/155) installing nano                          [######################] 100%
(101/155) installing openresolv                    [######################] 100%
(102/155) installing netctl                        [######################] 100%
Optional dependencies for netctl
    dialog: for the menu based wifi assistant
    dhclient: for DHCP support (or dhcpcd)
    dhcpcd: for DHCP support (or dhclient) [installed]
    wpa_supplicant: for wireless networking support
    ifplugd: for automatic wired connections through netctl-ifplugd
    ppp: for PPP connections
    openvswitch: for Open vSwitch connections
(103/155) installing libtasn1                      [######################] 100%
(104/155) installing p11-kit                       [######################] 100%
Created symlink /etc/systemd/user/sockets.target.wants/p11-kit-server.socket → /usr/lib/systemd/user/p11-kit-server.socket.
(105/155) installing ca-certificates-utils         [######################] 100%
(106/155) installing ca-certificates-mozilla       [######################] 100%
(107/155) installing ca-certificates               [######################] 100%
(108/155) installing libssh2                       [######################] 100%
(109/155) installing libpsl                        [######################] 100%
(110/155) installing libnghttp2                    [######################] 100%
(111/155) installing curl                          [######################] 100%
(112/155) installing npth                          [######################] 100%
(113/155) installing libksba                       [######################] 100%
(114/155) installing libassuan                     [######################] 100%
(115/155) installing libsecret                     [######################] 100%
Optional dependencies for libsecret
    gnome-keyring: key storage service, or use any other service implementing
    org.freedesktop.secrets
(116/155) installing pinentry                      [######################] 100%
Optional dependencies for pinentry
    gtk2: gtk2 backend
    qt5-base: qt backend
    gcr: gnome3 backend
(117/155) installing nettle                        [######################] 100%
(118/155) installing gnutls                        [######################] 100%
(119/155) installing sqlite                        [######################] 100%
(120/155) installing gnupg                         [######################] 100%
Optional dependencies for gnupg
    libldap: gpg2keys_ldap [installed]
    libusb-compat: scdaemon
    pcsclite: scdaemon
(121/155) installing gpgme                         [######################] 100%
(122/155) installing pacman-mirrorlist             [######################] 100%
(123/155) installing archlinux-keyring             [######################] 100%
(124/155) installing pacman                        [######################] 100%
Optional dependencies for pacman
    perl-locale-gettext: translation support in makepkg-template
    xdelta3: delta support in repo-add
(125/155) installing pciutils                      [######################] 100%
(126/155) installing procps-ng                     [######################] 100%
(127/155) installing psmisc                        [######################] 100%
(128/155) installing reiserfsprogs                 [######################] 100%
(129/155) installing s-nail                        [######################] 100%
Optional dependencies for s-nail
    smtp-forwarder: for sending mail
(130/155) installing sed                           [######################] 100%
(131/155) installing sysfsutils                    [######################] 100%
(132/155) installing systemd-sysvcompat            [######################] 100%
(133/155) installing tar                           [######################] 100%
(134/155) installing texinfo                       [######################] 100%
(135/155) installing usbutils                      [######################] 100%
Optional dependencies for usbutils
    python: for lsusb.py usage
    coreutils: for lsusb.py usage [installed]
(136/155) installing vi                            [######################] 100%
Optional dependencies for vi
    s-nail: used by the preserve command for notification [installed]
(137/155) installing which                         [######################] 100%
(138/155) installing xfsprogs                      [######################] 100%
(139/155) installing m4                            [######################] 100%
(140/155) installing autoconf                      [######################] 100%
(141/155) installing automake                      [######################] 100%
(142/155) installing binutils                      [######################] 100%
(143/155) installing bison                         [######################] 100%
(144/155) installing fakeroot                      [######################] 100%
(145/155) installing flex                          [######################] 100%
(146/155) installing libmpc                        [######################] 100%
(147/155) installing gcc                           [######################] 100%
Optional dependencies for gcc
    lib32-gcc-libs: for generating code for 32-bit ABI
(148/155) installing libtool                       [######################] 100%
(149/155) installing libatomic_ops                 [######################] 100%
(150/155) installing gc                            [######################] 100%
(151/155) installing guile                         [######################] 100%
(152/155) installing make                          [######################] 100%
(153/155) installing patch                         [######################] 100%
Optional dependencies for patch
    ed: for patch -e functionality
(154/155) installing pkgconf                       [######################] 100%
(155/155) installing sudo                          [######################] 100%
:: Running post-transaction hooks...
( 1/13) Updating linux module dependencies...
( 2/13) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.1.15-arch1-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.1.15-arch1-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
( 3/13) Warn about old perl modules
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_MESSAGES = "",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
( 4/13) Updating journal message catalog...
( 5/13) Reloading system manager configuration...
Running in chroot, ignoring request: daemon-reload
( 6/13) Updating udev hardware database...
( 7/13) Applying kernel sysctl settings...
( 8/13) Creating system user accounts...
( 9/13) Creating temporary files...
(10/13) Reloading device manager configuration...
Running in chroot, ignoring request.
(11/13) Arming ConditionNeedsUpdate...
(12/13) Updating the info directory file...
(13/13) Rebuilding certificate stores...
pacstrap /mnt base base-devel  57.84s user 24.58s system 40% cpu 3:21.53 total

配置系统

配置系统挂载

因为系统安装至当前临时系统的 /mnt 路径下,但是实际上系统的安装路径为 / ,因此需要生成实际的挂载文件。

root@archiso ~ # genfstab -L /mnt >> /mnt/etc/fstab 

检查生成配置文件

root@archiso ~ # cat /mnt/etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2 UUID=a69e7513-a45b-44c2-b787-b5a88f2c4ab9
/dev/sda2               /           ext4        rw,relatime 0 1

# /dev/sda1 UUID=6D81-1BE6
/dev/sda1               /boot       vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro   0 2

切换根目录

配置完成系统后,可以将根切换为新安装的系统。

root@archiso ~ # arch-chroot /mnt

初始化系统

切换根目录后,现在开始的全部操作相当于对新装 /mnt 下的系统进行操作,安装基础包。

[root@archiso /]# pacman -S bash-completion vim chrony 

安装后 CTRL+D 退出重新进入系统,配置系统时区、主机名、密码等。

[root@archiso /]# timedatectl set-timezone Asia/Shanghai
[root@archiso /]# timedatectl set-ntp true
[root@archiso /]# hostnamectl set-hostname wave.red
[root@archiso /]# passwd root

配置引导程序

系统安装后,电脑开机后是无法正常进行引导的,需要 bootloader 程序进行引导才能正常开机。

安装系统配置包

[root@archiso /]# pacman -S os-prober

安装 grub2

[root@archiso /]# pacman -S grub

配置引导

[root@archiso /]# grub-install --target=i386-pc /dev/sdx (将sdx换成你安装的硬盘)

小贴士:此处需要指定的是磁盘不是分区!!!例如 /dev/sda 而不是 /dev/sda1。

生成配置文件

[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg

如果出现以下报错

grub-install: warning: failed to connect to lvmetad,falling back to device scanning.

请修改 /etc/lvm/lvm.conf 文件,找到 use_lvmetad = 1 将1改为0,然后重新生成配置文件。

安装 grub2 efibootmgr

[root@archiso /]# pacman -S grub efibootmgr

配置引导

[root@archiso /]# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub

生成配置文件

[root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg

至此系统安装全部完成,重启系统即可。

[root@archiso /]# reboot

网络配置

重启后若是没有网络,先临时设定 IP 进行上网

# ip addr add 172.16.14.129/24 dev ens33
# ip link set dev ens33 up
# ip route add default via 122.16.0.1
# echo nameserver 223.5.5.5 >> /etc/resolv.conf

让 netctl 接管系统网络(DHCP 模式)

# cp /etc/netctl/examples/ethernet-dhcp /etc/netctl/profile
# systemctl enable netctl
# systemctl start netctl
# netctl start profile
# netctl enable profile

小贴士:使用其他配置时,无需删除 profile,新建 profile2 即可,然后使用 netctl switch-to profile2 即可切换模式并自动禁用旧配置文件。

附录

参考链接

回复