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

I just don't know how to do that in /etc/fstab so it does it automatically. How can I do that?


A typical /etc/fstab entry for a NFS mount looks like as follows:    /media/freenas/    nfs    defaults    0 0 

The options you supply looks pretty much default, but you can add those as well:    /media/freenas/    nfs    defaults,proto=tcp,port=2049    0 0 
  • 2
    @NicholasParmentier: As you’re a reputation 11 user: if this answers your question, don’t forget to click the grey ☑ under the number at the left of this text to accept it, which means “yes, this answer is valid”! – David Foerster Apr 24 '17 at 20:08

Edit /etc/fstab and append to the end: /media/freenas/ nfs rw,bg,soft,intr,nosuid 0 0
  • .....soft and intr configure the same behavior and should not be used together. Also, soft can lead to data corruption and should not be used unless you understand the nuances deeply. – Ajax May 7 at 0:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.