Find the answer to your Linux question:
Results 1 to 5 of 5
Could somebody please tell me what to type to chroot back into the Gentoo installer so that I can edit my grub.conf. I have searched this subject and it seems ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Location
    Harwich - England
    Posts
    52

    Daft question: How to chroot?


    Could somebody please tell me what to type to chroot back into the Gentoo installer so that I can edit my grub.conf.
    I have searched this subject and it seems to be general knowledge that is assumed that people know, I'm afraid I don't.

  2. #2
    Linux Enthusiast
    Join Date
    Jun 2005
    Location
    Odessa, FL
    Posts
    586
    first you want to mount your boot partition, whether it's different from your root partition or not by doing "mount /dev/hda1" (assuming it's on the first partition of your first harddrive, if not than adjust accordingly), then follow these steps to chroot into it (taken from the Gentoo handbook):
    Code:
    # mount -t proc none /mnt/gentoo/proc
    # chroot /mnt/gentoo /bin/bash
    # env-update
     * Caching service dependencies...
    # source /etc/profile

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Location
    Harwich - England
    Posts
    52
    Thank you
    Tried that and I get the following
    Code:
    mount point /mnt/gentoo/proc does not exist
    What am I doing wrong?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Quote Originally Posted by unobtanium
    Thank you
    Tried that and I get the following
    Code:
    mount point /mnt/gentoo/proc does not exist
    What am I doing wrong?
    Try
    Code:
    mkdir /mnt/gentoo/proc
    and then
    Code:
    # mount -t proc none /mnt/gentoo/proc
    # chroot /mnt/gentoo /bin/bash
    # env-update
     * Caching service dependencies...
    # source /etc/profile
    as stated above
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  6. #5
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    errr
    Code:
    mount /dev/hd?? /mnt/gentoo
    then the proc and the chroot
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

Posting Permissions

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