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=7d1.original.fstypes:
/dev/nvme0n1p2 ntfsd1.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=7d1.fixed_size_partitions:
:1What 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 ?
-
@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
-
@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
-
@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.