RE: chroot diff. errors?

2009-08-18 Thread Mehdi _1

Bob:
Thanks very much for taking the time and explaining in full detail!

I appreciate it(tho didnt expect it)!
:-)

Best Regards;

Mehdi B.



 Date: Mon, 17 Aug 2009 16:54:59 -0600
 From: b...@proulx.com
 To: mehd...@hotmail.com
 CC: bug-coreutils@gnu.org
 Subject: Re: chroot diff. errors?
 
 Mehdi _1 wrote:
  Sometimes the command chroot does not work, for instance ,earlier
  the same command (below) worked in the same directory!  But now I
  get these:
  
  r...@ubuntu9:diskchroot .
  /bin/bash: error while loading shared libraries: libncurses.so.5: cannot 
  open shared object file: No such file or directory
  
  r...@ubuntu9:diskpwd
  /media/disk
 
 This means that loading libncurses.so.5 needed by bash in the chroot
 failed.  In the chroot probably means /media/disk/lib/libncurses.so.5
 inside the chroot but also means any dependent libraries too.  Do all
 of those libraries exist in the chroot?
 
  The /media/disk is a hard drive not on obtical but I changed
  directories anyway but then I get this other error:
  
  r...@ubuntu9:xenchroot /mnt/xen/
  chroot: cannot run command `/bin/bash': No such file or directory
 
 That means that /mnt/xen/bin/bash could not be invoked in the chroot.
 Does it exist there?
 
  Sorry for the long email, I am not looking for answer or reply, it
  is probably something I am running/doing?!  Though as I said the
  chroot worked earlier today on the same machine!?
 
 The most typical problem people have with creating chroots is not
 installing all of the necessary executables and dependent libraries
 inside the chroot.  The documentation for chroot says:
 
  If you want to use a dynamically linked executable, say `bash', then
   first run `ldd bash' to see what shared objects it needs.  Then, in
   addition to copying the actual binary, also copy the listed files to
   the required positions under your intended new root directory.
   Finally, if the executable requires any other files (e.g., data, state,
   device files), copy them into place, too.
 
 Bob

_
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009

chroot diff. errors?

2009-08-17 Thread Mehdi _1

Hi;

Sometimes the command chroot does not work, for instance ,earlier the same 
command (below) worked in the same directory!
But now I get these:

r...@ubuntu9:diskchroot .
/bin/bash: error while loading shared libraries: libncurses.so.5: cannot open 
shared object file: No such file or directory

r...@ubuntu9:diskpwd
/media/disk

Then I thought may be since I was running rsync it gave the above error, I 
exited rsync then:

r...@ubuntu9:diskchroot .
chroot: cannot run command `/bin/bash': Exec format error

I checked /bin and bash exists (dates in March 2nd 2009/ no changes))

The /media/disk is a hard drive not on obtical but I changed directories anyway 
but then I get this other error:

r...@ubuntu9:xenchroot /mnt/xen/
chroot: cannot run command `/bin/bash': No such file or directory
r...@ubuntu9:xenpwd
/mnt/xen

r...@ubuntu9:xenls /bin/bash -l
-rwxr-xr-x 1 root root 729040 2009-03-02 14:22 /bin/bash


Sorry for the long email, I am not looking for answer or reply, it is probably 
something I am running/doing?!
Though as I said the chroot worked earlier today on the same machine!?

Thank You Very Much!

Mehdi B.

Oh.. BTW I forgot:
uname -a
Linux Ubuntu9 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 
i686 GNU/Linux

r...@ubuntu9:disklsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:Ubuntu 9.04
Release:9.04
Codename:jaunty

Best Regards;

Mehdi Bagheri

Austin Texas USA
Southampton England (UK)



_
Get back to school stuff for them and cashback for you.
http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1