View previous topic :: View next topic |
Author |
Message |
MasquedAvenger Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/25491636041f08a8a11be0.gif)
Joined: 21 Aug 2003 Posts: 559 Location: Southern California
|
Posted: Fri Jul 15, 2005 9:07 pm Post subject: cannot use chroot |
|
|
Hey everyone. I have a bit of a problem. I cannot use chroot from my installed OS. Everytime I type chroot /directory /bin/bash I get the following error:
chroot: cannot run command '/bin/bash': No such file or directory
This is odd because /bin/bash exists both on my system and in the directory I'm trying to chroot to, and I've never had a problem on any other system. Does anyone else have the same problem? Any suggestions? Thanks in advance.
James _________________ "There are no uninteresting things; only uninterested people." --G.K. Chesterton |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
azuriel Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/129251016742223975058b1.jpg)
Joined: 27 Feb 2005 Posts: 166
|
Posted: Fri Jul 15, 2005 9:21 pm Post subject: |
|
|
Your post was a little ambiguous, there is a /directory/bin/bash, right? When you were installing gentoo, a command such as Code: | chroot /mnt/gentoo /bin/bash | is issued to chroot into your mounted hard drive; in this case there existed a /mnt/gentoo/bin/bash. Hope this solves your problem. _________________ Adopt an unanswered post
TJGames.org
The folly of mistaking a torrent of verbiage for a spring of capital truths, and oneself for an oracle, is inborn in us. -Valery |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
racoontje Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 19 Jul 2004 Posts: 1290
|
Posted: Fri Jul 15, 2005 9:37 pm Post subject: |
|
|
I've had this error before and I've never found a solution for it really, try chroot /mnt/gentoo /bin/sh.. I think maybe I forgot the permissions when I extracted the stage tarball (-xvjf instead of -xvpjf) so /bin/sh and /bin/bash do exist but they aren't executable/properly readable.. Et cetera. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MasquedAvenger Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/25491636041f08a8a11be0.gif)
Joined: 21 Aug 2003 Posts: 559 Location: Southern California
|
Posted: Sat Jul 16, 2005 2:13 am Post subject: |
|
|
Doesn't work I changed the permissions, checked that both the host filesystem and the chrooted directory had /bin/bash, and still I get the same error. This is weird, because whether I boot off the livecd or the hard drive, no matter what directory I try to chroot into, it does the same thing. Weird... And frustrating...
James _________________ "There are no uninteresting things; only uninterested people." --G.K. Chesterton |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Yogi-CH Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Barret2.jpg)
Joined: 19 Apr 2004 Posts: 372 Location: Somewhere in Texas, last I remember...
|
Posted: Sat Jul 16, 2005 4:29 pm Post subject: Re: cannot use chroot |
|
|
MasquedAvenger wrote: | Hey everyone. I have a bit of a problem. I cannot use chroot from my installed OS. Everytime I type chroot /directory /bin/bash I get the following error:
chroot: cannot run command '/bin/bash': No such file or directory
This is odd because /bin/bash exists both on my system and in the directory I'm trying to chroot to, and I've never had a problem on any other system. Does anyone else have the same problem? Any suggestions? Thanks in advance.
James |
Yes. I have the same problem. It worked on Live CD but it doesn't work now that I have udated a couple things. In my case, it is because I cannot remember which pkg gave me a warning regarding chroot and what to do about it. In your case I have no idea, unfortunately. I think it only happened on one LiveCD & I d/l another ISO to try again ...and it worked, that time. Perhaps that'll work for you, as well.
[EDIT: I remember, now, what the deal was w/chroot. It was a 'chroot jail' and not chroot itself that I was warned about. That leaves making certain (1)you have a good d/l (check the md5); (2)make certain you are chrooting properly. As for my current prob., I haven't a clue. ] _________________ ...Yogi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|