Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. How to mount local folder as Volume?

How to mount local folder as Volume?

Scheduled Pinned Locked Moved Solved Support
volumesmount
4 Posts 2 Posters 797 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • imc67I Offline
      imc67I Offline
      imc67
      translator
      wrote on last edited by
      #1

      Hi all,

      My VPS disk space is huge, still I would like to use the new Volumes.

      So I was thinking of moving the data (videos and music) to a folder (what's the best place? in root or home/yellowtent?) and then mount that folder as a Volume. However searching the internet for this specific UC didn't gave me a clear answer/instruction 😞

      Does anyone has experience with this?

      Thanks in advance!

      girishG 1 Reply Last reply
      1
      • imc67I imc67

        Hi all,

        My VPS disk space is huge, still I would like to use the new Volumes.

        So I was thinking of moving the data (videos and music) to a folder (what's the best place? in root or home/yellowtent?) and then mount that folder as a Volume. However searching the internet for this specific UC didn't gave me a clear answer/instruction 😞

        Does anyone has experience with this?

        Thanks in advance!

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by girish
        #2

        Ha! The choice is really down to just 4 paths since the code has explicitly white listed these. Only paths under /mnt, /media, /srv, /opt can be added as a volume. (I put a note in https://docs.cloudron.io/storage/#volumes as well now).

        My understanding is that /media is for removable items like /media/cdrom whereas /mnt is for user mounts of attached devices (like my windows partition mount etc). Personally, I put my stuff in /srv since it's not an external disk.

        But here's the FHS spec. If you find anything interesting, let me know 🙂 I am happy to add more paths to that list if other places are more common/correct.

        imc67I 1 Reply Last reply
        5
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          The wikipedia article is more readable - https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

          1 Reply Last reply
          4
          • girishG girish

            Ha! The choice is really down to just 4 paths since the code has explicitly white listed these. Only paths under /mnt, /media, /srv, /opt can be added as a volume. (I put a note in https://docs.cloudron.io/storage/#volumes as well now).

            My understanding is that /media is for removable items like /media/cdrom whereas /mnt is for user mounts of attached devices (like my windows partition mount etc). Personally, I put my stuff in /srv since it's not an external disk.

            But here's the FHS spec. If you find anything interesting, let me know 🙂 I am happy to add more paths to that list if other places are more common/correct.

            imc67I Offline
            imc67I Offline
            imc67
            translator
            wrote on last edited by
            #4

            @girish it works like a charm, absolutely awsome!

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search