In fact, all the content in this article can be found on the Archwiki, and update more comprehensive (just more scattered), I do just a small summary of the installation process, each step I will explain a little bit, but will not say in particular, after all, this is only a installation of the guide text, not a wiki.
The first is obviously to download the latest ArchLinux installation image:
1, open the ArchLinux source with a browser, such as mirrors.163.com,mirrors.ustc.edu.cn (here 163 for example): (URL) http://mirrors.163.com/archlinux/
As you can see, there is an ISO directory, which is the address where the installation image is located. It looks like this when it's open:
Where the latest directory contains the official latest archlive image, and the Archboot directory is another version of the Archboot image (formerly the official ArchLinux image, including a FreeBSD-like graphical installation script Oh, Interested in children's shoes can try, the feeling is still more useful oh). Not much to say, or into the latest download the installation image (directly throw address:) http://mirrors.163.com/archlinux/iso/latest/ Archlinux-2016.01.01-dual.iso (build or go in yourself oh, maybe you see this article, February 2016 or even 2017 years of the image has been out, recommended to download the latest)
More than 600 trillion, time is long, I first Army Day how to do the installation of USB, if you use a Linux system, direct DD into the U disk on the line (command I do not say that I think Linux users should be, will not Google Baidu will be a bit, Another way to do this is to be a man. DD (the base?) ), I still formulate windows under the majority of Linux small white-based).
Taking into account that the online base is using Ultra ISO as a startup disk, I will use this software for public opinion:
Using ultra ISO to open the image file you just downloaded, select Start-to-write HDD image
and select Raw write in the next window:
After a while, it will be finished (if it fails to start, please go to the Internet to find a more reliable method, (because this is not the focus))
Let's say everyone here has the boot method, and below that is the installation (I used the vbox virtual machine)
Well, now the computer Support x86_64 (AMD64), as long as the computer is not too bad, choose this is OK, memory is small, you can choose i686 can save memory Oh (UP and DOWN arrow Select, enter continue, do not I teach it).
Well, see a command-line interface to lose a lsblk look at the hard drive:
That SDA is the hard drive. Partition CFDISK/DEV/SDA, select DOS (or not) on the next screen
Then new a partition (here I was to give all the space to our btrfs partition, you crossing on-demand partitioning, on-demand partitioning) and add the boot flag (in case some SB motherboard only has the boot logo of the hard drive):
Then select "Write" to write and select "Quit" to exit. Note that the top start, must be 2048 or more (such as 4096 8192 ...). ), otherwise btrfs cannot be a boot partition, what is your 64? That...... Change the individual tool partition ...
Again lsblk, we see the SDA1, partition to fix.
The next step is formatting, so excited, do not format the wrong partition Oh (crossing: Your sister's under the virtual machine excited a p, on a partition ... )
Mkfs.btrfs/dev/sdax
See this hint to show that the format was successful. Next, create the sub-volume:
I created the rootfs as a archlinux/, established Homefs AS/home, followed by the Mount:
Explain: CD first. Jump out of the/mnt directory and then Umount (unload) The SDA1 (not CD out will umount failure), then the ROOTFS sub-volume mounted to/mnt, and then set up/mnt/home directory, Mount Homefs to/mnt/home, Finally, use the Mount command to see if the mount is successful.
As for the mount parameters, as an example, I use only a compress=lzo, that is, with Lzo mode compression volume, Lzo is an advanced compression real-time algorithm, can reduce disk occupancy, improve the performance of the hard disk oh, of course, if the system installed on the SD card and other special slow device, I recommend zlib algorithm, At the expense of some CPU performance for hard drive speed, because the zlib compression rate, such as the original 100M files compressed into 50M, read and write obviously only half the time, very good understanding.
Other mount parameters, copy the wiki:
Depending on whether you are SSD or HDD, picking. In addition, a little mention, Btrfs now does not support each sub-volume with different parameters to mount, so only the first sub-volume mount need to preaching a bunch of parameters, such as the top I mount home, only add a subvol parameter, specify the sub-volume, the other will default to Rootfs the same.
Mount OK, the next step is to install, first edit
Put your fastest source in the front, like I used 163 for example:
Then the basic system is installed:
I installed the base btrfs-progs grub three items, if need wifi-menu even wireless, also need to rack Wpa_actiond dialog, well, installs quickly, a few minutes is finished.
OK, next build fstab with Grub boot entry:
Well, order me to use red box out, must be in order, don't knock the wrong.
The first step is to use genfstab–u/mnt to view the generated fstab items, if no problem, the second step is to use the >> symbol to write these to/mnt under the/etc/fstab (why is the mnt under it?). )。
Then use chroot to generate the Grub menu with Grub-mkconfig. and import Grub.cfg
Last step, install grub to MBR:
Well, note that the last line, with no error reported, indicates that the installation was successful.
The next reboot will be OK.
Exit the chroot environment first, then sync (do not really matter), and then reboot
Start successfully, log in with root, password is empty
Well, now the system is 768M, so big.
ArchLinux installation on Btrfs partition (BIOS article)