Gentoo:/bin/chroot

From Gentoo Linux Wiki

Jump to: navigation, search
This file is part of the Gentoo Structure index.
Parent Directory Related Links

[edit] About

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/ld.so.cache...

# source /etc/profile

# export PS1="(chroot) $PS1"

# do something here

# exit

[edit] Links

Personal tools