Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chroot not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
brucebertrand
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2004
Posts: 83
Location: D.C.

PostPosted: Wed Jul 26, 2006 9:32 pm    Post subject: chroot not working Reply with quote

anyone ever have chroot tell you that /bin/bash doesn't exist?

Code:
root@localhost# chroot /foo /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory


but /bin/bash is fine...
what gives?
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed Jul 26, 2006 9:46 pm    Post subject: Reply with quote

/foo should be the root of the chroot filesystem. /bin/bash that the chroot command is complaining about missing should be at /foo/bin/bash. If you are trying to install gentoo, then you need to read the installation manual more closely. If not, then read up on chroot. If /foo/bin/bash is there, then I'm afraid I'm not sure what is going on. In that case, please post the output of "mount" and "df".

Edit: By the way, I just reread this post and it sounded a little snippy. I didn't intend it that way. Sorry.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
brucebertrand
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2004
Posts: 83
Location: D.C.

PostPosted: Wed Jul 26, 2006 10:03 pm    Post subject: Reply with quote

First off, I thought the entire purpose of chroot was to run a process on your current root, but make it believe it exists in the new root.
In other words, /foo/bin/bash should not need to exist, because you're running /bin/bash and its spawing with /foo as its root.

Still, I tried your suggestion and copied /bin/bash to /foo/bin/bash. No effect.

As requested here's my output from mount and df

Code:
[root@localhost ~]# mount
/dev/hda5 on / type reiserfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda2 on /boot type ext2 (rw)
/dev/hda7 on /mnt/share type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0000)

[root@localhost ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda5             14650748   2975952  11674796  21% /
none                    225352         0    225352   0% /dev/shm
/dev/hda2                46665     22071     22185  50% /boot
/dev/hda7              5234948     33248   5201700   1% /mnt/share
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed Jul 26, 2006 10:08 pm    Post subject: Reply with quote

Perhaps this will help: http://gentoo-wiki.com/Special:Search?search=chroot&go=Go
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
brucebertrand
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2004
Posts: 83
Location: D.C.

PostPosted: Wed Jul 26, 2006 10:19 pm    Post subject: Reply with quote

missing the required libraries in the new root.
Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum