In this recipe we'll learn about the installation of Arch Linux. It might seem a little scary because of the manual installation process, but it is not difficult at all. The installation script will practically guide you all the way through the installation, and you can have a system capable of booting in even less than 10 minutes. In the Arch Linux ecosystem, the installation is something that is usually done once and then never again because of the rolling release of packages. Also see the Beginner's Guide at https://wiki.archlinux.org/index.php/Beginners'_Guide to get a grasp of what Arch Linux is all about. As Arch Linux is an ever moving target, the preferred method of installation is when you are connected to the Internet so you can fetch all the latest and greatest software available. Even before downloading, it is a must to read the latest news at http://www.archlinux.org/news/ about any new developments.
When we only want a taste of Arch Linux and are probably far from sure that this is what we want for all day use, consider learning how the system works by installing it in a virtual machine. In the Beginner's Guide there is a useful section about it at https://wiki.archlinux.org/index.php/Beginners'_Guide#Install_on_a_virtual_machine.
We can get the Archboot ISO from http://wiki.archlinux.org/index.php/Archboot. On this page we will find a download link to the latest release. We can select to download the torrent files or the ISO immediately.
The following list describes the main tasks that we will perform in this recipe:
Let's perform the following steps for preparing the installation media:
md5sum.txt file from the archboot folder.md5sum -c md5sum.txt command and checking whether our download was successful:
The following steps will guide you in booting the install media and starting the installation:



Let's perform the following steps to set keyboard and console font:
Let's set our time zone, the current time, and the current date:
The following steps should be performed for auto preparing the hard drive:
(/boot) partition.(/swap) partition.(/root) partition./home) partition where all the users' data will be residing.The following steps should be performed for manually preparing the hard drive:
The following steps are needed to select your source:
The following steps are needed to select your packages:
Finally, let's install the boot loader:
The best known will be GRUB and Syslinux—those are probably also the best supported. There are also other boot loaders available such as LILO.
Now that you have taken all the steps needed to install a basic working Arch Linux system on your computer, the only thing left in the installation procedure is to reboot your system and remove the installation media. Then you can enjoy the first boot of your freshly installed Arch Linux.
We downloaded the Archboot ISO via the torrent files or directly using a web browser, and the md5sum command lets us verify the integrity of the downloaded ISO. So now, we can rest assured that the downloaded file is the real one.
The Archboot ISO contains a fully working operating system so first we boot that. We are automatically logged into the live system on pressing the Enter key. Next, the installation scripts are called and we get dropped in the Archboot installation scripts.
The installation scripts will call the correct application to set the keyboard layout and the console font, and the selected date and time settings. The installation scripts will also keep track of the selected values to put them in the appropriate configuration files.
If we have selected the Auto-Prepare option, then based on the configuration we have made, the installer will run fdisk and create the partition scheme that we want.
If we have chosen to do a manual partition of the disk, then we can select any layout we want. Once we are satisfied with the partition scheme, the installer will ask some questions (for example: Where to mount? What filesystem?), and uses our answers to mount the partitions we have made to the correct mount points. The installation scripts will also keep track of the answers given so that they can be used later on for the generation of a configuration file.
The installation script will show you a list of packages that pacman has made available for you to install. When you have selected all the packages you want on your system, the installation script will pass these packages with some extra parameters back to pacman, which will do the actual installing.
At the end of the installation, a list of configuration files will be prepared for you. These configuration files are there for you to review. When you are satisfied with the configuration file, save it. The installation script will now use the configuration file to put the selected boot loader into place.
When we want to divert from the default settings, we might need some extra knowledge. So let's discuss them one by one.
The ISOs downloaded from Arch Linux are all "hybrid" images, which means you can save them on a USB drive and they will be bootable. Installing from a USB drive is also very simple. Just connect a USB drive to your machine and issue the following command:
dd if=archlinux-2012.04-2-archboot-dual.iso of=/dev/sdX bs=1M
We need to make sure that we set the correct input file, our ISO, to the if parameter. Also the output file parameter must be the device and not some partition of the device, such as of=/dev/sdX. The X stands for the letter assigned by the system to your USB drive.
There are some rare cases where the choice for local time on your hardware clock is the best choice. For example, when installing Arch Linux next to Windows XP, which is an operating system not capable of handling a different time on a hardware clock and system clock. More recent versions of the Windows operating system can handle the hardware clock being set to UTC.
Partitioning is a very wide topic. It can be done in an endless number of combinations. We will now discuss some extra information required to understand the partitioning. Also some nice defaults to have a system up and running quickly.
The following list is a selection for normal desktop use. For people wanting to play a lot of games, these size selections will not fit your needs:
When selecting which filesystem to use for your root and home partitions, you should be well informed about the possibilities of the filesystems. When you have no idea, the best choice is ext4 as this is the default filesystem these days with modern features, nice speed, and robustness, so you don't lose any data.

The boot partition will automatically be formatted with the ext2 filesystem. This is the safest choice, as all boot loaders you can find out there will be able to get your system to boot when you have a boot partition formatted as ext2.
There are three ways to point to a block device (partition):
Using the UUID scheme might look ugly in your configuration but this is the most certain way you will always point to the correct device. Say you have some hardware changes and the devices are ordered in a new way; with this you will still have the correct block device selected.
The LABEL scheme is looking very elegant and simple but there might be some name collisions as multiple physical disk partitions can have the same name.
The KERNEL scheme is actually the oldest and here we are just pointing to some device node (such as /dev/sda1), but this could fail someday after some hardware changes, which could lead to a different order of the device nodes.

On a desktop system, especially on Arch Linux, I suggest having a separate /var partition. Depending on the other goals you have for this partition (for example, running a huge MySQL database, other databases, and so on), the appropriate value would be 5 GB and up. Don't overdo it or you will have a lot of empty space in the /var partition. Why so big? Pacman keeps its cache in /var and you don't really want your root filesystem being deadlocked by a disk that's filled up with package cache.
When installing Arch Linux from the Internet, it is best to choose a mirror close to our home for the best download speeds:

When your network is up and running, you can select a mirror and select one that is as close as possible to your location. We will get the best performance this way. Should you be in doubt what the closest mirror is for you, you can always select a global mirror such as mirrors.kernel.org, which will automatically choose a server close to you.
During the installation of Arch Linux, we can select a list of packages to install. I will now share my own preferred way. When this is a first time installation, my personal preference would be to leave all the packages selected from the base group. If you really insist on removing some packages from the base group, go ahead and remove them, but you should really know what you are doing in that case.

If this is not the first install of Arch Linux, you can definitely enable the use of the extra repository so that you can select a whole bunch of applications, which you know for sure you want to have installed on your system. For example, you can immediately install Xorg, GNOME, XFce, KDE, and so on. For a first time install, I would go step-by-step and leave the extra as it is for now.