Report this

What is the reason for this report?

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

Posted on September 24, 2017

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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:

  1. 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:

  1. echo $SPACES_KEY:$SPACES_SECRET > ~/.passwd-s3fs
  2. mkdir -p /path/to/local/directory
  3. s3fs your-space /path/to/local/directory -ourl=https://nyc3.digitaloceanspaces.com -ouse_cache=/tmp

This comment has been deleted

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.