Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] cannot chroot in to existing (but b0rked) install
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
bilbravo
Guru
Guru


Joined: 30 May 2003
Posts: 319
Location: Baltimore, MD

PostPosted: Tue Jun 12, 2007 12:24 am    Post subject: [Solved] cannot chroot in to existing (but b0rked) install Reply with quote

I was going through the X.org fonts HOWTO on gentoo-wiki.com, and portage gave some errors during emerage -avuDN

I had to reboot, and now cannot get back in. Obviously my network does not start (among other things) and I get a warning saying to execute depscan.sh. Well, that script returns nothing... not even an error output... and I return to the command line.

So, I try to chroot in using my trusty minimal install CD. Boot, and issue these commands:
Code:
mount /dev/sda1 /mnt/gentoo
mount /dev/sda6 /mnt/gentoo/home
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
swapon /dev/sda5
chroot /mnt/gentoo /bin/bash


Here is the output:
Code:
chroot: cannot run command `/bin/bash': Exec format error


My system was compiled 64 bit, and this is a 64-bit minimal install cd. (amd64).

Any ideas what is going on here?
_________________
me


Last edited by bilbravo on Wed Jun 13, 2007 12:59 am; edited 1 time in total
Back to top
View user's profile Send private message
kevstar31
Guru
Guru


Joined: 22 Nov 2006
Posts: 449
Location: Ohio

PostPosted: Tue Jun 12, 2007 1:25 am    Post subject: Reply with quote

use bin/bash not /bin/bash
Back to top
View user's profile Send private message
bilbravo
Guru
Guru


Joined: 30 May 2003
Posts: 319
Location: Baltimore, MD

PostPosted: Tue Jun 12, 2007 1:28 am    Post subject: Reply with quote

kevstar31 wrote:
use bin/bash not /bin/bash

Same error, just says 'bin/bash' instead of '/bin/bash'...

Thanks for the suggestion though.
_________________
me
Back to top
View user's profile Send private message
kevstar31
Guru
Guru


Joined: 22 Nov 2006
Posts: 449
Location: Ohio

PostPosted: Tue Jun 12, 2007 1:32 am    Post subject: Reply with quote

http://mail.python.org/pipermail/python-list/1999-June/004056.html
you might need to extract a stage 3 tarball and emerge -e world
Back to top
View user's profile Send private message
bilbravo
Guru
Guru


Joined: 30 May 2003
Posts: 319
Location: Baltimore, MD

PostPosted: Tue Jun 12, 2007 1:42 am    Post subject: Reply with quote

kevstar31 wrote:
http://mail.python.org/pipermail/python-list/1999-June/004056.html
you might need to extract a stage 3 tarball and emerge -e world


After looking at that, I'm wondering if I can't just look at the bash file, OR if by some chance I'm not on amd64 minimal CD?

EDIT: I downloaded a stage3 tarball and extracted, same issue.
Edit2:
Problem was x86 minimal cd. I thought I was using an amd64 cd but I wasn't. D'oh!
_________________
me
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