Ask Ubuntu Asked by Nicholas Parmentier on December 21, 2021
I have a NFS share folder on a FreeNas system. I’m able to mount this share and use it with this command:
mount -t nfs -o proto=tcp,port=2049 192.168.0.216:/mnt/HDD1
/media/freenas/
I just don’t know how to do that in /etc/fstab
so it does it automatically. How can I do that?
Edit /etc/fstab
and append to the end:
192.168.0.216:/mnt/HDD1 /media/freenas/ nfs rw,bg,soft,intr,nosuid 0 0
Answered by Heron on December 21, 2021
A typical /etc/fstab
entry for a NFS mount looks like as follows:
192.168.0.216:/mnt/HDD1 /media/freenas/ nfs defaults 0 0
The options you supply looks pretty much default, but you can add those as well:
192.168.0.216:/mnt/HDD1 /media/freenas/ nfs defaults,proto=tcp,port=2049 0 0
Answered by Thomas on December 21, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP