Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, Last night i was installing Gentoo ,as i came to the kernel-part i turned the computer off. Now that i'm trying to continue where i left off i'm having ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    1

    chroot into the system


    Hi,

    Last night i was installing Gentoo ,as i came to the kernel-part i turned the computer off.
    Now that i'm trying to continue where i left off i'm having trouble chroot into my system from the minimum cd. When i enter the command...

    Code:
    # chroot /mnt/gentoo /bin/bash
    ...i get...

    Code:
    chroot: cannot run command '/bin/bash' : No such file or directory
    I have check /bin ,and 'bash' is there.

    Is there something i have to do before entering the chroot command ,am i doing something wrong or did i mess up bigtime and there is no way to return to the installation?

  2. #2
    Just Joined!
    Join Date
    Jan 2007
    Posts
    2
    Hi!

    These things you have to do again:

    mount your partition to /mnt/gentoo

    swapon

    mount the /proc and /dev

    Then you can chroot

    I'm just trying gentoo also but i'm having trouble compiling the kernel...
    Let me know how you did...

  3. #3
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Quote Originally Posted by naturalselection
    When i enter the command...

    Code:
    # chroot /mnt/gentoo /bin/bash
    ...i get...

    Code:
    chroot: cannot run command '/bin/bash' : No such file or directory
    as ajje said, you need to mount the gentoo partitions first to /mnt/gentoo. Make sure u mount all partitions you may have created, so /, /boot, /home etc, also making sure any other partitions like /boot are mounted to /mnt/gentoo/boot as earlier in the manual.
    The reason for this is the /bin/bash in the chroot command here, refers to /bin/bash in the chroot environment. It is not the /bin/bash in the host system.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  4. #4
    Just Joined!
    Join Date
    Jun 2006
    Posts
    4
    I'm having the same problem chroot. I'm trying to make me a sandbox/jail. all I have don't is installed the coreutils and bash, in to a folder called /sandbox, everything seems to be in the right location, but it gives me the same error.

    this is how I have it

    /sandbox/bin/bash

    then i "chroot /sandbox"

    I've have boot knoppix in the past and done it will my filesystem.

  5. #5
    Just Joined!
    Join Date
    Jun 2006
    Posts
    4
    never mind, it would help if I had the libs install too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •