The first step is to copy the host files into the mounted new partition, for this, consider using the approach exhibited in rsync#Full system backup. It is possible to replicate an existing Arch Linux installation by copying the host filesystem to the new partition and make some adjustments to it to make it bootable and unique. The last step may require disabling lvmetad from /etc/lvm/lvm.conf by setting use_lvmetad=0.Ĭreate a copy of an existing Arch installation
To solve this problem, from the host running Arch Linux, mount the newly installed partitions, arch-chroot to the new partition, then install and configure grub.
This will result in Error:no such device when trying to boot from the stick.
In order to avoid redownloading all the packages, consider following Pacman/Tips and tricks#Network shared pacman cache, or use pacstrap's -c option to use your host machine's package cache.In the procedure, the first step, Installation guide#Select the mirrors, can be skipped since the host should already have a correct mirrorlist. The two options are described thereafter. If you already use the /mnt directory for something else, just create another directory such as /mnt/install and use it as the mount point base for the rest of the installation.Īt this stage, Arch Linux can either be installed from scratch or it can mirror the host installation. Install the arch-install-scripts package.įollow Installation guide#Mount the file systems to mount the filesystem that will be used for the root directory as well as all the other needed mount points. In general, it is a good idea to have a local copy of your original /etc directory on your local hard drive. This includes keys from your Apache, your mail servers, your SSH server and others.) SSH keys (if other people work on your server, they will have to accept new keys otherwise.hostname(s), (note: rootserver are mostly also part of the providers domain, check or save your /etc/hosts before you delete).Here is a list of data you will likely need: Preserve all your server configurations, hostnames, etc. 5.1 Set old swap partition as new root partitionīackup all your data including mails, webservers, etc.5 Replacing the existing system without a LiveCD.3.2.1 Method A: Using the bootstrap image (recommended).3 From a host running another Linux distribution.2.2 Create a copy of an existing Arch installation.If the host system runs another Linux distribution, you will first need to set up an Arch Linux-based chroot. If the host system runs Arch Linux, this can be achieved by simply installing arch-install-scripts. The goal of the bootstrapping procedure is to setup an environment from which the scripts from arch-install-scripts (such as pacstrap and arch-chroot) can be run. creating an Arch Linux chroot environment, e.g.creating a new Linux distribution or LiveMedia based on Arch Linux.replacing an existing Linux without a LiveCD (see #Replacing the existing system without a LiveCD).Installing Arch Linux from a running Linux is useful for: This document describes the bootstrapping process required to install Arch Linux from a running Linux host system.Īfter bootstrapping, the installation proceeds as described in the Installation guide.