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

Pointing Images to Secondary HDD without losing data

Scheduled Pinned Locked Moved Solved
Linux Problems
2
3
579
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.
  • H
    herrpommesfrite
    last edited by Apr 13, 2018, 6:18 PM

    My fog server HDD corrupted and failed and I had to reinstall Ubuntu on a new drive. Thankfully, all of our images are on a Secondary HDD and were unaffected by the failure. I have reinstalled ubuntu and FOG 1.5.0 and I am trying to add the Secondary HDD so that FOG pulls my existing images and my new images put on the secondary drive.

    My computer sees the drive and has it as /media/fog/d40b9b49-226e-4e64-b365-0b7b71d9ed3b but i am not great with linux and don’t know how to do this, and i do not want to lose all of my images.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Apr 13, 2018, 6:23 PM

      /media/fog/… is just where it’s located after being mounted. You need to find out what it’s actually named per device.

      You should be able to see it if you run:

      cd /media/fog/d40b9b49-226e-4e64-b365-0b7b71d9ed3b
      df -h
      

      This should show only the mounted device. It would appear something like:

      /dev/mapper/mastaweb--vg-root  293G   32G  247G  12% /
      

      The /dev is the part you need to know.

      From there, post back here and we can try to help you in what you need to do.

      For reference, it would be adding to the /etc/fstab file.

      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      H 1 Reply Last reply Apr 13, 2018, 6:28 PM Reply Quote 0
      • H
        herrpommesfrite @Tom Elliott
        last edited by herrpommesfrite Apr 13, 2018, 1:24 PM Apr 13, 2018, 6:28 PM

        @tom-elliott
        Filesystem Size Used Avail Use% Mounted on
        udev 3.9G 0 3.9G 0% /dev
        tmpfs 787M 9.3M 778M 2% /run
        /dev/sda1 451G 5.7G 423G 2% /
        tmpfs 3.9G 212K 3.9G 1% /dev/shm
        tmpfs 5.0M 4.0K 5.0M 1% /run/lock
        tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
        tmpfs 787M 60K 787M 1% /run/user/1000
        /dev/sdb1 1.8T 614G 1.2T 36% /media/fog/d40b9b49-226e-4e64-b365-0b7b71d9ed3b

        i used this and it worked: https://wiki.fogproject.org/wiki/index.php?title=Moving_your_images_directory/Adding_Storage_to_the_Images_directory

        Thanks!

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

        224

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project