• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. fogschut
    3. Posts
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by fogschut

    • RE: Image not resizing Windows partition

      @sebastian-roth while your reply was a bit cryptical in the sense that I had no idea what FOS init was I went down the rabbit hole of trying to upgrade our FOG-server.

      Lets just say: Not trying that again. My old FOG-server was initially build in a 0.xx version (I think) and was running on Ubuntu 14. Eons ago I made something for a co-worker to make it possible to simply mass-deploy images.

      Fast-forward to 2022 with new hardware “the new guy” complaint about the old tool how it didnt resize drives.

      I just bit the bullet and build a new VM, installed a 1.5.9 FOG from scratch, recaptured the image to this new server and it just works.

      I’m not going to try and debug a Ubuntu 12 to 14 update-on-update FOG-installation, so thanks for your help - the new FOG-version runs perfectly fine for our task 🙂

      posted in FOG Problems
      F
      fogschut
    • Image not resizing Windows partition

      I have an image on our FOG-server (1.5.5) defined as Single Disk - Resizable which does not resize the Windows-partition to the maximum size of the drive it is restored to:

      d1.partitions:
      label: dos
      label-id: 0x13922a8b
      device: /dev/nvme0n1
      unit: sectors

      /dev/nvme0n1p1 : start= 2048, size= 102400, type=7, bootable
      /dev/nvme0n1p2 : start= 104448, size= 166619789, type=7

      d1.original.fstypes:
      /dev/nvme0n1p2 ntfs

      d1.minimum.partitions:
      label: dos
      label-id: 0x13922a8b
      device: /dev/nvme0n1
      unit: sectors

      /dev/nvme0n1p1 : start= 2048, size= 102400, type=7, bootable
      /dev/nvme0n1p2 : start= 104448, size= 43383800, type=7

      d1.fixed_size_partitions:
      :1

      What I would like is that the 2nd partition is automatically extended to the end of the drive. I’ve tried various settings in d1.fixed_size_partitions, but i never get that the 2nd partition is resized to maximum size.

      Is there anything I can do with these files to change them so that happens? Or should I remake the image ?

      posted in FOG Problems
      F
      fogschut
    • RE: FOG 1.3.5 RC 11

      I was indeed running on a 4k drive, those things are so common now I did not even think about mentioning it 🙂

      The capture job worked correct now and the image was properly recognized as NTFS and a Block Size of 4096 bytes rather than raw and 512 bytes. I was able to restore the image without any problems.

      It seems you solved the problem, thanks for your hard work!

      posted in Announcements
      F
      fogschut
    • RE: FOG 1.3.5 RC 11

      Just to take away any confusion:

      root@fog-vm:~/fogproject# date
      di mrt  7 16:19:11 CET 2017
      
      root@fog-vm:~/fogproject# git checkout dev-branch
      Already on 'dev-branch'
      Your branch is up-to-date with 'origin/dev-branch'.
      root@fog-vm:~/fogproject# git pull
      Already up-to-date.
      root@fog-vm:~/fogproject# cd bin
      root@fog-vm:~/fogproject/bin# ./installfog.sh
      Installing LSB_Release as needed
       * Attempting to get release information.......................Done
      
      
         +------------------------------------------+
         |     ..#######:.    ..,#,..     .::##::.  |
         |.:######          .:;####:......;#;..     |
         |...##...        ...##;,;##::::.##...      |
         |   ,#          ...##.....##:::##     ..:: |
         |   ##    .::###,,##.   . ##.::#.:######::.|
         |...##:::###::....#. ..  .#...#. #...#:::. |
         |..:####:..    ..##......##::##  ..  #     |
         |    #  .      ...##:,;##;:::#: ... ##..   |
         |   .#  .       .:;####;::::.##:::;#:..    |
         |    #                     ..:;###..       |
         |                                          |
         +------------------------------------------+
         |      Free Computer Imaging Solution      |
         +------------------------------------------+
         |  Credits: http://fogproject.org/Credits  |
         |       http://fogproject.org/Credits      |
         |       Released under GPL Version 3       |
         +------------------------------------------+
      
      
         Version: 1.3.5-RC-11 Installer/Updater
      
      
       * Found FOG Settings from previous install at: /opt/fog/.fogsettings
      
       * Performing upgrade using these settings
      
      
        Starting Debian based Installation
      
      
      
         ######################################################################
         #     FOG now has everything it needs for this setup, but please     #
         #   understand that this script will overwrite any setting you may   #
         #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
         ######################################################################
         # It is not recommended that you install this on a production system #
         #        as this script modifies many of your system settings.       #
         ######################################################################
         #             This script should be run by the root user.            #
         #      It will prepend the running with sudo if root is not set      #
         ######################################################################
         #           ** Notice ** FOG is difficult to setup securely          #
         #        SELinux and IPTables are usually asked to be disabled       #
         #           There have been strides in adding capabilities           #
         #          The recommendations would now be more appropriate         #
         #    to set SELinux to permissive and to disable firewall for now.   #
         #  You can find some methods to enable SELinux and maintain firewall #
         #   settings and ports. If you feel comfortable doing so please do   #
         ######################################################################
         #            Please see our wiki for more information at:            #
         ######################################################################
         #             https://wiki.fogproject.org/wiki/index.php             #
         ######################################################################
      
       * Here are the settings FOG will use:
       * Base Linux: Debian
       * Detected Linux Distribution: Ubuntu
       * Server IP Address: 10.195.0.65
       * Server Subnet Mask:
       * Interface: eth0
       * Installation Type: Normal Server
       * Donate: 0
       * Internationalization:
       * Image Storage Location: /images
       * Using FOG DHCP: No
       * DHCP will NOT be setup but you must setup your
       | current DHCP server to use FOG for PXE services.
      
       * On a Linux DHCP server you must set: next-server and filename
      
       * On a Windows DHCP server you must set options 066 and 067
      
       * Option 066/next-server is the IP of the FOG Server: (e.g. 10.195.0.65)
       * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
      
      
       * Are you sure you wish to continue (Y/N) Y
      
       * Installation Started
      
       * Installing required packages, if this fails
       | make sure you have an active internet connection.
      
       * Adding needed repository....................................OK
       * Preparing Package Manager...................................OK
       * Packages to be installed:
      
              apache2 bc build-essential cpp curl g++ gawk gcc gzip htmldoc lftp libapache2-mod-php7.1 libc6 libcurl3 m4 mysql-client mysql-server net-tools nfs-kernel-serv         er openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php-gettext sysv         -rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g
      
      
       * Skipping package: apache2...................................(Already Installed)
       * Skipping package: bc........................................(Already Installed)
       * Skipping package: build-essential...........................(Already Installed)
       * Skipping package: cpp.......................................(Already Installed)
       * Skipping package: curl......................................(Already Installed)
       * Skipping package: g++.......................................(Already Installed)
       * Skipping package: gawk......................................(Already Installed)
       * Skipping package: gcc.......................................(Already Installed)
       * Skipping package: gzip......................................(Already Installed)
       * Skipping package: htmldoc...................................(Already Installed)
       * Skipping package: lftp......................................(Already Installed)
       * Skipping package: libapache2-mod-php7.1.....................(Already Installed)
       * Skipping package: libc6.....................................(Already Installed)
       * Skipping package: libcurl3..................................(Already Installed)
       * Skipping package: m4........................................(Already Installed)
       * Skipping package: mysql-client..............................(Already Installed)
       * Skipping package: mysql-server..............................(Already Installed)
       * Skipping package: net-tools.................................(Already Installed)
       * Skipping package: nfs-kernel-server.........................(Already Installed)
       * Skipping package: openssh-server............................(Already Installed)
       * Skipping package: php7.1....................................(Already Installed)
       * Skipping package: php7.1-bcmath.............................(Already Installed)
       * Skipping package: php7.1-cli................................(Already Installed)
       * Skipping package: php7.1-curl...............................(Already Installed)
       * Skipping package: php7.1-fpm................................(Already Installed)
       * Skipping package: php7.1-gd.................................(Already Installed)
       * Skipping package: php7.1-json...............................(Already Installed)
       * Skipping package: php7.1-ldap...............................(Already Installed)
       * Skipping package: php7.1-mbstring...........................(Already Installed)
       * Skipping package: php7.1-mcrypt.............................(Already Installed)
       * Skipping package: php7.1-mysql..............................(Already Installed)
       * Skipping package: php-gettext...............................(Already Installed)
       * Skipping package: sysv-rc-conf..............................(Already Installed)
       * Skipping package: tar.......................................(Already Installed)
       * Skipping package: tftpd-hpa.................................(Already Installed)
       * Skipping package: tftp-hpa..................................(Already Installed)
       * Skipping package: unzip.....................................(Already Installed)
       * Skipping package: vsftpd....................................(Already Installed)
       * Skipping package: wget......................................(Already Installed)
       * Skipping package: xinetd....................................(Already Installed)
       * Skipping package: zlib1g....................................(Already Installed)
       * Updating packages as needed.................................OK
      
       * Confirming package installation
      
       * Checking package: apache2...................................OK
       * Checking package: bc........................................OK
       * Checking package: build-essential...........................OK
       * Checking package: cpp.......................................OK
       * Checking package: curl......................................OK
       * Checking package: g++.......................................OK
       * Checking package: gawk......................................OK
       * Checking package: gcc.......................................OK
       * Checking package: gzip......................................OK
       * Checking package: htmldoc...................................OK
       * Checking package: lftp......................................OK
       * Checking package: libapache2-mod-php7.1.....................OK
       * Checking package: libc6.....................................OK
       * Checking package: libcurl3..................................OK
       * Checking package: m4........................................OK
       * Checking package: mysql-client..............................OK
       * Checking package: mysql-server..............................OK
       * Checking package: net-tools.................................OK
       * Checking package: nfs-kernel-server.........................OK
       * Checking package: openssh-server............................OK
       * Checking package: php7.1....................................OK
       * Checking package: php7.1-bcmath.............................OK
       * Checking package: php7.1-cli................................OK
       * Checking package: php7.1-curl...............................OK
       * Checking package: php7.1-fpm................................OK
       * Checking package: php7.1-gd.................................OK
       * Checking package: php7.1-json...............................OK
       * Checking package: php7.1-ldap...............................OK
       * Checking package: php7.1-mbstring...........................OK
       * Checking package: php7.1-mcrypt.............................OK
       * Checking package: php7.1-mysql..............................OK
       * Checking package: php-gettext...............................OK
       * Checking package: sysv-rc-conf..............................OK
       * Checking package: tar.......................................OK
       * Checking package: tftpd-hpa.................................OK
       * Checking package: tftp-hpa..................................OK
       * Checking package: unzip.....................................OK
       * Checking package: vsftpd....................................OK
       * Checking package: wget......................................OK
       * Checking package: xinetd....................................OK
       * Checking package: zlib1g....................................OK
      
       * Configuring services
      
       * Setting up fog user.........................................Already setup
       * Setting up fog password.....................................OK
       * Stopping FOGMulticastManager Service........................OK
       * Stopping FOGImageReplicator Service.........................OK
       * Stopping FOGSnapinReplicator Service........................OK
       * Stopping FOGScheduler Service...............................OK
       * Stopping FOGPingHosts Service...............................OK
       * Stopping FOGSnapinHash Service..............................OK
       * Stopping FOGImageSize Service...............................OK
       * Setting up and starting MySQL...............................OK
       * Backing up user reports.....................................Done
       * Stopping web service........................................OK
       * Removing vhost file.........................................OK
       * Setting up Apache and PHP files.............................OK
       * Testing and removing symbolic links if found................OK
       * Backing up old data.........................................OK
       * Copying new files to web folder.............................OK
       * Creating config file........................................OK
       * Getting checksum files for kernels and inits................OK
       * Downloading inits, kernels, and the fog client..............OK
       * Comparing checksums of kernels and inits....................Done
       * Enabling apache and fpm services on boot....................OK
       * Creating SSL Certificate....................................OK
       * Creating auth pub key and cert..............................OK
       * Resetting SSL Permissions...................................OK
       * Setting up SSL FOG Server...................................OK
       * Restarting Apache2 for fog vhost............................OK
       * Changing permissions on apache log files....................OK
       * Backing up database.........................................OK
      
       * You still need to install/update your database schema.
       * This can be done by opening a web browser and going to:
      
         http://10.195.0.65/fog/management
      
       * Press [Enter] key when database is updated/installed.
      
       * Setting up storage..........................................OK
       * Setting up and starting DHCP Server.........................Skipped
       * Setting up and starting TFTP and PXE Servers................OK
       * Setting up and starting VSFTP Server........................OK
       * Setting up FOG Snapins......................................OK
       * Setting up UDPCast..........................................OK
       * Configuring UDPCast.........................................OK
       * Building UDPCast............................................OK
       * Installing UDPCast..........................................OK
       * Installing FOG System Scripts...............................OK
      
      
       * Configuring FOG System Services
      
      
       * Setting FOGMulticastManager script executable...............OK
       * Enabling FOGMulticastManager Service........................OK
       * Setting FOGImageReplicator script executable................OK
       * Enabling FOGImageReplicator Service.........................OK
       * Setting FOGSnapinReplicator script executable...............OK
       * Enabling FOGSnapinReplicator Service........................OK
       * Setting FOGScheduler script executable......................OK
       * Enabling FOGScheduler Service...............................OK
       * Setting FOGPingHosts script executable......................OK
       * Enabling FOGPingHosts Service...............................OK
       * Setting FOGSnapinHash script executable.....................OK
       * Enabling FOGSnapinHash Service..............................OK
       * Setting FOGImageSize script executable......................OK
       * Enabling FOGImageSize Service...............................OK
       * Setting up FOG Services.....................................OK
       * Starting FOGMulticastManager Service........................OK
       * Starting FOGImageReplicator Service.........................OK
       * Starting FOGSnapinReplicator Service........................OK
       * Starting FOGScheduler Service...............................OK
       * Starting FOGPingHosts Service...............................OK
       * Starting FOGSnapinHash Service..............................OK
       * Starting FOGImageSize Service...............................OK
       * Setting up exports file.....................................OK
       * Setting up and starting RPCBind.............................OK
       * Setting up and starting NFS Server..........................OK
       * Ensuring node username and passwords match..................Done
      
       * Setup complete
      
         You can now login to the FOG Management Portal using
         the information listed below.  The login information
         is only if this is the first install.
      
         This can be done by opening a web browser and going to:
      
         http://10.195.0.65/fog/management
      
         Default User Information
         Username: fog
         Password: password
      
      
      After this the problem persists. Check date command on top.
      posted in Announcements
      F
      fogschut
    • RE: FOG 1.3.5 RC 11

      immediately after your message. I’m working on another image on another PC at the moment so I can test immediately 🙂

      posted in Announcements
      F
      fogschut
    • RE: FOG 1.3.5 RC 11

      I did run a git pull followed by running the install-script (installfog.sh) and the problem is not fixed.

      I still get a raw partition as 2nd partition and the uploaded image on the server is way too small to contain all the data on the server.

      posted in Announcements
      F
      fogschut
    • RE: FOG 1.3.5 RC 11

      root@fog-vm:~/fogproject# git pull
      Already up-to-date.

      I updated about an hour (or two) ago and I still got the problem.

      posted in Announcements
      F
      fogschut
    • RE: FOG 1.3.5 RC 11

      Just to exclude that the problem isn’t on my drive I’ve tried imaging with "Multiple Partition Image - Single Disk (Not Resizable) and the second partition (the normal 😄 drive) is properly recognized as NTFS.

      I assume something is going wrong with the resize-process, resulting in Partclone not recognizing the 2nd partition properly. As a result it does not recognize the filesystem (should be NTFS, but is set to “raw”) and also does not recognize the size properly (my partition could be resized to roughly 20 Gb, after resize it is a 1.2 Gb. raw)

      posted in Announcements
      F
      fogschut
    • RE: FOG 1.3.5 RC 11

      Im running FOG 1.3.5 RC11 - but I got the exact same problem as described by david77.

      When I’m trying to image a Windows 10 drive the resizing etc all goes well. Eventually Partclone will image the first (500 Mb.) SYSTEM RESERVED partition and recognizes it as a NTFS partition. The second partition (the normal 😄 drive) is not properly recognized as NTFS - the file system is set to raw as shown in the screenshot of david77.

      I’m not sure what is happening exactly, but I do know the File system: raw is not correct, this should be NTFS. the Device Size is not correct too, the partition should be a lot bigger.

      posted in Announcements
      F
      fogschut
    • 1 / 1