Skip to content

Commit c50d586

Browse files
[Doc-A-Thon] Updating code block and adding sudo
Updating code block and adding sudo
1 parent 0e82f31 commit c50d586

File tree

1 file changed

+32
-16
lines changed

1 file changed

+32
-16
lines changed

articles/storage/blobs/blobfuse2-commands-mount.md

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,48 +88,64 @@ The following flags apply only to command `blobfuse2 mount`:
8888
1. Mount an individual Azure Blob Storage container to a new directory using the settings from a configuration file, and with foreground mode disabled:
8989

9090
```bash
91-
~$ mkdir bf2a
92-
~$ blobfuse2 mount ./bf2a --config-file=./config.yaml --foreground=false
93-
94-
~$ blobfuse2 mount list
91+
sudo mkdir bf2a
92+
sudo blobfuse2 mount ./bf2a --config-file=./config.yaml --foreground=false
93+
```
94+
```bash
95+
sudo blobfuse2 mount list
96+
```
97+
Example output
98+
```output
9599
1 : /home/<user>/bf2a
96100
```
97101

98102
1. Mount all Blob Storage containers in the storage account specified in the configuration file to the path specified in the command. (Each container will be a subdirectory under the directory specified):
99103

100104
```bash
101-
~$ mkdir bf2all
102-
~$ blobfuse2 mount all ./bf2all --config-file=./config.yaml
105+
sudo mkdir bf2all
106+
```
107+
```bash
108+
sudo blobfuse2 mount all ./bf2all --config-file=./config.yaml
109+
```
110+
Example output
111+
```output
103112
Mounting container : blobfuse2a to path : bf2all/blobfuse2a
104113
Mounting container : blobfuse2b to path : bf2all/blobfuse2b
105-
106-
~$ blobfuse2 mount list
114+
```
115+
```bash
116+
sudo blobfuse2 mount list
117+
```
118+
Example output
119+
```output
107120
1 : /home/<user>/bf2all/blobfuse2a
108121
2 : /home/<user>/bf2all/blobfuse2b
109122
```
110123

111124
1. Mount a fast storage device, then mount a Blob Storage container specifying the path to the mounted disk as the BlobFuse2 file caching location:
112125

113126
```bash
114-
~$ sudo mkdir /mnt/resource/blobfuse2tmp -p
115-
~$ sudo chown <youruser> /mnt/resource/blobfuse2tmp
116-
~$ mkdir bf2a
117-
~$ blobfuse2 mount ./bf2a --config-file=./config.yaml --tmp-path=/mnt/resource/blobfuse2tmp
118-
119-
~$ blobfuse2 mount list
127+
sudo mkdir /mnt/resource/blobfuse2tmp -p
128+
sudo chown <youruser> /mnt/resource/blobfuse2tmp
129+
sudo mkdir bf2a
130+
sudo blobfuse2 mount ./bf2a --config-file=./config.yaml --tmp-path=/mnt/resource/blobfuse2tmp
131+
```
132+
```bash
133+
blobfuse2 mount list
134+
```
135+
```output
120136
1 : /home/<user>/bf2a/blobfuse2a
121137
```
122138

123139
1. Mount a Blob Storage container in read-only mode and skipping the automatic BlobFuse2 version check:
124140

125141
```bash
126-
blobfuse2 mount ./mount_dir --config-file=./config.yaml --read-only --disable-version-check=true
142+
sudo blobfuse2 mount ./mount_dir --config-file=./config.yaml --read-only --disable-version-check=true
127143
```
128144

129145
1. Mount a Blob Storage container using an existing configuration file, but override the container name (mounting another container in the same storage account):
130146

131147
```bash
132-
blobfuse2 mount ./mount_dir2 --config-file=./config.yaml --container-name=container2
148+
sudo blobfuse2 mount ./mount_dir2 --config-file=./config.yaml --container-name=container2
133149
```
134150

135151
## See also

0 commit comments

Comments
 (0)