Wrong Image Size indicated in the image manager.
-
@george1421 uefi systems definitely couldn’t use it, but i don’t see any reason it wouldn’t be possible with windows 10. sure wouldn’t recommend it though. it just really threw me off when you said you hadn’t seen single partition setups since NT
-
@processor even with legacy boot, this is far from the default setup
-
@Junkhacker said in Wrong Image Size indicated in the image manager.:
single partition setups since NT
FWIW: I believe NT and Win2000 use the same kernel. But I could be wrong there too, that was almost 20 years ago you know.
-
OK, you are certainly both right. But this not help. As I did not made the bases I don’t know what happened.
Now :-
is there any way for this image to be compliant with FOG? (any way to recreate the system partition without breaking everything)
-
list item there any way make FOG not detect them as reserved?
-
list item Or the only option is to rebuild the source images?
By the way many thanks for the interest you put in this subject
-
-
@processor said in Wrong Image Size indicated in the image manager.:
list item there any way make FOG not detect them as reserved?
Lets start by removing this one from the list. The word “reserved” is a special word. If you look at the drive with windows running in the computer management applet. Does that partition say “Reserved”. If it label say OS or something else then we can remove the “reserved” line from your issue. Then its down to FOG treating the first partition as unsizable.
is there any way for this image to be compliant with FOG?
Its just not the matter of making it compliant with FOG, it’s not Microsoft best practices compliant. We probably can make fog do what we want, but you will have issues in the future with Microsoft upgrades. So the question is do you make it right now or latter. It really isn’t a fog question.
@Developers if its the first partition thing, can we just mark the image as resizable in the image config files?
-
@george1421 said in Wrong Image Size indicated in the image manager.:
@Developers if its the first partition thing, can we just mark the image as resizable in the image config files?
yeah, that should work.
-
Great, how to do it? Is it something that I can do or is it something that can only be done by the devs?
-
@processor Its something you can do, but I don’t remember the exact file to change. Its a simple change, but if you make the wrong one its not good. That is why I sent a note to the devs.
-
@george1421 ok looking forward the info.
-
ok, in the directory for that image, there should be a file named “d1.fixed_size_partitions”. the contents of that file would be “:1” telling it that partition one should not be resized. delete that line.
-
@george1421 We skip some of the checks for single partition setups. See here for example: https://github.com/FOGProject/fos/blob/master/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.upload#L108
@processor Beside what I posted about the mentioned
d1.fixed_size_partitions
will still be created on upload/capture and seems like we don’t skip the tests for single partition setups on deploy. Therefore it won’t do the resizing on deploy for you. Quick fix as suggested by @Junkhacker, delete that file from your /images/… directory and it should expand.Many thanks for George who kept asking the right questions to nail this down. I’ll see if it makes sense to add the check skipping for single partition setups on deployment as well.
-
Hi, unfortunatelly, it did not worked, still saying a 500GB hd is too small whereas there is only 80GB of data. I try to remove :1 or to delete d1.fixed_size_partitions and result is the same. May be there is some info info stored in d1.mbr or img that can’t be changed.
When I get the error message regarding the size, there is an info inside telling that I can use -C parameter to avoid size checkin. I guess this is a partclone message. Do you know if it’s possible to apply this parameter?
[edit]
In debug mode I ran
partclone.ntfs -r -C -s /images/testimage/d1p1.img -o /dev/sda1
and it keeps telling me I have not enough space
-
@processor said in Wrong Image Size indicated in the image manager.:
still saying a 500GB hd is too small whereas there is only 80GB of data
Maybe I have missed that in the earlier discussion. Has it always been this exact error?? Can you please post a picture of that error on screen??
-
@Sebastian-Roth Here it is :
! -
@processor Please post the contents of the text files
d1.partitions
andd1.minimum.partitions
from that image. -
d1.minimum.partitions :
label: dos label-id: 0xd1ff252a device: /dev/sda unit: sectors /dev/sda1 : start= 2048, size= 1875380224, type=7, bootable
d1.partitions :
label: dos label-id: 0xd1ff252a device: /dev/sda unit: sectors /dev/sda1 : start= 2048, size= 1875380224, type=7, bootable
-
@processor Can you please schedule another upload/capture task but tick the checkbox for debug. Boot up the client and when you get to the shell run
blkid -po udev /dev/sda1
and take a picture of the output.Then run command
fog
to start the upload and step through the whole process. Please take pictures of the screen. What I am most interested in is the output of the lines where it says... Partition count of ...
-
-
@processor Please download the latest init files (32 bit and 64 bit) and put those in
/var/www/html/fog/service/ipxe/
(rename the originals for the time being). -
@Sebastian-Roth
It’s resizing with this init files.
is it related with what I just saw in the 1.5.6 change log :
"Change detection of fixed partitions from labels to partition flags. "I wait the end of the dump and will deploy, to check that everything is OK.
Proc.