Skip to content

Commit 584eee3

Browse files
[Doc-A-THon] Updating code block
Adding output and bash code block
1 parent f59a9b5 commit 584eee3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ 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-
```
68-
ln -s linked -n t
67+
```bash
68+
sudo ln -s linked -n t
6969
ln: failed to create symbolic link 't': Operation not supported
7070
```
7171

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

7575
To use symlinks, add the following to the end of your SMB mount command:
7676

77-
```
77+
```bash
7878
,mfsymlinks
7979
```
8080

8181
So the command looks something like:
8282

83-
```
83+
```bash
8484
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
8585
```
8686

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

116116
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:
117117

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

0 commit comments

Comments
 (0)