Skip to content

Commit 5c2fd66

Browse files
committed
add NFS mount commands
1 parent a231c6d commit 5c2fd66

File tree

1 file changed

+47
-7
lines changed

1 file changed

+47
-7
lines changed

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

Lines changed: 47 additions & 7 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/01/2025
8+
ms.date: 07/02/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
---
@@ -57,20 +57,60 @@ To enable hybrid access to an NFS Azure file share, use one of the following net
5757

5858
## Step 2: Mount an NFS Azure file share
5959

60-
You can mount the share using the Azure portal. You can also create a record in the **/etc/fstab** file to automatically mount the share every time the Linux server or VM boots.
60+
You can mount the share using the Azure portal, or you can use the native Linux mount commands. You can also create a record in the **/etc/fstab** file to automatically mount the share every time the Linux server or VM boots.
61+
62+
You can use the `nconnect` Linux mount option to improve performance for NFS Azure file shares at scale. For more information, see [Improve NFS Azure file share performance](nfs-performance.md#nfs-nconnect).
6163

6264
### Mount an NFS share using the Azure portal
6365

64-
You can use the `nconnect` Linux mount option to improve performance for NFS Azure file shares at scale. For more information, see [Improve NFS Azure file share performance](nfs-performance.md#nfs-nconnect).
66+
1. Once the file share is created, select the share and then select **Connect from Linux**.
67+
1. Enter the mount path you'd like to use, then copy the script and run it on your client. Only the required mount options are included in the script, but you can add other [recommended mount options](#mount-options).
6568

66-
1. Once the file share is created, select the share and select **Connect from Linux**.
67-
1. Enter the mount path you'd like to use, then copy the script. Azure portal offers a step-by-step, ready-to-use installation script tailored to your selected Linux distribution for installing the AZNFS mount helper package. Once installed, you can use the provided AZNFS mount script to securely mount the share using [Encyption in Transit](encryption-in-transit-for-nfs-shares.md).
68-
1. Connect to your client and use the provided mounting script. Only the required mount options are included in the script, but you can add other [recommended mount options](#mount-options).
69+
> [!NOTE]
70+
> The Azure portal offers a step-by-step, ready-to-use installation script tailored to your selected Linux distribution for installing the AZNFS mount helper package. Once installed, you can use the provided AZNFS mount script to securely mount the share using [Encyption in Transit](encryption-in-transit-for-nfs-shares.md).
6971
70-
:::image type="content" source="media/storage-files-how-to-mount-nfs-shares/mount-file-share.png" alt-text="Screenshot showing how to connect to an N F S file share from Linux using a provided mounting script." lightbox="media/storage-files-how-to-mount-nfs-shares/mount-file-share.png" border="true":::
72+
:::image type="content" source="media/storage-files-how-to-mount-nfs-shares/mount-file-share.png" alt-text="Screenshot showing how to connect to an N F S file share from Linux using a provided mounting script." lightbox="media/storage-files-how-to-mount-nfs-shares/mount-file-share.png" border="true":::
7173

7274
The NFS file share is now mounted.
7375

76+
### Mount an NFS share using the Linux command line
77+
78+
You can also mount the file share using the Linux command line. Select the tab below for your Linux distribution to see the commands you need to run. Be sure to replace `<YourStorageAccountName>` and `<FileShareName>` with your information.
79+
80+
# [Ubuntu/Debian](#tab/Ubuntu)
81+
```bash
82+
sudo apt-get -y update
83+
sudo apt-get install nfs-common
84+
85+
/mount/<YourStorageAccountName>/<FileShareName>
86+
87+
sudo mkdir -p /mount/<YourStorageAccountName>/<FileShareName>
88+
sudo mount -t nfs <YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /mount/<YourStorageAccountName>/<FileShareName> -o vers=4,minorversion=1,sec=sys,nconnect=4
89+
```
90+
91+
# [RHEL/CentOS](#tab/RHEL)
92+
```bash
93+
sudo yum update
94+
sudo yum install nfs-utils
95+
96+
/mount/<YourStorageAccountName>/<FileShareName>
97+
98+
sudo mkdir -p /mount/<YourStorageAccountName>/<FileShareName>
99+
sudo mount -t nfs <YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /mount/<YourStorageAccountName>/<FileShareName> -o vers=4,minorversion=1,sec=sys,nconnect=4
100+
```
101+
102+
### [SUSE](#tab/SUSE)
103+
```bash
104+
sudo zypper update
105+
sudo zypper -n install nfs-client
106+
107+
/mount/<YourStorageAccountName>/<FileShareName>
108+
109+
sudo mkdir -p /mount/<YourStorageAccountName>/<FileShareName>
110+
sudo mount -t nfs <YourStorageAccountName>.core.windows.net:/<YourStorageAccountName>/<FileShareName> /mount/<YourStorageAccountName>/<FileShareName> -o vers=4,minorversion=1,sec=sys,nconnect=4
111+
```
112+
---
113+
74114
### Mount an NFS share using /etc/fstab
75115

76116
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.

0 commit comments

Comments
 (0)