Skip to content

Commit 09a78b6

Browse files
Merge pull request #233705 from msaenzbosupport/patch-9
[Doc-A-THon] Updating code block
2 parents 28e7452 + e17fa77 commit 09a78b6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/storage/files/files-troubleshoot-linux-smb.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ Upgrade the Linux kernel to the following versions that have a fix for this prob
6464
### Cause
6565
By default, mounting Azure file shares on Linux by using SMB doesn't enable support for symbolic links (symlinks). You might see an error like this:
6666

67+
```bash
68+
sudo ln -s linked -n t
6769
```
68-
ln -s linked -n t
70+
```output
6971
ln: failed to create symbolic link 't': Operation not supported
7072
```
7173

@@ -74,13 +76,13 @@ The Linux SMB client doesn't support creating Windows-style symbolic links over
7476

7577
To use symlinks, add the following to the end of your SMB mount command:
7678

77-
```
79+
```bash
7880
,mfsymlinks
7981
```
8082

8183
So the command looks something like:
8284

83-
```
85+
```bash
8486
sudo mount -t cifs //<storage-account-name>.file.core.windows.net/<share-name> <mount-point> -o vers=<smb-version>,username=<storage-account-name>,password=<storage-account-key>,dir_mode=0777,file_mode=0777,serverino,mfsymlinks
8587
```
8688

@@ -115,7 +117,7 @@ sudo mount -t cifs $smbPath $mntPath -o vers=3.0,username=$storageAccountName,pa
115117

116118
File I/Os on the mounted filesystem start giving "Host is down" or "Permission denied" errors. Linux dmesg logs on the client show repeated errors like:
117119

118-
```
120+
```output
119121
Status code returned 0xc000006d STATUS_LOGON_FAILURE
120122
cifs_setup_session: 2 callbacks suppressed
121123
CIFS VFS: \\contoso.file.core.windows.net Send error in SessSetup = -13

0 commit comments

Comments
 (0)