You are not logged in.
Hi all,
i have a strange problem with chroot command:
[root@icewave ~]# env -i HOME=$HOME TERM=$TERM /usr/sbin/chroot /mnt/newdir /bin/bash
/usr/sbin/chroot: cannot run command `/bin/bash': No such file or directory
I obtain the same error message with:
[root@icewave ~]# chroot /mnt/newdir/ /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory
[root@icewave ~]# chroot --version
chroot (GNU coreutils) 6.11
Last edited by luca (2008-05-20 12:49:47)
Offline
you're probby chroot'ing to an empty directory
once the root has been chaned, there is no file called /bin/bash in there
Offline
Hi Kumico,
thanks for your reply; you are right, the dir is empty :-)
Thank you again
Offline