[gentoo-user] chroot complain not able to find file/directory when it's actually there

2009-01-03 Thread Zhang Weiwu
Hello. Sorry for stupid newbie question: # cp /bin/sh /usr/local/bin/sh # chroot /usr/local /bin/sh chroot: cannot run command `/bin/sh': No such file or directory In theory it should work, right? This is the first time I run chroot not for rescuing a broken system (which means /dev/ and /proc/

Re: [gentoo-user] chroot complain not able to find file/directory when it's actually there

2009-01-03 Thread Alan McKinnon
On Sunday 04 January 2009 06:41:31 Zhang Weiwu wrote: Hello. Sorry for stupid newbie question: # cp /bin/sh /usr/local/bin/sh # chroot /usr/local /bin/sh chroot: cannot run command `/bin/sh': No such file or directory In theory it should work, right? This is the first time I run chroot not