User:Monsieurp/Gentoo Quick Installation Guide

I'm assuming Gentoo is to be installed on /dev/sda and that the disk is blank. Also, I'm assuming you've managed to boot Gentoo off of a USB stick or something of the like and you're at the prompt, trying to figure out what to do next.

To begin with, let's lay out our partition schema:


 * 512 MB allocated for the EFI files
 * 8 GB allocated for the swap
 * the remaining space allocated for the system

Now let's format each partition:

We must now prepare the folders in which partitions are to be mounted:

Let's fetch stage3: {{RootCmd
 * latest_stage3=$(curl http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3.txt 2>/dev/null | awk '$0 !~ /^#/ { print $1; exit; }')
 * url="http://distfiles.gentoo.org/releases/amd64/autobuilds/${latest_stage3}"
 * wget "${url}"
 * tar xvjpf stage3* -C /mnt/gentoo

Bind mount /dev, /proc and /sys: {{RootCmd }}
 * mount -t proc none proc
 * mount --rbind /sys sys
 * mount --make-rslave sys
 * mount --rbind /dev dev
 * mount --make-rslave dev

Copy /etc/resolv.conf and chroot in your new system: {{RootCmd }}
 * cp -L /etc/resolv.conf /mnt/gentoo/etc
 * chroot /mnt/gentoo /bin/bash
 * source /etc/profile

Done!