-
New Arch 64-bit virtual machine, memory 1G, Mount Archlinux2015.05.01 ISO file to CD, network Select Bridge physical machine NIC, HDD set 32G. Under "Settings-system-motherboard-extended features" tick "Enable EFI" and start the virtual machine and select the first menu to start.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/5C/wKioL1VIFK-BbME_AAB6K4Io3lA669.jpg "title=" Boot.png "alt=" Wkiol1vifk-bbme_aab6k4io3la669.jpg "/>
-
Automatically log on when startup is complete.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/60/wKiom1VIE9iRaJFQAABfVB1Rc7o556.jpg "title=" Iso_ Logon.png "alt=" Wkiom1vie9irajfqaabfvb1rc7o556.jpg "/>
-
Start partitioning the virtual machine hard disk, GPT mode, sub three zones, one to EFI boot, one/, one swap.
root@archiso ~ # parted
GNU Parted 3.2
Using/dev/sda
Welcome to GNU parted! Type ' help ' to view a list of commands.
(parted) Mklabel
New disk label type? GPT
(parted) Mkpart
partition name? []?
file system type? [ext2]?
Start 0
End ? 300M
Warning:the resulting partition is not properly aligned for best performance.
Ignore/cancel? I
(parted) Mkpart
partition name? []?
file system type? [ext2]?
Start 300M
End ? 32G
Warning:the resulting partition is not properly aligned for best performance.
Ignore/cancel? I
(parted) Mkpart
partition name? []?
file system type? [ext2]?
Start 32G
End ? 34G
Warning:the resulting partition is not properly aligned for best performance.
Ignore/cancel? I
(parted) quit
information:you need to Update/etc/fstab
root@archiso ~ #
Then format the partition
root@archiso ~ # mkfs.vfat-f32/dev/sda1
root@archiso ~ # Mkfs.ext4/dev/sda2
root@archiso ~ # Mkswap/dev/sda3
Then mount the partition
root@archiso ~ # Mount/dev/sda2/mnt
root@archiso ~ # mkdir-p/mnt/boot/efi
root@archiso ~ # Mount/dev/sda1/mnt/boot/efi
root@archiso ~ # Swapon/dev/sda3
4. Empty the Mirrorlist file and write to the source of 163.
root@archiso ~ # echo >/etc/pacman.d/mirrorlist
root@archiso ~ # Nano/etc/pacman.d/mirrorlist
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
5. Start the installation system
root@archiso ~ # pacstrap/mnt Base Base-devel
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/60/wKioL1VIVbvhK6QDAAn-gY4-XYE956.jpg "title=" Arch150505.png "alt=" Wkiol1vivbvhk6qdaan-gy4-xye956.jpg "/>
6. After installation, write to the partition table and switch to the new system
Root @archiso ~ # genfstab-u-p/mnt >>/mnt/etc/fstab
root@archiso ~ # arch-chroot/mnt
sh-4.3#
7. Edit the/etc/locale.gen, remove the three preceding # comments and run
sh-4.3# Nano/etc/locale.gen
en_US. UTF-8 UTF-8
Zh_cn. UTF-8 UTF-8
Zh_cn. GB2312
sh-4.3# Locale-gen
8. Set the host name and root password
sh-4.3# echo arch150501 >/etc/hostname
sh-4.3# passwd
Enter new UNIX Password: Ab12345678
Retype new UNIX Password: Ab12345678
Passwd:password updated successfully
sh-4.3#
9. Install several software and grub initiators to be installed in the EFI version.
sh-4.3# pacman-s openssh net-tools vim grub-efi-x86_64 efibootmgr
10. Install grub into the EFI partition so that you have one more grub boot entry.
sh-4.3# grub-install--efi-directory=/boot/efi--bootloader-id=arch-grub--recheck
11. Build the Grub configuration file and add a startup item to grub.
sh-4.3# Grub-mkconfig-o/boot/grub/grub.cfg
12. Until this installation is complete, uninstall, restart, or shutdown, unmount the CD ISO and restart
sh-4.3# Exit
sh-4.3# Umount/mnt/boot/efi
sh-4.3# umount/mnt
sh-4.3# reboot
This article is from "It shrimp and Paul Yang" blog, please make sure to keep this source http://423877.blog.51cto.com/413877/1642053
VirtualBox above UEFI/GPT installation Archlinux2015.05.01