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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved How to mount local folder as Volume?

    Support
    volumes mount
    2
    4
    254
    Loading More Posts
    • 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.
    • imc67
      imc67 translator last edited by

      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!

      girish 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff @imc67 last edited by 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.

        imc67 1 Reply Last reply Reply Quote 5
        • girish
          girish Staff last edited by

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

          1 Reply Last reply Reply Quote 4
          • imc67
            imc67 translator @girish last edited by

            @girish it works like a charm, absolutely awsome!

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Powered by NodeBB