LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (http://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   chroot'ing problem in Gentoo Stage 1 Install (http://www.linuxquestions.org/questions/linux-distributions-5/chrooting-problem-in-gentoo-stage-1-install-344178/)

logosys 07-18-2005 02:49 AM

chroot'ing problem in Gentoo Stage 1 Install
 
Howdy! As the title states, I'm trying to install Gentoo on my machine, and have followed the manual religiously. No problems until I get to the chrooting part. I get:

Code:

chroot /mnt/gentoo /bin/bash
chroot: cannot run command 'bin/bash' : Exec Format Error

Unfortunately, I have no idea what that means, or what to do from here. Any advice? Thanks.

Pete M 07-18-2005 03:31 AM

logosys

Just a couple of observations

You are in the right directory ?

Code:

# cd /mnt/gentoo
Did you mount the proc file system ?

Code:

# mount -t proc none /mnt/gentoo/proc
That's about all I can suggest at the moment

Pete

oneandoneis2 07-18-2005 04:15 AM

Does /mnt/gentoo/bin/bash exist..?

logosys 07-18-2005 09:15 AM

Quote:

You are in the right directory ?
Yeah, I had to double check that :cool:

Quote:

Did you mount the proc file system ?
Yeah. I can umount and mount again though, just in case I misplaced it.

Quote:

Does /mnt/gentoo/bin/bash exist..?
Yeah, but I have no idea how to check if it's "right" or not....

Thanks for the help guys, any other ideas? Or better ways to check the above?

oneandoneis2 07-18-2005 09:21 AM

Hummm.... does it have the right file permissions?

(Clutching at straws here, I know. . . )

69_rs_ss 07-18-2005 10:02 AM

Are you sure you have the right livecd in the drive? If you are trying to chroot on a i386 with an AMD64 disk, it will error like this.

Here are some threads on the gentoo forum that confirm this could be the issue:
http://forums.gentoo.org/viewtopic-t...mat+error.html
http://forums.gentoo.org/viewtopic-t...mat+error.html

logosys 07-18-2005 01:10 PM

Quote:

Originally posted by oneandoneis2
Hummm.... does it have the right file permissions?

(Clutching at straws here, I know. . . )

Permissions are ok (but shouldn't being root negate any permission problems, anyway?)

I used the DVD out of the latest Linux Format magazine, and downloaded the AMD64 stage from http://gentoo.seren.com/gentoo/releases/amd64/

To my knowledge, the Portage snapshot is independent of architecture (set in make.conf). If you think it will help, I can burn my own disk from an AMD64 specific ISO image....


All times are GMT -5. The time now is 05:14 PM.