summaryrefslogtreecommitdiffstats
path: root/content/posts/mounting-freenas-shares-on-openbsd/index.org
blob: ba95e281b54ba00174aea195b30d81c9f0c3703b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#+TITLE: Mounting FreeNAS Shares on OpenBSD
#+DATE: 2023-04-27T23:45:32-04:00
#+DRAFT: false
#+DESCRIPTION: Options required to mount NFS shares from FreeNAS on OpenBSD
#+TAGS[]: openbsd freebsd freenas nfs
#+KEYWORDS[]: openbsd freebsd freenas nfs
#+SLUG:
#+SUMMARY:

This is something that took me a while longer to figure out than I'd
like admit, and I was only able to figure it out because of a forum
post.

For whatever reason, I'm only able to mount the share if used the TCP
option. I'm not sure if this is a me issue, an OpenBSD issue, or a
FreeBSD issue, but I'm putting it out there in case anyone else runs
into the same problem.

If you're mounting using the =mount_nfs= command, you need to use the
=-T= option to force TCP mode. If you're using =/etc/fstab= or the
=mount= command, you're going to have to instead use the undocumented
=-o tcp= option.

That looks like either
- On the command line: =doas mount -t nfs -o tcp 192.168.0.5:/mnt/Disk/something /mnt/something=
- In =/etc/fstab=: =192.168.0.5:/mnt/Disk/something/ /mnt/something nfs rw,tcp,nosuid,nodev 0 0=

That's it!