Mounting the necessary filesystems - dpopchev/howto-quick-setup-gentoo GitHub Wiki
/proc
- Gentoo Live CD
mount --types proc /proc /mnt/gentoo/proc - non Gentoo medium
mount -o bind /proc /mnt/gentoo/proc
/sys
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
/dev
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
/dev/shm for non Gentoo Live CD
test -L /dev/shm && rm /dev/shm && mkdir /dev/shm
mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm
chmod 1777 /dev/shm
/dev/shm for Ubuntu live cd note here regarding Python bug for broken sem_open()
mount --rbind /run/shm /mnt/gentoo/run/shm