[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

chroot: cannot run command `/bin/bash': No such file or directory



Hello,
I have a problem to use chroot:
I did:
sudo -s
mkdir /f
mkdir /f/bin /f/lib
cp /bin/bash  /f/bin

ldd  /bin/bash
         libncurses.so.5 => /lib/libncurses.so.5 (0x00002b2d9014f000)
         libdl.so.2 => /lib/libdl.so.2 (0x00002b2d9039b000)
         libc.so.6 => /lib/libc.so.6 (0x00002b2d9059f000)
         /lib64/ld-linux-x86-64.so.2 (0x00002b2d8ff31000)

cp /lib/libncurses.so.5 /lib/libdl.so.2 /lib/libc.so.6 /lib/ld-2.6.1.so  /f/lib

chroot /f  or chroot /f /bin/bash   gives:
chroot: cannot run command `/bin/bash': No such file or directory

What is wrong in my approach ?

tia
--
Gérard



Reply to: