Skip to content

Commit 3ca1d0b

Browse files
[Doc-A-Thon] Adding Centos and SUSE info
1 parent 192ae25 commit 3ca1d0b

File tree

1 file changed

+42
-14
lines changed

1 file changed

+42
-14
lines changed

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

Lines changed: 42 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,60 @@ 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
71+
sudo apt-get install libfuse3-dev fuse3
5672
```
5773

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

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

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

6487
```bash
65-
sudo apt-get install blobfuse
88+
sudo yum install blobfuse
6689
```
67-
68-
On a Redhat Enterprise Linux distribution:
90+
# [CentOS](#tab/CentOS)
6991

7092
```bash
7193
sudo yum install blobfuse
7294
```
7395

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

76103
```bash
77104
sudo zypper install blobfuse
78105
```
106+
---
79107

80108
## Prepare for mounting
81109

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

126154
```bash
127-
touch /path/to/fuse_connection.cfg
155+
sudo touch /path/to/fuse_connection.cfg
128156
```
129157

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

132160
```bash
133-
chmod 600 /path/to/fuse_connection.cfg
161+
sudo chmod 600 /path/to/fuse_connection.cfg
134162
```
135163

136164
> [!NOTE]
@@ -139,7 +167,7 @@ chmod 600 /path/to/fuse_connection.cfg
139167
### Create an empty directory for mounting
140168

141169
```bash
142-
mkdir ~/mycontainer
170+
sudo mkdir ~/mycontainer
143171
```
144172

145173
## Mount
@@ -151,7 +179,7 @@ mkdir ~/mycontainer
151179
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'.
152180

153181
```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
182+
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
155183
```
156184

157185
> [!NOTE]
@@ -160,9 +188,9 @@ blobfuse ~/mycontainer --tmp-path=/mnt/resource/blobfusetmp --config-file=/path
160188
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`.
161189

162190
```bash
163-
cd ~/mycontainer
164-
mkdir test
165-
echo "hello world" > test/blob.txt
191+
sudo cd ~/mycontainer
192+
sudo mkdir test
193+
sudo echo "hello world" > test/blob.txt
166194
```
167195

168196
## Persist the mount

0 commit comments

Comments
 (0)