Skip to content

Commit 6d3f523

Browse files
committed
edit
1 parent b3b1084 commit 6d3f523

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

articles/storage/files/storage-files-how-to-mount-nfs-shares.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,26 +120,34 @@ systemctl is-active --quiet aznfswatchdog && echo -e "\nAZNFS Mount Helper is in
120120

121121
If the package is installed, then the message `AZNFS Mount Helper is installed!` appears.
122122

123-
The record in **/etc/fstab** should look like this if you're using the AZNFS Mount Helper and want to mount the share using encryption in transit. If the mount fails, ensure that the *Secure transfer required* setting is [enabled on the storage account](encryption-in-transit-for-nfs-shares.md?tabs=azure-portal%2CUbuntu#enforce-encryption-in-transit).
123+
Remember to replace `<YourStorageAccountName>` and `<FileShareName>` with your own values. For more information, enter the command `man fstab` from the Linux command line.
124+
125+
#### Mount using AZNFS Mount Helper and encryption in transit (recommended)
126+
127+
The record in **/etc/fstab** should look like this if you're using the AZNFS Mount Helper and want to mount the share using encryption in transit.
124128

125129
```bash
126130
<YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /media/<YourStorageAccountName>/<FileShareName> aznfs defaults,sec=sys,vers=4.1,nolock,proto=tcp,nofail,_netdev   0 2
127131
```
128132

133+
If the mount fails, ensure that the *Secure transfer required* setting is [enabled on the storage account](encryption-in-transit-for-nfs-shares.md?tabs=azure-portal%2CUbuntu#enforce-encryption-in-transit).
134+
135+
#### Mount using AZNFS Mount Helper without encryption in transit
136+
129137
If you're using the AZNFS Mount Helper but don't want to use encryption in transit, the record in **/etc/fstab** should look like this:
130138

131139
```bash
132140
<YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /media/<YourStorageAccountName>/<FileShareName> aznfs defaults,sec=sys,vers=4.1,nolock,proto=tcp,nofail,_netdev,notls   0 2
133141
```
134142

143+
#### Mount using native NFS mount commands
144+
135145
If you're using the native NFS mount without AZNFS, the record in **/etc/fstab** should look like this:
136146

137147
```bash
138148
<YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /media/<YourStorageAccountName>/<FileShareName> nfs vers=4,minorversion=1,_netdev,nofail,sec=sys 0 0
139149
```
140150

141-
Remember to replace `<YourStorageAccountName>` and `<FileShareName>` with your information. For more information, enter the command `man fstab` from the Linux command line.
142-
143151
### Mount options
144152

145153
The following mount options are recommended or required when mounting NFS Azure file shares.

0 commit comments

Comments
 (0)