Entering the new environment - dpopchev/howto-quick-setup-gentoo GitHub Wiki

Handbook

  • Gentoo Live CD
    chroot /mnt/gentoo /bin/bash 
    source /etc/profile 
    export PS1="(chroot) ${PS1}"
    
  • non Gentoo Live CD
    chroot /mnt/gentoo /bin/env -i TERM=$TERM /bin/bash 
    env-update 
    source /etc/profile 
    export PS1="(chroot) $PS1" 
    

Mounting partitions to mount points

mount /dev/sda1 /boot

NOTE Subsequent commands assume working in the chroot env, if not otherwise said.