I need to mount a space bucket to my linux vps server.

Posted September 24, 2017 4.7k views
UbuntuLinux Commands

already connect to my bucket with s3tool via api method used from digital ocean.
how to mount on directory and used the space

1 comment
  • I have been working with S3FS, but no luck so far configuring for DO Spaces.

    See here
    If you make any progress, I’d love to be able to create a directory that automatically syncs with Spaces.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

I am so: Transport endpoint is not connected. Please help me. Thanks

  • Hi were you able to resolve this? Mine was working fine, but now I am receiving the same message:

    Transport endpoint is not connected


In general, object storage solutions like Spaces are not meant to be accessed like a file system. They are API driven and most often used programmatically. Block storage, on the other hand, works almost like attaching a USB drive to your laptop. It gives you new drive with expanded storage. Check out this tutorial to learn more about the differences between the two and if object storage is right for your use case.

If your use case really requires mounting your Space like a local filesystem, s3fs-fuse is probably the tool you are looking for. On Ubuntu, you can install it with:

  • sudo apt install s3fs

You’ll also need to get your Spaces access key and secret key (see here).
Then add those credentials to ~/.passwd-s3fs, create the local directory, and mount your Space:

  • echo $SPACES_KEY:$SPACES_SECRET > ~/.passwd-s3fs
  • mkdir -p /path/to/local/directory
  • s3fs your-space /path/to/local/directory -ourl= -ouse_cache=/tmp
by Brian Boucheron
Flexible and scalable data storage is a baseline requirement for most applications and services being developed today. With today's complex deployments, containers, and ephemeral infrastructure, the days of simply saving files to disk on a single server are gone. Cloud providers have developed services to fill the storage needs of modern application deployments, and they mostly fit into two categories: object storage, and block storage.