Professional Documents
Culture Documents
Note: Select only one of the following two methods and then read the rest of the article to complete the
install.
$ curl -O https://mirrors.kernel.org/archlinux/iso/2015.01.01/archlinux-bootstrap-2015.01.01-x86_64.tar.gz
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Extract the tarball:
# cd /tmp
# tar xzf <path-to-bootstrap-image>/archlinux-bootstrap-2015.01.01-x86_64.tar.gz
# nano /tmp/root.x86_64/etc/pacman.d/mirrorlist
Note: If bootstrapping an i686 image from an x86_64 host system, also edit
/tmp/root.i686/etc/pacman.conf and explicitly define Architecture = i686 in order for pacman to pull the
# /tmp/root.x86_64/bin/arch-chroot /tmp/root.x86_64/
# cd /tmp/root.x86_64
# cp /etc/resolv.conf etc
# mount --rbind /proc proc
# mount --rbind /sys sys
# mount --rbind /dev dev
# mount --rbind /run run
(assuming /run exists on the system)
# chroot /tmp/root.x86_64 /bin/bash
The root image can be found on one of the mirrors under either arch/x86_64/ or arch/i686/ depending
on the desired architecture. The squashfs format is not editable so we unsquash the root image and then
mount it.
To unsquash the root image, run
# mkdir /arch
# mount -o loop /squashfs-root/root-image.fs /arch
Before chrooting to it, we need to set up some mount points and copy the resolv.conf for networking.
Now everything is prepared to chroot into the newly installed Arch environment
# pacman-key --init
# pacman-key --populate archlinux
Installation
Follow Installation guide#Mount the partitions and Installation guide#Install the base packages.
Debian-based host
On Debian-based host systems, pacstrap produces the following error:
In Debian, /dev/shm points to /run/shm. However, in the Arch-based chroot, /run/shm does not exist and the
link is broken. To correct this error, create a directory /run/shm:
# mkdir /run/shm
Fedora-based host
On Fedora based hosts and live USBs you may encounter problems when using genfstab to generate your
fstab. Remove duplicate entries and the "seclabel" option where it appears, as this is Fedora-specific and
will keep your system from booting normally.
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Replacing the Existing System without a LiveCD
Find ~650MB of free space somewhere on the disk, e.g. by partitioning a swap partition. If less than 600mb
are available, examine the packages in the group base, and select only those required to get a system with
internet connection up and running in the temporary partition. This will mean explicitly specifying individual
packages to pacstrap, as well as passing it the -c option, to get packages downloaded to the host system
to avoid filling up valuable space.
Once the new Arch Linux system is installed, reboot into the newly created system, and rsync the entire
system to the primary partition. Fix the bootloader configuration before rebooting.
This page w as last modified on 24 January 2015, at 21:19. Content is available under GNU Free Documentation License 1.3
or later unless otherw ise noted. Privacy policy About ArchWiki Disclaimers
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com