Difference between revisions of "NFS over fchroot on Raspi"

From Funtoo
Jump to navigation Jump to search
(Created page with "I will briefly explain on this page how I did fchroot on my desktop computer to my Raspberry Pi 3b over the network using NFS, following in part Daniel Robbins' instructions c...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
I will briefly explain on this page how I did fchroot on my desktop computer to my Raspberry Pi 3b over the network using NFS, following in part Daniel Robbins' instructions contained in the following links [[Nfs]], [[Live_NFS_Frankenchroot]] and also in the following video: [https://www.youtube.com/watch?v=TAg2mfwPtHY&t=230s]
I will briefly explain on this page how I did fchroot on my desktop computer to my Raspberry Pi 3b over the network using NFS, following in part Daniel Robbins' instructions contained in the following links [[Nfs]], [[Frankenchroot/Live NFS Frankenchroot]] and also in the following video: [https://www.youtube.com/watch?v=TAg2mfwPtHY&t=230s Emulation magic with fchroot!]


The steps I took were the following:
I took the following steps:


== On Raspberry Pi ==
== On Raspberry Pi ==

Latest revision as of 21:34, June 16, 2022

I will briefly explain on this page how I did fchroot on my desktop computer to my Raspberry Pi 3b over the network using NFS, following in part Daniel Robbins' instructions contained in the following links Nfs, Frankenchroot/Live NFS Frankenchroot and also in the following video: Emulation magic with fchroot!

I took the following steps:

On Raspberry Pi

root # emerge -av net-fs/libnfs
root # emerge -av net-fs/nfs-utils
   /etc/exports - NFS file systems being exported
# /etc/exports: NFS file systems being exported.  See exports(5).
/      192.168.1.0/24(insecure,no_root_squash,nohide,rw,sync,no_subtree_check)
/boot/ 192.168.1.0/24(insecure,no_root_squash,nohide,rw,sync,no_subtree_check)
/dev/  192.168.1.0/24(insecure,no_root_squash,nohide,rw,sync,no_subtree_check,fsid=77)
root # exportfs -rv
root # rc-update add nfs default
root # rc-service nfs start


On my Desktop Computer

root # mount 192.168.1.2:/ /mnt/piroot
root # mount -v -t tmpfs -o size=8G,mode=775,uid=portage,gid=portage,nr_inodes=0 tmpfs /mnt/piroot/var/tmp/portage
root # /root/fchroot/bin/fchroot /mnt/piroot/