Skip to content

Commit 90687f8

Browse files
Merge pull request #302409 from khdownie/kendownie070825
update fstab instructions for aznfs
2 parents bd96602 + 1d9f43a commit 90687f8

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

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

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: khdownie
55
ms.service: azure-file-storage
66
ms.custom: linux-related-content, references_regions
77
ms.topic: how-to
8-
ms.date: 07/02/2025
8+
ms.date: 07/08/2025
99
ms.author: kendownie
1010
# Customer intent: As a Linux system administrator, I want to mount an NFS Azure file share, so that I can securely access and manage data stored in Azure from my Linux environment.
1111
---
@@ -110,13 +110,35 @@ sudo mount -t nfs <YourStorageAccountName>.core.windows.net:/<YourStorageAccount
110110

111111
### Mount an NFS share using /etc/fstab
112112

113-
If you want the NFS file share to automatically mount every time the Linux server or VM boots, create a record in the **/etc/fstab** file for your Azure file share. Replace `YourStorageAccountName` and `FileShareName` with your information.
113+
If you want the NFS file share to automatically mount every time the Linux server or VM boots, create a record in the **/etc/fstab** file for your Azure file share. The record will differ depending on whether or not you're using the AZNFS Mount Helper or the native NFS mount commands.
114+
115+
To determine whether the AZNFS Mount Helper package is installed on your client, run the following command:
116+
117+
```bash
118+
systemctl is-active --quiet aznfswatchdog && echo -e "\nAZNFS Mount Helper is installed! \n"
119+
```
120+
121+
If the package is installed, then the message `AZNFS Mount Helper is installed!` appears.
122+
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:
124+
125+
```bash
126+
<YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /media/<YourStorageAccountName>/<FileShareName> aznfs defaults,sec=sys,vers=4.1,nolock,proto=tcp,nofail,_netdev   0 2
127+
```
128+
129+
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:
130+
131+
```bash
132+
<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
133+
```
134+
135+
If you're using the native NFS mount without AZNFS, the record in **/etc/fstab** should look like this:
114136

115137
```bash
116138
<YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /media/<YourStorageAccountName>/<FileShareName> nfs vers=4,minorversion=1,_netdev,nofail,sec=sys 0 0
117139
```
118140

119-
For more information, enter the command `man fstab` from the Linux command line.
141+
Remember to replace `<YourStorageAccountName>` and `<FileShareName>` with your information. For more information, enter the command `man fstab` from the Linux command line.
120142

121143
### Mount options
122144

0 commit comments

Comments
 (0)