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

Image not resizing Windows partition

Scheduled Pinned Locked Moved
FOG Problems
2
4
332
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.
  • F
    fogschut
    last edited by Mar 3, 2022, 11:04 AM

    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 ?

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Mar 3, 2022, 5:52 PM

      @fogschut Your FOG version is pretty old. You might want to manually update to the latest FOS init version and see if that makes a difference: https://github.com/FOGProject/fos/releases/latest

      While this is about manual kernel update it’s the same for the inits, just different filenames: https://docs.fogproject.org/en/latest/reference/manual_kernel_upgrade.html

      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

      F 1 Reply Last reply Mar 4, 2022, 10:50 AM Reply Quote 0
      • F
        fogschut @Sebastian Roth
        last edited by Mar 4, 2022, 10:50 AM

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

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Mar 4, 2022, 10:52 AM

          @fogschut said in Image not resizing Windows partition:

          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

          That’s the right way to go about this! Well done.

          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
            2/4
            Last post

          233

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project