Results 1 to 10 of 11
I've been trying to install Gentoo out of Debian Lenny, using a spare partition. I've got the basic system set up, working as root, but when I try to chroot ...
- 03-07-2009 #1
[SOLVED] Gentoo won't let me run bash
I've been trying to install Gentoo out of Debian Lenny, using a spare partition. I've got the basic system set up, working as root, but when I try to chroot into it I get a permissions error: Cannot run command /bin/bash: permission denied. The same thing happens if I try to run Gentoo's version of bash (or of any other command for that matter) without chrooting.
I've checked the permissions on these commands and they are all world-executable. I notice that Gentoo's libc is a bit older than Lenny's. Is that what's causing the problem? And if so, how do I get round it?"I'm just a little old lady; don't try to dazzle me with jargon!"
- 03-07-2009 #2
You must be root to chroot into Gentoo, just in case you haven't already figured that out. Does it give you the same problem if you use any LiveCD such as Knoppix?
What are the exact commands you using to perform chroot?
mount /dev/hd?? /mnt/gentoo
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profileI do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this. and the Forum FAQS.
- 03-07-2009 #3
I don't have Knoppix but I tried with a live Ubuntu disc and I could chroot to the new partition without any difficulty and use commands in the bin directory, including bash. From Debian I can't. Weird isn't it! And yes, I was root when I tried. Various commands I've tried (all as root) are:
Code:chroot /mnt/hda1
Code:chroot /mnt/hda1 /bin/bash
They all give the same errorCode:cd /mnt/hda1/bin ./bash
"I'm just a little old lady; don't try to dazzle me with jargon!"
- 03-07-2009 #4
I would guess that it's a debian problem, although I wouldn't know where to begin pointing the finger, or like you mentioned, it could be a file version problem.
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this. and the Forum FAQS.
- 03-08-2009 #5
Interesting problem ... when you try
and get the permission failure what is the full output you get for mount?Code:chroot /mnt/hda1 /bin/bash
what commands had you used before chroot?
- 03-08-2009 #6
If you cannot figure out how to make this work from within Debian, I would suggest installing from a LiveCD like you mentioned "live Ubuntu disc" and use the handbook from the alt install guide (what little there is)
Gentoo Linux Documentation -- The Gentoo Linux alternative installation method HOWTO
Just *pretend* you're using Knoppix, it should work just fine.I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this. and the Forum FAQS.
- 03-08-2009 #7
I would try to help, but honestly, I have not done a stable Gentoo install in ages. The last time I tried, it was broken and had circular dependencies like crazy, so I usually just stick with the handbook using funtoo tarballs and running an all ~arch install.
Yeah, I am asking for it, but at least it works.
About your problem, I have installed Gentoo from Debian before (and vice-versa), and never had that problem.
Linux User #376741
Preferred Linux Distro: Debian
Just because you use a distribution, doesn't mean everyone uses the same one.
There is no need to login to the GUI as root!
- 03-08-2009 #8
Here's the output of mount:
/dev/hda4 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda3 on /home type ext3 (rw)
/dev/hda1 on /mnt/hda1 type ext3 (rw,noexec,nosuid,nodev)
none on /mnt/hda1/proc type proc (rw)
/dev on /mnt/hda1/dev type none (rw,bind)
As you can see, I've got proc and dev mounted as specified. I mounted them first, then tried to chroot. Last night I thought it might be an X problem but I tried again just now from a virtual console and got the same results. I'm pretty sure it isn't the chroot that's failing, it's bash. I can't run any of the Gentoo commands, not even ldconfig, which is statically linked. Well, like Mike says, I can use Ubuntu to get round that but it irritates me when things happen that don't seem to have a rational explanation - especially in Linux!"I'm just a little old lady; don't try to dazzle me with jargon!"
- 03-08-2009 #9
Hazel, try this.
Instead of mounting /proc at none:
Did you have any problems with the install before this happened?Code:mount -o bind /proc /mnt/hda1/proc
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this. and the Forum FAQS.
- 03-08-2009 #10




