Installing arch to hard disk using the U-Disk starter Disk
A: Preparatory work:
1) Download the arch image file and the sig file and put it in the same folder. https://www.archlinux.org/download/
The verification code for Linux non-arch environments is as follows:
#gpg--verify./archlinux-2012.10.06-dual.iso.sig
An error has been obtained:
Gpg:signature made Sat Oct 03:28:53 PM IST using RSA key ID 9741E8AC
Gpg:can ' t check signature:public key not found
#gpg--no-default-keyring--keyring vendors.gpg--keyserver pgp.mit.edu--recv-key 9741e8ac
#gpg--verify--verbose--keyring vendors.gpg./archlinux-2012.10.06-dual.iso.sig
See the following information
Gpg:assuming signed data in './archlinux-2012.10.06-dual.iso '
Gpg:signature made Sat Oct 03:28:53 PM IST using RSA key ID 9741E8AC
Gpg:using PGP Trust model
Gpg:good signature from "Pierre Schmitz"
Gpg:WARNING:This key isn't certified with a trusted signature!
Gpg:there is no indication, the signature belongs to the owner.
Primary key fingerprint:4aa4 767B bc9c 4b1d 18AE 28b7 7f2d 434B 9741 e8ac
Gpg:binary signature, Digest algorithm SHA1
2) Prepare a 1Gu disk to make the boot disk
# dd bs=4m if=/path/to/archlinux.iso of=/dev/sdx && Sync
Use LSBLK to find the USB flash drive and make sure it is not mounted
Boot disk ready after setting BIOS boot from U disk, reboot into boot archlinux (i686) I am 32 bit
Two: Start the installation
1) Set the keyboard layout
# Loadkeys US
2) access network, My network card is Broadcom using the dynamic IP
#ip link does not find a port
#modprobe-R TG3
#modprobe Broadcom
#modprobe TG3
#ip Link
#ip Link Set InterfaceName up
#ping-C 3 www.baidu.com
3) hard disk partition, I use FDISK to bring the tool, actually very simple
I'll create three primary partitions, one extended partition, and two logical partitions from the extended partition.
Please refer to the wiki for details.
4) format the partition and mount it separately
#mkfs. Ext4/dev/sdax
If you split a swap area, don't forget to format and enable it
#mkfs. ext4/dev/sda1
#mkswap/DEV/SDA2
#swapon/DEV/SDA2
#mkfs. Ext4/dev/sda3
#mkfs. Ext4/dev/sda5
#mkfs. Ext4/dev/sda6
Mount each partition, mount each partition according to the personal scheme, my partition
/DEV/SDA1 200m/boot
/dev/sda2 500M SWQP
/dev/sda3 20G/
/dev/sda5 12g/var
/dev/sda6 265g/home
Mount
#mount/dev/sda3/mnt
#mkdir/mnt/boot
#mount/dev/sda1/mnt/boot
#mkdir/mnt/var
#mount/dev/sda5/mnt/var
#mkdir/mnt/home
#mount/dev/sda6/mnt/home
5) Vi/etc/pacman.d/mirrorlist
server=http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
Other sources can be used and must be forced to refresh after modification
#pacman-syy
6) Installation
#pacstrap/mnt Base Base-devel
7) Generate Fstab
#genfstab-u-p/mnt >>/mnt/etc/fstab
8) cut to new system
#arch-chroot/mnt/bin/bash
9) Nano/etc/locale.gen
Cancel Comment
En. US. UTF-8 UTF-8
Zh. CN. UTF-8 UTF-8
Zh. TW. UTF-8 UTF-8
#locale-gen
10)
#ln-S/usr/share/zoneinfo/asia/shanghai/etc/localtime
11)
#hwclock--SYSTOHC--UTC
12)
# echo myhostname >/etc/hostname
and /etc/hosts
Add the same host name:
# #/etc/hosts:static lookup table for host names##<ip-address>myhostname:: 1localhost.localdomainlocalhost# End of File
13) Configure the network once and for all
#systemctl enable [email protected]InterfaceName. Service
14) set Root password
#passwd
15)
# pacman-s grub# grub-install--target=i386-pc--RECHECK/DEV/SDA
# Grub-mkconfig-o/boot/grub/grub.cfg
#exit
#reboot
The End
Note: The above information source https://wiki.archlinux.org
ArchLinux HDD Installation