You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/blobs/blobfuse2-commands-mount.md
+32-16Lines changed: 32 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,48 +88,64 @@ The following flags apply only to command `blobfuse2 mount`:
88
88
1. Mount an individual Azure Blob Storage container to a new directory using the settings from a configuration file, and with foreground mode disabled:
89
89
90
90
```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
95
99
1 : /home/<user>/bf2a
96
100
```
97
101
98
102
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):
99
103
100
104
```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
103
112
Mounting container : blobfuse2a to path : bf2all/blobfuse2a
104
113
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
107
120
1 : /home/<user>/bf2all/blobfuse2a
108
121
2 : /home/<user>/bf2all/blobfuse2b
109
122
```
110
123
111
124
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:
~$ 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
120
136
1 : /home/<user>/bf2a/blobfuse2a
121
137
```
122
138
123
139
1. Mount a Blob Storage container in read-only mode and skipping the automatic BlobFuse2 version check:
124
140
125
141
```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
127
143
```
128
144
129
145
1. Mount a Blob Storage container using an existing configuration file, but override the container name (mounting another container in the same storage account):
130
146
131
147
```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
0 commit comments