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

Location of images

Scheduled Pinned Locked Moved Solved
FOG Problems
4
14
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.
  • G
    george1421 Moderator @mikmatcr
    last edited by george1421 Dec 10, 2019, 4:52 PM Dec 10, 2019, 10:50 PM

    @mikmatcr How familiar are you with linux? Linux is not like windows in that it doesn’t have the concept of different disks (i.e. 😄 😧 etc). In linux (UNIX) it has a single file system, where you can connect different disks (or network shares) to different folders (directory mount points). You can traverse between disks just like changing directories.

    So if you want to have disk 1 as the system disk and disk 2 for images that can be done pretty easy (relatively), with no changes to FOG’s configuration.

    The basic steps are to create a disk partition on disk 2 (/dev/sdb), then format it. Then connect that disk to a temporary location in the directory and move the contents of your /images directory to this new disk. Then finally unmount the disk temporarily and then reconnect the new disk to the /images directory.

    I think I have a step by step tutorial on this. Let me check.

    What host OS is the FOG server using?

    [Edit] Here is a step by step, but only execute it up to and including step 7. After step 7 we will change it up a bit. https://forums.fogproject.org/topic/11048/moving-fog-s-images-files-off-the-root-partition-2017-edition

    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!

    M 1 Reply Last reply Dec 10, 2019, 10:52 PM Reply Quote 0
    • M
      mikmatcr @george1421
      last edited by Dec 10, 2019, 10:52 PM

      @george1421 My knowledge in Linux is too basic. The server has Ubuntu 18

      G 1 Reply Last reply Dec 10, 2019, 10:58 PM Reply Quote 0
      • G
        george1421 Moderator @mikmatcr
        last edited by Dec 10, 2019, 10:58 PM

        @mikmatcr Do you have the new drive installed in your fog server now?

        If so switch over to root with sudo su -i then key in lsblk and post the results here.

        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!

        M 2 Replies Last reply Dec 10, 2019, 11:00 PM Reply Quote 0
        • M
          mikmatcr @george1421
          last edited by Dec 10, 2019, 11:00 PM

          @george1421 No, now I only have 1 hard drive. But in January I will place another

          G 1 Reply Last reply Dec 10, 2019, 11:06 PM Reply Quote 0
          • G
            george1421 Moderator @mikmatcr
            last edited by george1421 Dec 10, 2019, 5:08 PM Dec 10, 2019, 11:06 PM

            @mikmatcr Ok no problem. Get the second hard drive installed in the server than we can walk you through the setup. It might take about 20 minutes to setup. Not to bad if you can copy and paste commands.

            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 0
            • M
              mikmatcr @george1421
              last edited by george1421 Dec 12, 2019, 10:00 AM Dec 12, 2019, 3:56 PM

              @george1421 Hi, I already added the second disk, this is the result of the command:

              NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
              loop0    7:0    0  1008K  1 loop /snap/gnome-logs/61
              loop1    7:1    0   3,7M  1 loop /snap/gnome-system-monitor/107
              loop2    7:2    0  14,8M  1 loop /snap/gnome-characters/359
              loop3    7:3    0  42,8M  1 loop /snap/gtk-common-themes/1313
              loop4    7:4    0   4,2M  1 loop /snap/gnome-calculator/544
              loop5    7:5    0  54,5M  1 loop /snap/core18/1265
              loop6    7:6    0  89,1M  1 loop /snap/core/8268
              loop7    7:7    0  89,1M  1 loop /snap/core/8213
              loop8    7:8    0  54,6M  1 loop /snap/core18/1279
              loop9    7:9    0   156M  1 loop /snap/gnome-3-28-1804/91
              loop10   7:10   0 156,7M  1 loop /snap/gnome-3-28-1804/110
              loop11   7:11   0   3,7M  1 loop /snap/gnome-system-monitor/111
              loop12   7:12   0   956K  1 loop /snap/gnome-logs/81
              loop13   7:13   0  44,2M  1 loop /snap/gtk-common-themes/1353
              loop14   7:14   0     4M  1 loop /snap/gnome-calculator/406
              loop15   7:15   0  14,8M  1 loop /snap/gnome-characters/367
              
              sda      8:0    0   9,1T  0 disk 
              ├─sda1   8:1    0   512M  0 part /boot/efi
              └─sda2   8:2    0   9,1T  0 part /
              sdb      8:16   0   9,1T  0 disk 
              ├─sdb1   8:17   0    16M  0 part 
              └─sdb2   8:18   0   9,1T  0 part /media/serv/Nuevo vol
              
              G 1 Reply Last reply Dec 12, 2019, 4:01 PM Reply Quote 0
              • G
                george1421 Moderator @mikmatcr
                last edited by Dec 12, 2019, 4:01 PM

                @mikmatcr Ok I see you have 2 disks installed (via the lsblk) command. That second disk appears to have some data on it. Was that your intention?

                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!

                M 1 Reply Last reply Dec 12, 2019, 4:03 PM Reply Quote 0
                • M
                  mikmatcr @george1421
                  last edited by Dec 12, 2019, 4:03 PM

                  @george1421 No, I must format the second disk

                  G 1 Reply Last reply Dec 12, 2019, 4:17 PM Reply Quote 0
                  • G
                    george1421 Moderator @mikmatcr
                    last edited by george1421 Dec 12, 2019, 10:18 AM Dec 12, 2019, 4:17 PM

                    @mikmatcr ok what I would do is run fdisk from command prompt

                    sudo fdisk /dev/sdb
                    
                    d
                    p
                    2
                    
                    d
                    p
                    1
                    
                    w
                    e
                    

                    Note it may be q to quit and not e to exit. I did that from memory.

                    That should delete both partitions and write them back to the disk.

                    Now you can start with the instructions https://forums.fogproject.org/topic/11048/moving-fog-s-images-files-off-the-root-partition-2017-edition up to and including step 7. That will create a new partition and then format it. Once you have it formatted then we can go through the steps to copy the files over and then remap the drive.

                    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 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Dec 19, 2019, 8:53 AM

                      @mikmatcr Did you get your disk setup or do you still need help with this?

                      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

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

                      155

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project