This document contains various tips and tricks for the Gentoo/x86 installation. Most of them are discussed in a dense way - they are meant as an addendum to the installation instructions and not as a replacement.
Advanced Installations
Simplifying the Installation
Once you are booted from the LiveCD, load the appropriate RAID modules. For instance, if you plan on using RAID-1:
# modprobe raid1
When you partition your disks, make sure that your partitions use
After partitioning, create the
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/sda2
raid-disk 0
device /dev/sdb2
raid-disk 1
raiddev /dev/md2
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/sda3
raid-disk 0
device /dev/sdb3
raid-disk 1
Now create the necessary RAID devices for each RAID device you listed in
# mkraid /dev/md0 # mkraid /dev/md1 # mkraid /dev/md2
The Linux Software RAID driver will start creating the metadevices. You can see
its progress in
From now onwards, use
After mounting
When you're configuring your kernel, make sure you have the appropriate RAID
support
When installing extra tools, emerge
When configuring your bootloader, make sure it gets installed in the MBR of
Many people want to leave their system when it's compiling. In certain cases this is rather difficult as the installation is done in a public environment where you cannot trust everyone. If this is the case, you want to be able to perform the compilation in the background and log out from all terminals.
There are several possible solutions for this. The first one is to use
# screen -S gentoo
Once inside the screen session you can perform the entire installation. When you
want to leave your terminal, press
To regain access to your terminal, log in as root again and
# screen -x gentoo
If you can't use screen, there is still a way to leave your terminal. Follow the
installation instructions, but when you come to the point where a long-term
compilation would be started (for instance the
# pwd /usr/portage # nohup ./scripts/bootstrap.sh &
Now exit the chrooted environment (
When you want to check the compilation, log in as root (on the LiveCD) and chroot back into your environment and go to the directory where you left off:
# chroot /mnt/gentoo /bin/bash # env-update && source /etc/profile # cd /usr/portage
Now use the
If you ever get tired of following the changes, press