Re: newbie chroot problem

From: Peter Jensen (usenet_at_pekajemaps.homeip.net)
Date: 08/18/05


Date: 18 Aug 2005 17:47:34 GMT

apollo wrote:

[Snip]

> /crtest/crtest/bin:
> total 780
> drwxr-xr-x 2 root root 4096 Aug 18 12:23 .
> drwxr-xr-x 4 root root 4096 Aug 18 12:22 ..
> -rwxr-xr-x 1 root root 772760 Feb 17 20:30 bash

[Snip]

> Then, when I try chroot /crtest I get:
>
> # chroot /crtest
> chroot: cannot run command `/bin/bash': No such file or directory
> [root@localhost /]#
>
> Obviously, I am missing something here.

I had to look a while to spot it, but it's actually quite simple. You
chroot to /crtest, but all that is there is *another* crtest directory,
where there should have been your new root system. Either move the new
root hierarchy up one level or use chroot /crtest/crtest.

Note that running ldd on a binary is just a minimum requirement for the
app to even start. Other libraries and configuration files may be
required for certain functionality later on. Best of luck with whatever
you're doing.

-- 
PeKaJe
BOFH Excuse #368:
Failure to adjust for daylight savings time.


Relevant Pages

  • Re: newbie chroot problem
    ... where there should have been your new root system. ... root hierarchy up one level or use chroot /crtest/crtest. ... Note that running ldd on a binary is just a minimum requirement for the ...
    (comp.os.linux.misc)
  • Re: newbie chroot problem
    ... where there should have been your new root system. ... root hierarchy up one level or use chroot /crtest/crtest. ... Note that running ldd on a binary is just a minimum requirement for the ...
    (alt.os.linux)
  • Re: newbie chroot problem
    ... where there should have been your new root system. ... root hierarchy up one level or use chroot /crtest/crtest. ... Note that running ldd on a binary is just a minimum requirement for the ...
    (alt.os.linux.redhat)
  • Re: newbie chroot problem
    ... where there should have been your new root system. ... root hierarchy up one level or use chroot /crtest/crtest. ... Note that running ldd on a binary is just a minimum requirement for the ...
    (linux.redhat)
  • Re: 24" monitor recommendations
    ... from the wonderful person Synapse Syndrome said ... include HDCP as a minimum requirement (which is the point of this ...
    (uk.comp.homebuilt)