Skip to content

Instantly share code, notes, and snippets.

@kenchan
Last active May 28, 2016 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenchan/8edf4d2748ea508b14812875e3124e19 to your computer and use it in GitHub Desktop.
Save kenchan/8edf4d2748ea508b14812875e3124e19 to your computer and use it in GitHub Desktop.
mount /dev/vda4 /mnt/gentoo
mount /dev/vda2 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount /mnt/gentoo{/boot,/sys,/proc,}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment