Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
technical:raspberry_pi_nfs [2019/08/25 19:56] bobtechnical:raspberry_pi_nfs [2019/09/24 08:11] (current) bob
Line 6: Line 6:
  
   sudo groupadd -g 1001 home   sudo groupadd -g 1001 home
-  sudo adduser pi home +  sudo usermod -a -G home pi
-  newgrp home+
  
 ==== Mount Windows share from Raspberry Pi ==== ==== Mount Windows share from Raspberry Pi ====
Line 13: Line 12:
   sudo mount -t cifs //192.168.100.150/Home /home/pi/nas-sandbox/ -o guest   sudo mount -t cifs //192.168.100.150/Home /home/pi/nas-sandbox/ -o guest
  
-==== Setup FreeNAS NFS Share with all users mapped to root ====+==== Setup FreeNAS NFS Share ==== 
 + 
 +Map all users (Mapall User) "root" and all user groups (Mapall Group) to "home".
  
 {{:technical:freenas_nfs_setup.png?400|}} {{:technical:freenas_nfs_setup.png?400|}}
Line 19: Line 20:
 ==== Mount NFS share from Raspberry Pi ==== ==== Mount NFS share from Raspberry Pi ====
  
 +To mount NFS server by hand...
 +
 +  sudo mount -t nfs  192.168.100.150:/mnt/VolumeZ/HomeZ/sandbox /home/pi/sandbox -o defaults
 +  
 +For some reason vi swap files are jacked up. Run "vi -n" to suppress swap file creation.
 +
 +Put mount info in /etc/fstab to make mounting easier.
 +
 +  192.168.100.150:/mnt/VolumeZ/HomeZ/sandbox /home/pi/sandbox nfs defaults 0 0
 +
 +Then just issue a mount command.
 +
 +  sudo mount /home/pi/sandbox
  
-  sudo mount -t nfs -o rw 192.168.100.150:/mnt/VolumeZ/HomeZ/sandbox /home/pi/nas-sandbox/