View previous topic :: View next topic |
Author |
Message |
lizdexik n00b
Joined: 22 May 2004 Posts: 6
|
Posted: Sat May 22, 2004 7:14 pm Post subject: Problem: chroot /mnt/gentoo /bin/bash: No such file or... |
|
|
Hello Everyone,
I've made it to section 8.6 in the install guide and have been very careful not to overlook any details. I was able to mount the /proc filesystem with no problem and was also able to cp /etc/resolv.conf to /mnt/gentoo/etc/resolv.conf. When I try to change the root directory by doing a chroot /mnt/gentoo /bin/bash, I get the error "chroot: /bin/bash: No such file or directory". I've scoured through the documentation, read many posts on this board, and tried countless google searches to no avail.
Anyone have any ideas?
Much Appreciated. |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sat May 22, 2004 7:21 pm Post subject: |
|
|
Did you extract the tarball to the right directory? _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
lizdexik n00b
Joined: 22 May 2004 Posts: 6
|
Posted: Sat May 22, 2004 7:36 pm Post subject: |
|
|
I did everything exactly as instructed in the install.html file. /bin/bash exists if that's what you're asking. |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sat May 22, 2004 7:38 pm Post subject: |
|
|
lizdexik wrote: | I did everything exactly as instructed in the install.html file. /bin/bash exists if that's what you're asking. | Does /mnt/gentoo/bin/bash exist? _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
lizdexik n00b
Joined: 22 May 2004 Posts: 6
|
Posted: Sat May 22, 2004 7:44 pm Post subject: |
|
|
It appears that /mnt/gentoo/bin/bash doesn't exist. Do I need to create it then? |
|
Back to top |
|
|
lizdexik n00b
Joined: 22 May 2004 Posts: 6
|
Posted: Sat May 22, 2004 8:03 pm Post subject: |
|
|
Or did I extract into the wrong directory? |
|
Back to top |
|
|
tins n00b
Joined: 18 Jul 2003 Posts: 20
|
Posted: Sat May 22, 2004 8:27 pm Post subject: |
|
|
If I am not completely mistaken, the chroot command calls /bin/bash from the current "environment", I mean the OS and filesystem that was booted from the Live CD. This should work wether you extracted the stage tarball to the right directory or not.
Try "ls -l /bin/bash". What does it say?
Also, if /mnt/gentoo/bin/bash exists, you could try to copy it over to /bin. |
|
Back to top |
|
|
lizdexik n00b
Joined: 22 May 2004 Posts: 6
|
Posted: Sat May 22, 2004 8:39 pm Post subject: |
|
|
ls -l /bin/bash
-rwxr-xr-x 1 root root 686856 Feb 15 2003 /bin/bash
/mnt/gentoo/bin/bash does not exist, but all of the proper files seem to located in the /bin directory. |
|
Back to top |
|
|
mentok n00b
Joined: 02 Nov 2003 Posts: 22 Location: Ontario, Canada
|
Posted: Sat May 22, 2004 8:52 pm Post subject: |
|
|
lizdexik wrote: | It appears that /mnt/gentoo/bin/bash doesn't exist. Do I need to create it then? |
Sounds like the tarball wasn't extracted properly. Make sure your root partition is mounted at /mnt/gentoo and any other partitions you need (like /boot for example) are mounted inside /mnt/gentoo and try extracting the tarball again. Make sure you before extracting the tarball as the CWD is where it will be extracted to. |
|
Back to top |
|
|
lizdexik n00b
Joined: 22 May 2004 Posts: 6
|
Posted: Sat May 22, 2004 9:12 pm Post subject: |
|
|
Must have been an oversite on my part...you are correct. Now I feel like a real dumb-ass. Thanks for your help! |
|
Back to top |
|
|
Ian l33t
Joined: 28 Oct 2002 Posts: 834 Location: Somerville, MA
|
Posted: Wed May 26, 2004 2:20 pm Post subject: |
|
|
I'm having the same problem, but the tarball is extracted to the correct spot. Very annoying, I even tried using a Knoppix LiveCD with the same result (not working). |
|
Back to top |
|
|
|