Skip to content

Commit b1f0c60

Browse files
authored
Merge pull request #215501 from khdownie/kendownie102122-2
NFS revisions
2 parents aaea9d6 + 5c7c16f commit b1f0c60

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to mount a Network File System (NFS) Azure file share on
44
author: khdownie
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 10/17/2022
7+
ms.date: 10/21/2022
88
ms.author: kendownie
99
ms.subservice: files
1010
ms.custom: references_regions
@@ -44,7 +44,7 @@ Azure file shares can be mounted in Linux distributions using either the Server
4444

4545
:::image type="content" source="media/storage-files-how-to-mount-nfs-shares/disable-secure-transfer.png" alt-text="Screenshot of storage account configuration screen with secure transfer disabled." lightbox="media/storage-files-how-to-mount-nfs-shares/disable-secure-transfer.png":::
4646

47-
## Mount an NFS share
47+
## Mount an NFS share using the Azure portal
4848

4949
1. Once the file share is created, select the share and select **Connect from Linux**.
5050
1. Enter the mount path you'd like to use, then copy the script.
@@ -54,9 +54,19 @@ Azure file shares can be mounted in Linux distributions using either the Server
5454

5555
You have now mounted your NFS share.
5656

57+
## Mount an NFS share using /etc/fstab
58+
59+
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.
60+
61+
```bash
62+
<YourStorageAccountName>.file.core.windows.net:/<YourStorageAccountName>/<FileShareName> /mount/<YourStorageAccountName>/<FileShareName> nfs vers=4,minorversion=1,sec=sys 0 0
63+
```
64+
65+
For more information, enter the command `man fstab` from the Linux command line.
66+
5767
### Validate connectivity
5868

59-
If your mount failed, it's possible that your private endpoint was not set up correctly or is inaccessible. For details on confirming connectivity, see the [Verify connectivity](storage-files-networking-endpoints.md#verify-connectivity) section of the networking endpoints article.
69+
If your mount failed, it's possible that your private endpoint wasn't set up correctly or isn't accessible. For details on confirming connectivity, see [Verify connectivity](storage-files-networking-endpoints.md#verify-connectivity).
6070

6171
## Next steps
6272

articles/storage/files/storage-files-quick-create-use-linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This tutorial covers how to use the Azure portal to deploy a Linux
44
author: khdownie
55
ms.service: storage
66
ms.topic: tutorial
7-
ms.date: 10/17/2022
7+
ms.date: 10/21/2022
88
ms.author: kendownie
99
ms.subservice: files
1010
#Customer intent: As an IT admin new to Azure Files, I want to try out Azure file share using NFS and Linux so I can determine whether I want to subscribe to the service.
@@ -196,7 +196,7 @@ Now that you've created an NFS share, to use it you have to mount it on your Lin
196196
1. You should see **Connect to this NFS share from Linux** along with sample commands to use NFS on your Linux distribution and a provided mounting script.
197197

198198
> [!IMPORTANT]
199-
> The provided mounting script will mount the NFS share only until the Linux machine is rebooted. To automatically mount the share every time the machine reboots, [add an entry in /etc/fstab](storage-how-to-use-files-linux.md#static-mount-with-etcfstab). For more information, enter the command `man fstab` from the Linux command line.
199+
> The provided mounting script will mount the NFS share only until the Linux machine is rebooted. To automatically mount the share every time the machine reboots, see [Mount an NFS share using /etc/fstab](storage-files-how-to-mount-nfs-shares.md#mount-an-nfs-share-using-etcfstab).
200200
201201
:::image type="content" source="media/storage-files-quick-create-use-linux/mount-nfs-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-quick-create-use-linux/mount-nfs-share.png" border="true":::
202202

0 commit comments

Comments
 (0)