(12) chroot from Raspbian into Gentoo

Do the chroot :


root@raspberrypi:/mnt/genoot#   chroot /mnt/genoot /bin/bash
raspberrypi / #   source /etc/profile
raspberrypi / #   export PS1="(chroot) $PS1"
(chroot) raspberrypi / #

Now we are no longer in Raspbian, we are now inside our Raspberry Pi 2 using Gentoo off the USB Hardrive.

If you have never done this before, take a minute to find out what a chroot jail is, because you are not on Raspbian. You are in Gentoo on the USB drive. The simplistic explanation is it is a type of Sandbox similar to being on a VirtualBox machine.

To test we are in the chroot, and not in Raspbian


(chroot) raspberrypi / #   ls /home/pi
ls: cannot access /home/pi: No such file or directory
(chroot) raspberrypi / #

Kinda cool huh ?

Because we are in the chroot jail, we can not see the Raspbian SD Card, which is why /home/pi/ disappears - which is exactly what we want.

Anyway, back to work.

Next : Start Configuring Gentoo


    Does the same as the system call of that name. If you don't know what it does, don't worry about it.
    -- Larry Wall ( Perl Man Page )

PREVIOUS INDEX NEXT