View previous topic :: View next topic |
Author |
Message |
brucebertrand Tux's lil' helper
Joined: 06 Feb 2004 Posts: 83 Location: D.C.
|
Posted: Wed Jul 26, 2006 9:32 pm Post subject: chroot not working |
|
|
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 |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Wed Jul 26, 2006 9:46 pm Post subject: |
|
|
/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 |
|
|
brucebertrand Tux's lil' helper
Joined: 06 Feb 2004 Posts: 83 Location: D.C.
|
Posted: Wed Jul 26, 2006 10:03 pm Post subject: |
|
|
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 |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
|
Back to top |
|
|
brucebertrand Tux's lil' helper
Joined: 06 Feb 2004 Posts: 83 Location: D.C.
|
Posted: Wed Jul 26, 2006 10:19 pm Post subject: |
|
|
missing the required libraries in the new root.
Thanks. |
|
Back to top |
|
|
|