Gentoo Archives: gentoo-user

From: Wolf Canis <wolf.canis@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] chroot problem
Date: Sat, 31 May 2008 10:40:44
Message-Id: 48412B25.3060303@googlemail.com
In Reply to: [gentoo-user] chroot problem by Peter Humphrey
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Peter Humphrey wrote:
5 [...]
6 > # cd /mnt/rescue
7 > # mount -tproc proc proc
8 > # mount -obind /dev dev
9
10 I mean that the mount commands should be:
11
12 # mount -tproc proc /mnt/rescue/proc
13 # mount -obind /dev /mnt/rescue/dev
14
15 I just build a mini chroot environment. My working
16 directory is /root.
17 I create under /root a directory x. The contents under x
18 is:
19
20 # ls -R
21 x:
22 bin dev lib proc
23
24 x/bin:
25 bash
26
27 x/dev:
28
29 x/lib:
30 ld-linux.so.2 libc.so.6 libdl.so.2 libncurses.so.5
31
32 x/proc:
33
34 Then my mount commands:
35
36 # mount -tproc proc x/proc
37 # mount -obind /dev x/dev
38
39 Then chroot:
40
41 # chroot /root/x /bin/bash
42 wolf-di6400 0(0) 10:38 AM / #
43
44
45 Hope that helps.
46
47 W. Canis
48 -----BEGIN PGP SIGNATURE-----
49 Version: GnuPG v2.0.9 (GNU/Linux)
50 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
51
52 iEYEARECAAYFAkhBKyMACgkQKT9zBKF0twWttgCffzjUSQZAxNBZcAwf9avjvZYa
53 YDoAn1Rw5y18equ4b+27hAhCnboyfF0x
54 =Um4X
55 -----END PGP SIGNATURE-----
56 --
57 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] chroot problem Wolf Canis <wolf.canis@××××××××××.com>