Gentoo Wiki


This file is part of the Gentoo Structure index.
Parent Directory Related Links


Allows you to change the location of your base directory.
This is commonly done when initially setting up Gentoo as mentioned in the Installing the Gentoo Base System portion of the Gentoo handbook.

Code: Gentoo Handbook Installation chroot related Code

# mount /dev/hd??

# mount /mnt/gentoo

# mkdir /mnt/gentoo/proc

# mount -t proc none /mnt/gentoo/proc

# mount -o bind /dev /mnt/gentoo/dev

# chroot /mnt/gentoo /bin/bash

# env-update

>> Regenerating /etc/

# source /etc/profile

# export PS1="(chroot) $PS1"

#do something here

# exit


Retrieved from ""

Last modified: Tue, 19 Feb 2008 09:08:00 +0000 Hits: 966