Search:  
Gentoo Wiki

Gentoo:/bin/chroot

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

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

Links

Retrieved from "http://www.gentoo-wiki.info/Gentoo:/bin/chroot"

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