Skip to main content

Mount a bucket as a drive on a local machine

Mount bucket with Windows

In addition to using FPT Portal or S3 Browser, we can use an S3 bucket directly on FPT Object Storage as a drive of a computer running Windows through the TntDrive tool by following these steps: Step 1: Access and download the TntDrive tool. Step 2: Open TntDrive > Choose Accounts > Add new account.

User guide FPT Object Storage 55

Step 3: Enter the same information as when using S3 Browser.

User guide FPT Object Storage 56

Step 4: After entering the account information in the TntDrive tool > Choose Add New Mapped Drive.

User guide FPT Object Storage 57

Step 5 : Select the following information:

  • Storage account: Select the name of the account just added.
  • Amazon S3 Bucket: Select the bucket to mount. You can enter the name directly or click the icon to choose.
  • Mapped drive letter: Select the drive name to map with the bucket.User guide FPT Object Storage 58

Step 6 : Choose Add new drive. Now, the TntDrive interface will display the status of the mounted drive

User guide FPT Object Storage 59

You can check in File Explorer

User guide FPT Object Storage 60

Mount bucket with Linux

This guide will walk the customer through mounting a bucket on Ubuntu 20.04 using the S3FS tool. Step 1: Install S3FS.

Copysudo apt-get install s3fs

Step 2: Create a file containing the access key and secret key.

Copyecho XRRS541KWS8T9DMDRCFY:gknj5Rpmgifmr4Bc90euHF8GIaZEY7xJD6bVDm7D > s3-password   
chmod 600 s3-password

User guide FPT Object Storage 61

Step 3: Create the mount directory.

Copymkdir /mnt/bucket-01 

Step 4: Perform the mount with fstab.

Copyecho bucket-01 /mnt/bucket-01 fuse.s3fs \_netdev,allow\_other,passwd\_file=/root/s3-password,use\_path\_request\_style,nonempty,uid=0,gid=0,use\_cache=/tmp,dbglevel=info,curldbg,url=https://s3-hfx03.fptcloud.com 0 0 >> /etc/fstab 

Result: User guide FPT Object Storage 62 Step 5: Mount the bucket

Copymount -a 

User guide FPT Object Storage 63