View previous topic :: View next topic |
Author |
Message |
bilbravo Guru
Joined: 30 May 2003 Posts: 319 Location: Baltimore, MD
|
Posted: Tue Jun 12, 2007 12:24 am Post subject: [Solved] cannot chroot in to existing (but b0rked) install |
|
|
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 |
|
|
kevstar31 Guru
Joined: 22 Nov 2006 Posts: 449 Location: Ohio
|
Posted: Tue Jun 12, 2007 1:25 am Post subject: |
|
|
use bin/bash not /bin/bash |
|
Back to top |
|
|
bilbravo Guru
Joined: 30 May 2003 Posts: 319 Location: Baltimore, MD
|
Posted: Tue Jun 12, 2007 1:28 am Post subject: |
|
|
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 |
|
|
kevstar31 Guru
Joined: 22 Nov 2006 Posts: 449 Location: Ohio
|
|
Back to top |
|
|
bilbravo Guru
Joined: 30 May 2003 Posts: 319 Location: Baltimore, MD
|
Posted: Tue Jun 12, 2007 1:42 am Post subject: |
|
|
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 |
|
|
|