Skip to content

Commit 2b6550c

Browse files
committed
edits
1 parent 0f60e19 commit 2b6550c

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

articles/storage/files/storage-how-to-use-files-linux.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to mount an Azure file share over SMB on Linux and review
44
author: khdownie
55
ms.service: storage
66
ms.topic: how-to
7-
ms.date: 01/04/2023
7+
ms.date: 01/06/2023
88
ms.author: kendownie
99
ms.subservice: files
1010
---
@@ -29,7 +29,7 @@ uname -r
2929
```
3030

3131
> [!Note]
32-
> SMB 2.1 support was added to Linux kernel version 3.7. If you are using a version of the Linux kernel after 3.7, it should support SMB 2.1.
32+
> SMB 2.1 support was added to Linux kernel version 3.7. If you're using a version of the Linux kernel after 3.7, it should support SMB 2.1.
3333
3434
## Applies to
3535
| File share type | SMB | NFS |
@@ -304,26 +304,24 @@ sudo systemctl restart autofs
304304

305305
## Mount a file share snapshot
306306

307-
If you want to mount a specific snapshot of an SMB Azure file share, you must supply the `snapshot` option as part of the `mount` command, where `snapshot` is the time that the particular snapshot was created in GMT format such as @GMT-2022.12.12-09.52.43. The `snapshot` option has been supported in the Linux kernel since version 4.19.
307+
If you want to mount a specific snapshot of an SMB Azure file share, you must supply the `snapshot` option as part of the `mount` command, where `snapshot` is the time that the particular snapshot was created in a format such as @GMT-2023.01.05-00.08.20. The `snapshot` option has been supported in the Linux kernel since version 4.19.
308308

309309
After you've created the file share snapshot, following these instructions to mount it.
310310
311311
1. In the Azure portal, navigate to the storage account that contains the file share that you want to mount a snapshot of.
312312
2. Select **Data storage > File shares** and select the file share.
313-
3. Select **Operations > Snapshots** and take note of the name of the snapshot you want to mount. The snapshot name will be a timestamp, such as in the screenshot below.
314-
315-
:::image type="content" source="media/storage-how-to-use-files-linux/mount-snapshot.png" alt-text="Screenshot showing how to locate a file share snapshot name and timestamp in the Azure portal." border="true" :::
316-
317-
4. Convert the timestamp to the GMT format expected by the `mount` command.
318-
5. Run the `mount` command using the GMT time to specify the `snapshot` value. Be sure to replace `<storage-account-name>` and `<file-share-name>` with your values. The .cred file contains the credentials to be used to mount the share (see [Automatically mount file shares](#automatically-mount-file-shares)).
319-
320-
```bash
321-
sudo mount -t cifs //<storage-account-name>.file.core.windows.net/<file-share-name> /mnt/<file-share-name>/snapshot1 -o credentials=/etc/smbcredentials/snapshottestlinux.cred,[email protected]
322-
```
323-
324-
6. If you're able to browse the snapshot under the path /mnt/snapshot-test-share1/snapshot1, then the mount succeeded.
325-
326-
If the mount fails, see Troubleshooting.
313+
3. Select **Operations > Snapshots** and take note of the name of the snapshot you want to mount. The snapshot name will be a GMT timestamp, such as in the screenshot below.
314+
315+
:::image type="content" source="media/storage-how-to-use-files-linux/mount-snapshot.png" alt-text="Screenshot showing how to locate a file share snapshot name and timestamp in the Azure portal." border="true" :::
316+
317+
4. Convert the timestamp to the format expected by the `mount` command, which is **@GMT-year.month.day-hour.minutes.seconds**. In this example, you'd convert **2023-01-05T00:08:20.0000000Z** to **@GMT-2023.01.05-00.08.20**.
318+
5. Run the `mount` command using the GMT time to specify the `snapshot` value. Be sure to replace `<storage-account-name>`, `<file-share-name>`, and the GMT timestamp with your values. The .cred file contains the credentials to be used to mount the share (see [Automatically mount file shares](#automatically-mount-file-shares)).
319+
320+
```bash
321+
sudo mount -t cifs //<storage-account-name>.file.core.windows.net/<file-share-name> /mnt/<file-share-name>/snapshot1 -o credentials=/etc/smbcredentials/snapshottestlinux.cred,[email protected]
322+
```
323+
324+
6. If you're able to browse the snapshot under the path /mnt/snapshot-test-share1/snapshot1, then the mount succeeded.
327325
328326
## Next steps
329327
See these links for more information about Azure Files:

0 commit comments

Comments
 (0)