Skip to content

Instantly share code, notes, and snippets.

@mvlabat
Created March 31, 2016 20:38
Show Gist options
  • Save mvlabat/998322976ca9a7edf3c1f1404bfc636d to your computer and use it in GitHub Desktop.
Save mvlabat/998322976ca9a7edf3c1f1404bfc636d to your computer and use it in GitHub Desktop.
Chrooting in gentoo from any another Gentoo installation (+liveCD)
mount /dev/sdb3 /mnt/gentoo # Use your system root device
mount -t proc proc /mnt/gentoo/proc/
mount --rbind /sys /mnt/gentoo/sys/
mount --rbind /dev /mnt/gentoo/dev/
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment