You will need at least 1GiB of ram to use the Arch netboot installer. If you want to copy an existing installation from another location, please <todo> FOLLOW THESE INSTRUCTIONS </todo> on how to do so.
WARNING: this will delete all your data!
echo -e 'o\nn\np\n1\n2048\n+256M\nn\np\n2\n\n\nw' | fdisk -u /dev/xvda mkfs.ext3 -L BOOT /dev/xvda1 mount /dev/xvda1 /mnt tar xvf /distros/arch*.tar.gz -C /mnt reboot
Partition /dev/xvda to have at least two partitions. /dev/xvda1 will be boot and should have at least 256MB. You can complete partitioning now or use the Arch linux installation one later. A graphical partitioner can be used with:
root@rescue:~# cfdisk /dev/xvda
Next format the partition:
root@rescue:~# mkfs.ext3 -L BOOT /dev/xvda1
mount /dev/xvda1 /mnt
Extract the installer
tar xvf /distros/arch*.tar.gz -C /mnt
And reboot. On the next boot, for the "user bootloader configuration" the arch linux installer will be loaded.
Installer and post-installation steps
Procede through 0, 1, and 2 as normal. For 3 "Prepare storage device" use the following selections:
2. Partition storage drives
No - do not use GUID partition table
Select "/dev/xvda" as device to partition - /dev/xvde and /dev/xvdf are read-only
In parted, leave partition "1" as is to be /boot and partition otherwise as you see fit - a sane default is to have partition 2 be the rest of the disk
Select "DONE" when done with parted to go back to main "Prepare storage device" menu
Under "4 Set Filesystem Mountpoints" - select optional swap partition, select root partition, and then select "/dev/xvda1" as an additional partition to mount as "/boot"
Select "ext3" as the filesystem for "/dev/xvda1"
Select "No" for "Would you like to create a filesystem on /dev/xvda1?"
Select "Done" Your final selections should resemble:
┌────────────────────────────────────────────────────────────────┐ │ Would you like to create and mount the filesytems like this? │ │ │ │ Syntax │ │ ------ │ │ DEVICE:TYPE:MOUNTPOINT:FORMAT:LABEL:FSOPTIONS:BTRFS_DETAILS │ │ │ │ /dev/xvda2:ext3:/:yes:ROOT:NONE:NONE:NONE:NONE:no: │ │ /dev/xvda1:ext3:/boot:no:BOOT:NONE:NONE:NONE:NONE:no: │ ├────────────────────────────────────────────────────────────────┤ │ < Yes > < No > │ └────────────────────────────────────────────────────────────────┘
On the main menu, under "4 Select Source", choose "2 NETWORK"
For a mirror, I suggest "http://mirrors.xmission.com" which is 4th from the bottom if you scroll to the end.
Proceed as normal until "7 Configure System"
In "7 Configure System", select "/etc/pacman.d/mirrorlist" and uncomment a mirror. Otherwise configure as desired.
For "8 Install Bootloader" select "BIOS" and then "GRUB(2) BIOS". Note we aren't actually going to use grub2, we are just going to use the grub2 configuration as a starting point.
Select "/dev/xvda" as the install point. Do not customize grub.cfg.
Select "no" when asked "Do you want to install another bootloader?"
Select "9 Exit install"
From here, at the shell prompt run:
cp /etc/resolv.conf /install/etc mount --bind /proc /install/proc mount --bind /sys /install/sys mount --bind /dev /install/dev chroot /install /bin/sh pacman -Syy
If at this step you get an error, verify in /etc/pacman.d/mirrorlist that a mirror is uncommented and try again. Then continuing:
pacman -S python2 cp /boot/grub/menu.lst /boot/grub/menu.lst.old cat /boot/grub/grub.cfg | /boot/prgmr-grub2-to-pv-grub-menu > /boot/grub/menu.lst
At this point, /boot/grub/menu.lst should look like the following:
default=0 timeout=10 title Arch Linux root (hd0,0) kernel /vmlinuz-linux root=LABEL=ROOT rootfstype=ext3 rw rootflags=rw,relatime,data=ordered cgroup_disable=memory initrd /initramfs-linux.img title Arch Linux Fallback root (hd0,0) kernel /vmlinuz-linux root=LABEL=ROOT rootfstype=ext3 rw rootflags=rw,relatime,data=ordered cgroup_disable=memory initrd /initramfs-linux-fallback.img
Note the prgmr-grub2-to-pv-grub-menu script is only a partial implementation of a conversion from the grub2 to legacy grub format and may fail, so you should always back up the original /boot/grub/menu.lst before generating a new one. If you are satisfied, then run "exit" to exit the chroot and then reboot.