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

    Moving Image location to another drive

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    4
    1.1k
    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.
    • W
      walkerit
      last edited by

      I found several different instructions online on how to move the Image folder from root to another drive, i mistakenly under estimated the size requirement for the amount of images we would need.

      I added another drive in vmware and was successful in moving the images folder to the new drive, though even after giving ownership to the fog account, adding permissions to the folder and updating the share location in the fog console i get a permission denied error when pxe booting.

      it will show the location and say permission denied. I am using the latest Debian and fog 1.5.3 . I am using the mv command to move it and both chown and chmod to make changes to permissions i did try to create a group for the folder and add the fog account to it but with no success. for the time being i have moved the image folder back so i can still image machines.

      I am attempting to create a storage server also to see if i can just host the images there, but the installer crashes the operating system every time i get to “downloading inits, kernels and the fog client”

      1 Reply Last reply Reply Quote 0
      • W
        walkerit
        last edited by

        so i fixed my issue, but not how i thought i was going to. I was unaware though learned that i could delete and recreate the linux-swap. Being this was on a VM i added the extra space and the swap was in the middle so i could not resize the partition. I ended up using gparted to delete the swap, change the partition size, and recreate the swap i now have nearly a TB of space and should be good to go.

        One word of warning if you did something like me and tried to create a second drive and used /etc/fstab to mount the second drive on boot you will need to remove this change before reboot because otherwise you will learn what debian emergency mode is.

        1 Reply Last reply Reply Quote 0
        • Q
          Quazz Moderator
          last edited by

          Glad to hear you resolved your problem. For future reference, I think in your case the permission denied was due to not updating the NFS mounting location.

          1 Reply Last reply Reply Quote 1
          • F
            flipwalker
            last edited by

            @walkerit To expound a bit on @Quazz 's comment, I ran into this yesterday myself. There’s two different config locations that I found needed to be updated. One of them I’m led to believe will only come into play if you update the server, but the other (export? https://wiki.fogproject.org/wiki/index.php?title=Change_NFS_location) is what was causing my permission issues.

            Hope that clears it up when you do change your storage location.

            Philip

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            138

            Online

            12.1k

            Users

            17.3k

            Topics

            155.3k

            Posts
            Copyright © 2012-2024 FOG Project