Differences between revisions 1 and 23 (spanning 22 versions)
Revision 1 as of 2005-05-29 13:36:02
Size: 312
Editor: anonymous
Comment:
Revision 23 as of 2011-10-05 14:15:50
Size: 1157
Editor: PavloRudyj
Comment: replace sudo to #
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07
All chroot does is -for all child processes- replace the root directory on a unix system with one of the operators' choosing.
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[de/chroot|Deutsch]] - English - [[fr/Chroot|Français]] - [[it/chroot|Italiano]] -~
----
Line 4: Line 5:
See : All chroot does is, for all child processes, replace the root directory with the one specified.
Line 6: Line 7:
 * http://en.wikipedia.org/wiki/Chroot
 * http://www.gnu.org/software/coreutils/manual/html_chapter/coreutils_22.html#["SEC145"]

== Setting up a network inside a chroot /tmp/custom/debian-live/chroot/ ==

{{{
# mount -o bind /sys /tmp/custom/debian-live/chroot/sys
# mount -o bind /proc /tmp/custom/debian-live/chroot/proc
# chroot /tmp/custom/debian-live/chroot/
}}}
Now in the chroot you might need to reset the [[Network|network]] in order for the route/dns stuff to be setup.
{{{
# dhclient eth0
}}}

This is useful for testing and configuring a system that is to be deployed, e.g.[[DebianLive]].

<<Anchor(BuildAChroot)>>
== Build a chroot ==
 * [[Debootstrap]] : Setting up another complete Debian install inside a chroot.


== See also ==
 * Debian reference has some [[http://www.debian.org/doc/manuals/reference/ch09#_chroot_system|"chroot" tips]].
 * [[DebianInstaller]]
 * Wikipedia WikiPedia:Chroot
----
ToDo: [[fr/Chroot|Sync with french version]]
 CategorySystemAdministration

Translation(s): Deutsch - English - Français - Italiano


All chroot does is, for all child processes, replace the root directory with the one specified.

Setting up a network inside a chroot /tmp/custom/debian-live/chroot/

# mount -o bind /sys /tmp/custom/debian-live/chroot/sys
# mount -o bind /proc /tmp/custom/debian-live/chroot/proc
# chroot /tmp/custom/debian-live/chroot/

Now in the chroot you might need to reset the network in order for the route/dns stuff to be setup.

# dhclient eth0

This is useful for testing and configuring a system that is to be deployed, e.g.DebianLive.

Build a chroot

  • Debootstrap : Setting up another complete Debian install inside a chroot.

See also


ToDo: Sync with french version