View previous topic :: View next topic |
Author |
Message |
dtaylor n00b
Joined: 05 Nov 2003 Posts: 2
|
Posted: Wed Nov 05, 2003 6:04 am Post subject: Install problem at chroot /mnt/gentoo |
|
|
Ive heard very good things about Gentoo and have been wanting to try it for a while. Also, the documentation is the most thorough Ive come across, but I still ran into a problem. In the section snipped below, the step
chroot /mnt/gentoo /bin/bash
results in an error for me. I get Illegal instruction. Ive tried chroot-ing to a handful of other directories and I usually got some other error regarding bash. The only way I could recreate the illegal instruction error was by entering the specific chroot /mnt/gentoo command. I have tried entering this command in other directories. Whats going on?
Ive tried my best to follow the instructions for a GRP installation TO THE LETTER, and have not run into any other issues, even down to the use of ext3 for /dev/hda1 and Reiser for /dev/hda3.
Please help!
Code: | Code listing 8.6: Prepping and entering the chroot environment
# mount -t proc proc /mnt/gentoo/proc
# cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
# chroot /mnt/gentoo /bin/bash
# env-update
Regenerating /etc/ld.so.cache...
# source /etc/profile
(The above points your shell to the new paths and updated binaries) |
|
|
Back to top |
|
|
prometheus0815 n00b
Joined: 01 Nov 2003 Posts: 29 Location: Freiburg, Germany
|
Posted: Wed Nov 05, 2003 7:13 am Post subject: |
|
|
I can't reproduce that error right now, but you could try the following:
Before you attempt to chroot, ave a look into the directory you want to chroot to (/mnt/gentoo in your case). The command to be executed AFTER the chroot (with new / location, /bin/bash in your case) has to be there. So check whether /mnt/gentoo/bin/bash exists. If it doesn't, try to
Code: | # cp /bin/bash /mnt/gentoo/bin/bash |
Additionally, remember this quote from "info chroot":
Quote: | If COMMAND is not specified, the default is the value
of the `SHELL' environment variable or `/bin/sh' if not set, invoked
with the `-i' option. |
So you might want to try an "echo $shell" before chrooting and skip the /bin/bash command.
Maybe this will help you some. Remember to post a reply in either case. _________________ Man must shape his tools, lest they shape him. |
|
Back to top |
|
|
Pete_Keller l33t
Joined: 30 Sep 2003 Posts: 664 Location: Norwich, CT USA
|
Posted: Wed Nov 05, 2003 4:01 pm Post subject: |
|
|
dtaylor,
What processor do you have? What CD are you using?
You might have a problem where the CD is compiled for a higher processor than you have (for example athalon-XP cd with an athalon processor)
Pete _________________ I am a SIGNATURE VIRUS, help me spread - attach me to your signature file. |
|
Back to top |
|
|
PatG n00b
Joined: 27 Oct 2003 Posts: 63 Location: texas
|
Posted: Wed Nov 05, 2003 11:31 pm Post subject: |
|
|
Pete_Keller wrote: | You might have a problem where the CD is compiled for a higher processor than you have (for example athalon-XP cd with an athalon processor) |
I believe this is the correct answer. I did this exact thing and had this problem. |
|
Back to top |
|
|
dtaylor n00b
Joined: 05 Nov 2003 Posts: 2
|
Posted: Wed Nov 05, 2003 11:35 pm Post subject: D'oh!!! |
|
|
Yep, that was the issue all the time. I feel like a 1st class bonehead! I downloaded the Athlon-XP iso for my home computer, but after burning them thought "Why mess up my working RedHat installation until after I try this out elsewhere?" So I ended up trying to install it on an old Pentium 350MHz.
Duh!
Sorry, everyone. But after waiting for it to download, burn, untar, etc., I totally forgot about them being completely different processors!
Thanks very much for the replies, though! |
|
Back to top |
|
|
Pete_Keller l33t
Joined: 30 Sep 2003 Posts: 664 Location: Norwich, CT USA
|
Posted: Thu Nov 06, 2003 12:08 pm Post subject: |
|
|
dtaylor,
That is why I download the bare bones 386 iso, and then perform a stage 1 install, never have to worry that it is not complient (just that hell will freeze over before the 386 is finished )
Pete _________________ I am a SIGNATURE VIRUS, help me spread - attach me to your signature file. |
|
Back to top |
|
|
|