Difference between revisions of "Chroot into the New Environment"

From gr0x0rd
Jump to navigation Jump to search
(Created page with "== Install Gentoo - chroot into the New Environment ==")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Install Gentoo - chroot into the New Environment ==
+
== Installing Gentoo - chroot into the New Environment ==
 +
 
 +
We've already mounted our boot and root drives, but we'll need to mount the processes and devices there before we can chroot into the new Linux environment.
 +
'''#''' mount -t proc none /mnt/gentoo/proc
 +
'''#''' mount -o bind /dev /mnt/gentoo/dev
 +
 
 +
'''Optional: RAID'''
 +
 
 +
If you elected to use RAID, you'll need to copy over your mdadm.conf file before you chroot. If you aren't using RAID, skip this step.
 +
mdadm --detail --scan >> /etc/mdadm.conf
 +
mkdir /mnt/gentoo/etc
 +
cp /etc/mdadm.conf /mnt/gentoo/etc/mdadm.conf
 +
 
 +
The new environment is ready, so we can enter it.
 +
'''#''' chroot /mnt/gentoo /bin/bash
 +
'''#''' env-update && source /etc/profile
 +
Before we begin emerging programs we should [[Configure System Settings]].

Latest revision as of 21:39, 10 May 2011

Installing Gentoo - chroot into the New Environment

We've already mounted our boot and root drives, but we'll need to mount the processes and devices there before we can chroot into the new Linux environment.

# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev

Optional: RAID

If you elected to use RAID, you'll need to copy over your mdadm.conf file before you chroot. If you aren't using RAID, skip this step.

mdadm --detail --scan >> /etc/mdadm.conf
mkdir /mnt/gentoo/etc
cp /etc/mdadm.conf /mnt/gentoo/etc/mdadm.conf

The new environment is ready, so we can enter it.

# chroot /mnt/gentoo /bin/bash
# env-update && source /etc/profile

Before we begin emerging programs we should Configure System Settings.