Pointing Images to Secondary HDD without losing data

  • 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.

  • @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


  • Senior Developer

    /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.

Log in to reply