Skip to content

Commit 583d74b

Browse files
authored
Merge pull request #233453 from msaenzbosupport/patch-10
[Doc-A-Thon] Adding Centos and SUSE info
2 parents 10b631d + d45c449 commit 583d74b

File tree

1 file changed

+41
-14
lines changed

1 file changed

+41
-14
lines changed

articles/storage/blobs/storage-how-to-mount-container-linux.md

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ BlobFuse binaries are available on [the Microsoft software repositories for Linu
3232
BlobFuse is published in the Linux repo for Ubuntu versions: 16.04, 18.04, and 20.04, RHEL versions: 7.5, 7.8, 7.9, 8.0, 8.1, 8.2, CentOS versions: 7.0, 8.0, Debian versions: 9.0, 10.0, SUSE version: 15, Oracle Linux 8.1. Run this command to make sure that you have one of those versions deployed:
3333

3434
```bash
35-
lsb_release -a
35+
cat /etc/*-release
3636
```
3737

3838
### Configure the Microsoft package repository
3939

4040
Configure the [Linux Package Repository for Microsoft Products](/windows-server/administration/Linux-Package-Repository-for-Microsoft-Software).
4141

42+
43+
# [RHEL](#tab/RHEL)
44+
4245
As an example, on a Redhat Enterprise Linux 8 distribution:
4346

4447
```bash
@@ -47,35 +50,59 @@ sudo rpm -Uvh https://packages.microsoft.com/config/rhel/8/packages-microsoft-pr
4750

4851
Similarly, change the URL to `.../rhel/7/...` to point to a Redhat Enterprise Linux 7 distribution.
4952

53+
# [CentOS](#tab/CentOS)
54+
55+
As an example, on a CentOS 8 distribution:
56+
57+
```bash
58+
sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
59+
```
60+
61+
Similarly, change the URL to `.../centos/7/...` to point to a CentOS 7 distribution.
62+
63+
# [Ubuntu](#tab/Ubuntu)
64+
5065
Another example on an Ubuntu 20.04 distribution:
5166

5267
```bash
53-
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
68+
sudo wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
5469
sudo dpkg -i packages-microsoft-prod.deb
5570
sudo apt-get update
5671
```
5772

5873
Similarly, change the URL to `.../ubuntu/16.04/...` or `.../ubuntu/18.04/...` to reference another Ubuntu version.
5974

75+
# [SLES](#tab/SLES)
76+
77+
```bash
78+
sudo rpm -Uvh https://packages.microsoft.com/config/sles/15/packages-microsoft-prod.rpm
79+
```
80+
---
81+
6082
### Install BlobFuse v1
6183

62-
On an Ubuntu/Debian distribution:
84+
# [RHEL](#tab/RHEL)
6385

6486
```bash
65-
sudo apt-get install blobfuse
87+
sudo yum install blobfuse
6688
```
67-
68-
On a Redhat Enterprise Linux distribution:
89+
# [CentOS](#tab/CentOS)
6990

7091
```bash
7192
sudo yum install blobfuse
7293
```
7394

74-
On a SUSE distribution:
95+
# [Ubuntu](#tab/Ubuntu)
96+
97+
```bash
98+
sudo apt-get install blobfuse
99+
```
100+
# [SLES](#tab/SLES)
75101

76102
```bash
77103
sudo zypper install blobfuse
78104
```
105+
---
79106

80107
## Prepare for mounting
81108

@@ -124,13 +151,13 @@ The `accountName` is the name of your storage account, and not the full URL.
124151
Create this file using:
125152

126153
```bash
127-
touch /path/to/fuse_connection.cfg
154+
sudo touch /path/to/fuse_connection.cfg
128155
```
129156

130157
Once you've created and edited this file, make sure to restrict access so no other users can read it.
131158

132159
```bash
133-
chmod 600 /path/to/fuse_connection.cfg
160+
sudo chmod 600 /path/to/fuse_connection.cfg
134161
```
135162

136163
> [!NOTE]
@@ -139,7 +166,7 @@ chmod 600 /path/to/fuse_connection.cfg
139166
### Create an empty directory for mounting
140167

141168
```bash
142-
mkdir ~/mycontainer
169+
sudo mkdir ~/mycontainer
143170
```
144171

145172
## Mount
@@ -151,7 +178,7 @@ mkdir ~/mycontainer
151178
To mount BlobFuse, run the following command with your user. This command mounts the container specified in '/path/to/fuse_connection.cfg' onto the location '/mycontainer'.
152179

153180
```bash
154-
blobfuse ~/mycontainer --tmp-path=/mnt/resource/blobfusetmp --config-file=/path/to/fuse_connection.cfg -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120
181+
sudo blobfuse ~/mycontainer --tmp-path=/mnt/resource/blobfusetmp --config-file=/path/to/fuse_connection.cfg -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120
155182
```
156183

157184
> [!NOTE]
@@ -160,9 +187,9 @@ blobfuse ~/mycontainer --tmp-path=/mnt/resource/blobfusetmp --config-file=/path
160187
You should now have access to your block blobs through the regular file system APIs. The user who mounts the directory is the only person who can access it, by default, which secures the access. To allow access to all users, you can mount via the option `-o allow_other`.
161188

162189
```bash
163-
cd ~/mycontainer
164-
mkdir test
165-
echo "hello world" > test/blob.txt
190+
sudo cd ~/mycontainer
191+
sudo mkdir test
192+
sudo echo "hello world" > test/blob.txt
166193
```
167194

168195
## Persist the mount

0 commit comments

Comments
 (0)