Wolf Canis <[EMAIL PROTECTED]>
29/05/2008 11:38
Por favor, responda a gentoo-user
 
        Para:   gentoo-user@lists.gentoo.org
        cc: 
        Asunto: Re: [gentoo-user] chroot problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Humphrey wrote:
> I have no problem chrooting into a system on the hard disk if I've 
booted 
> from an installation CD, but every time I try it after booting from 
another 
> HD partition I get e.g. this:
> 
> # chroot /mnt/rescue /bin/bash
> chroot: cannot run command `/bin/bash': Permission denied
> 
> Ls shows the same permissions in each case, and I always make sure to:
> 
> # cd /mnt/rescue
> # mount -tproc proc proc
> # mount -obind /dev dev
> 
> ...first.
> 
> What am I doing wrong?
> 
Only for verification, have you under /mnt/rescue /bin/bash?
Or with other words have this /mnt/rescue/bin/bash?
And with the appropriate permissions?

W. Canis

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg+eZ0ACgkQKT9zBKF0twWTtwCdHIkXGHwaas50Zy2leKo5g6iU
gP8AnRuiWCgemE/GFja4RaduEfcWp/9g
=hplz
-----END PGP SIGNATURE-----
-- 
gentoo-user@lists.gentoo.org mailing list
**********************************************************

Just in case, you'll also need proper permissions for /mnt/rescue/lib and 
libraries inside there. Bash dinamically loads libraries, so the user 
running it must have execution perms over invoked libraries.

That puzzled me for two weeks till I finally fixed it last saturday :-P

HTH,
Abraham

-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to