You are not logged in.

#1 2008-05-20 09:41:58

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

[Solved] Chroot problem

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

#2 2008-05-20 11:36:43

kumico
Member
Registered: 2007-09-28
Posts: 224
Website

Re: [Solved] Chroot problem

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

#3 2008-05-20 12:49:21

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: [Solved] Chroot problem

Hi Kumico,
thanks for your reply; you are right, the dir is empty :-)
Thank you again

Offline

Board footer

Powered by FluxBB