• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Mounting File System failed - reason: mount: mounting [ip]:/mount/dev on /images failed: Permission denied [SOLVED]

Scheduled Pinned Locked Moved
FOG Problems
2
4
1.2k
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.
  • E
    elogan
    last edited by elogan May 3, 2022, 12:41 PM May 3, 2022, 5:51 PM

    I have followed several forum post on how to set this up but with no luck have not been able to resolve this issue.

    As this is a common issue I will try my best to add all context within one post.

    OBJECTION:
    The FOG server does not have enough storage on it. I created a Shared Folder on a Synology NAS device and wanted to mount it onto the server to store the image files.

    SERVER INFORMATION
    FOG

    • FOG Version: 1.5.9
    • OS: Linux 3.10.0-1062.4.1.el7.x86_64 x86_64 (CentOS 7)

    Error Code

    Init Version: 20200906
    Could not mount images folder (/bin/fog.upload)
    Args Passed:
       Reason: mount: mounting [fog_ip]:/mnt/dev/ on /images failed: Permission denied
    
    Kernel variables and settings: 
    loglevel = 4 initrd=inif.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://[fog_ip]/fog/ consoleblank=0 rootfstype=ext4 nvme_core.default_ps_max_latency_us = 0 mac=[mac address] ftp=[fog_ip] storage=[fog_ip]:/mnt/dev/ storageip=[fog_ip] osid=9 irqpoll hostname=[mac address] chkdsk=0 img=[Image name] imgType=n imgPartitonType=all imgid=30 imgFormat=5 PIGZ_COMP=-6 hostearly=1 pct=5 ignorepg = 1 type=up
    

    How I got here
    I did the initial set up of both the Shared Folders and FOG Server found on the forums.

    I mounted the NAS synology.

    sudo mount -t nfs [nas_ip]:/volume1/images /mnt
    

    Through the FOG web GUI, I added it as a Storage Node with changing these settings

    IP Address: [fog_ip]
    Image Path: /mnt
    

    I edited the permissions

    chmod 777 -R /mnt
    

    Where I am current at

    I am able to create and edit files on the NAS server through the FOG server. I can even see Storage Node Disk Usage from the FOG web GUI dashboard.

    However I still cannot upload images onto the NAS server. Any help on this would be appreciated.

    G 1 Reply Last reply May 3, 2022, 6:16 PM Reply Quote 0
    • G
      george1421 Moderator @elogan
      last edited by May 3, 2022, 6:16 PM

      @elogan Simple answer is that nfs can’t do what you are asking it to do.

      This would be the same as server A mounts a share W drive onto server B share of \serverb\fileshare Then you would try to share out W drive on sever A you can’t reshare a mounted share.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      E 1 Reply Last reply May 3, 2022, 6:32 PM Reply Quote 0
      • E
        elogan @george1421
        last edited by May 3, 2022, 6:32 PM

        @george1421 Okay, thanks for clarifying with me on that one. That dashboard stat really gave me false hope for a second lol.

        I had also followed this tutorial https://forums.fogproject.org/topic/9430/synology-nas-as-fog-storage-node/2 and created the proper storage node for it. I must have messed up the FOG storage node general settings.

        Looks to be working good sorry bout that. Thanks again george1421 you’re THE BEST

        G 1 Reply Last reply May 3, 2022, 6:36 PM Reply Quote 0
        • G
          george1421 Moderator @elogan
          last edited by May 3, 2022, 6:36 PM

          @elogan Ok that was the link I was going to give you. You can not connect through the fog server, but you can setup a synolgy nas as a “fake” fog storage node.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          1 / 1
          • First post
            3/4
            Last post

          167

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project