Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install problem at chroot /mnt/gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dtaylor
n00b
n00b


Joined: 05 Nov 2003
Posts: 2

PostPosted: Wed Nov 05, 2003 6:04 am    Post subject: Install problem at chroot /mnt/gentoo Reply with quote

I’ve heard very good things about Gentoo and have been wanting to try it for a while. Also, the documentation is the most thorough I’ve 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.” I’ve 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. What’s going on?

I’ve 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
View user's profile Send private message
prometheus0815
n00b
n00b


Joined: 01 Nov 2003
Posts: 29
Location: Freiburg, Germany

PostPosted: Wed Nov 05, 2003 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Wed Nov 05, 2003 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
PatG
n00b
n00b


Joined: 27 Oct 2003
Posts: 63
Location: texas

PostPosted: Wed Nov 05, 2003 11:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
dtaylor
n00b
n00b


Joined: 05 Nov 2003
Posts: 2

PostPosted: Wed Nov 05, 2003 11:35 pm    Post subject: D'oh!!! Reply with quote

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
View user's profile Send private message
Pete_Keller
l33t
l33t


Joined: 30 Sep 2003
Posts: 664
Location: Norwich, CT USA

PostPosted: Thu Nov 06, 2003 12:08 pm    Post subject: Reply with quote

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 :lol: )

Pete
_________________
I am a SIGNATURE VIRUS, help me spread - attach me to your signature file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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