1 |
Wolf Canis <wolf.canis@××××××××××.com> |
2 |
29/05/2008 11:38 |
3 |
Por favor, responda a gentoo-user |
4 |
|
5 |
Para: gentoo-user@l.g.o |
6 |
cc: |
7 |
Asunto: Re: [gentoo-user] chroot problem |
8 |
|
9 |
-----BEGIN PGP SIGNED MESSAGE----- |
10 |
Hash: SHA1 |
11 |
|
12 |
Peter Humphrey wrote: |
13 |
> I have no problem chrooting into a system on the hard disk if I've |
14 |
booted |
15 |
> from an installation CD, but every time I try it after booting from |
16 |
another |
17 |
> HD partition I get e.g. this: |
18 |
> |
19 |
> # chroot /mnt/rescue /bin/bash |
20 |
> chroot: cannot run command `/bin/bash': Permission denied |
21 |
> |
22 |
> Ls shows the same permissions in each case, and I always make sure to: |
23 |
> |
24 |
> # cd /mnt/rescue |
25 |
> # mount -tproc proc proc |
26 |
> # mount -obind /dev dev |
27 |
> |
28 |
> ...first. |
29 |
> |
30 |
> What am I doing wrong? |
31 |
> |
32 |
Only for verification, have you under /mnt/rescue /bin/bash? |
33 |
Or with other words have this /mnt/rescue/bin/bash? |
34 |
And with the appropriate permissions? |
35 |
|
36 |
W. Canis |
37 |
|
38 |
-----BEGIN PGP SIGNATURE----- |
39 |
Version: GnuPG v2.0.9 (GNU/Linux) |
40 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
41 |
|
42 |
iEYEARECAAYFAkg+eZ0ACgkQKT9zBKF0twWTtwCdHIkXGHwaas50Zy2leKo5g6iU |
43 |
gP8AnRuiWCgemE/GFja4RaduEfcWp/9g |
44 |
=hplz |
45 |
-----END PGP SIGNATURE----- |
46 |
-- |
47 |
gentoo-user@l.g.o mailing list |
48 |
********************************************************** |
49 |
|
50 |
Just in case, you'll also need proper permissions for /mnt/rescue/lib and |
51 |
libraries inside there. Bash dinamically loads libraries, so the user |
52 |
running it must have execution perms over invoked libraries. |
53 |
|
54 |
That puzzled me for two weeks till I finally fixed it last saturday :-P |
55 |
|
56 |
HTH, |
57 |
Abraham |
58 |
|
59 |
-- |
60 |
gentoo-user@l.g.o mailing list |