gentoo simple install

Submitted by lepton on Mon, 06/22/2020 - 17:07

download stage3

tar xpvf stage3-*.tar.bz2 --xattrs-include='*.*' --numeric-owner
###copy whole system to another disk
tar cpf - --exclude=="/mnt/" --one-file-system  / | tar xpf - --xattrs-include='*.*' --numeric-owner


cp --dereference /etc/resolv.conf /mnt/gentoo/etc/

mount --types proc /proc /mnt/gentoo/proc

mount --rbind /sys /mnt/gentoo/sys

mount --make-rslave /mnt/gentoo/sys

mount --rbind /dev /mnt/gentoo/dev

mount --make-rslave /mnt/gentoo/dev

mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm

chroot /mnt/gentoo /bin/bash

source /etc/profile

export PS1="(chroot) ${PS1}"


passwd or .ssh

emerge grub dhcpcd sysklogd

rc-update add sysklogd default

rc-update add sshd default


update /etc/default/grub

grub-install device

grub-mkconfig -o file


backup system

tar cvpzf backup.tar.gz --exclude=/proc  --exclude=/lost+found --exclude=/backup.tar.gz --exclude=/mnt --exclude=/sys  /

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.