...
| Code Block |
|---|
sudo mount <share_export_path> <path>/<to>/<local>/<share> |
To make the SFS persistent after reboot, which you almost certainly want to do, edit the mounts table (e.g. sudo nano /etc/fstab ) and add a line like the following:
| Code Block |
|---|
<share_export_path> <path>/<to>/<local>/<share> nfs defaults,<rw/ro> 0 0 |
for example, to mount the share shown before in the /local/sfs directory, with read-write permissions, the line will look like
| Code Block |
|---|
10.214.37.37:/share_a8d18d6b_8d18_42fc_b4d1_7498d833ebe0 /local/sfs nfs defaults,rw 0 0 |
To test this, unmount the share with sudo umount /sfs-test and then run sudo mount -a . This should cause the share to mount again if you have everything correct, otherwise you'll see an error message. If it worked, it's then safe to reboot the machine to test mounting on boot up. If it didn't work, don't reboot until you've fixed it or commented out the entry as it may prevent a proper boot up.