rendered paste body• get pacman package from ftp://ftp.archlinux.org/current/os/i686 or ftp://ftp.archlinux.org/current/os/x86_64
• become root
• extract it to /
∘ cd / && tar xvfz pacman-*.pkg.tar.gz
• prepare disk
∘ mkfs.ext3 /dev/sdXY
∘ mkdir /arch
∘ mount /dev/sdXY /arch
• sync pacman
∘ pacman.static -Sy -r /newarch
• install base
∘ pacman.static -Sy base -r /newarch
• if necessary, create mandatory dev nodes
∘ mknod -m 660 /arch/dev/console c 5 1
∘ mknod -m 660 /arch/dev/null c 1 3
• bind dynamic filesystems
∘ mount /dev/ /arch/dev/ --bind
∘ mount /sys/ /arch/sys/ --bind
∘ mount /proc/ /arch/proc/ --bind
• inform about mounts (fix for 'not enough space')
∘ grep -v rootfs /proc/mounts > /etc/mtab
• inform about DNS
∘ cp /etc/resolv.conf /arch/etc/
• chroot
∘ chroot /arch /bin/bash
• set root password
∘ passwd
• generate locales
∘ vi /etc/locale.gen
∘ locale-gen
• regenerate initrd (re-install kernel)
∘ pacman -S kernel26
• install other software
• edit mounts
∘ vi /etc/fstab
• edit init settings
∘ vi /etc/rc.conf
• edit bootloader menu
∘ vi /boot/grub/menu.lst
• install bootloader
∘ cp /usr/lib/grub/i386-pc/* /boot/grub/
∘ grub
‣ root (hdX,Y)
‣ setup (hdX)
‣ quit
• exit chroot
• unmount target partition
∘ umount /dev/sdXY
• reboot