SSD Alignment
-
Hello from germany,
i use FOG to install images to different kind of notebooks.
Everything works fine. But the alignment of partitions is beeing corrupted when restoring images to SSDs.
Is there something i can do ?I’m on Version 1.5.9-RC1
-
@thommyf said in SSD Alignment:
But the alignment of partitions is beeing corrupted when restoring images to SSDs.
Is there something i can do ?Yes, don’t use the resizable image type.
I’m on Version 1.5.9-RC1
As well I suggest you think about updating at some point. Maybe wait for the next official release coming out soon but look into backup and planing the update already.
-
Hi Sebastian,
when i don’t use the resizable image option i will not be able to install the image to smaller drives , right ?
I found a way to correct it.
I changed the starting sector in d1.minimum.partitions and d1.partitions file to a size which can be divided through 4096. Then i get a aligned layout.
Maybe you can change that in a future version as not only ssds need that , newer hdds also need 4k sector size.thank you.
-
@thommyf said in SSD Alignment:
when i don’t use the resizable image option i will not be able to install the image to smaller drives , right ?
Correct.
I found a way to correct it.
I changed the starting sector in d1.minimum.partitions and d1.partitions file to a size which can be divided through 4096. Then i get a aligned layout.Yeah that’s kind of a hack to force the starting sector you want.
Maybe you can change that in a future version as not only ssds need that , newer hdds also need 4k sector size.
Can you please share the contents of d1.minimum.partitions and d1.partitions (original as well as modified version) here in the forums so we know the figures you played with.
-
Hello Sebastian,
this is my original d1.minimum.partitions file:
label: dos label-id: 0x4ff028f0 device: /dev/sda unit: sectors sector-size: 512 /dev/sda1 : start= 2048, size= 2196723, type=7, bootable /dev/sda2 : start= 2198771, size= 75451766, type=7
this is my original d1.partitions file:
label: dos label-id: 0x4ff028f0 device: /dev/sda unit: sectors sector-size: 512 /dev/sda1 : start= 2048, size= 2196723, type=7, bootable /dev/sda2 : start= 2198771, size= 264139264, type=7
What i did is to change the size of sda2 (my windows partition).
The original start was 2198771 sectors x 512 Bytes = 1125770752 Bytes div 4096 equals = 274846,375 - not good !
To align the partition correctly i used 2199552 sectors =
1126170624 Bytes / 4096 = 274944 - that’s good !You just need to choose a sector start that is divisible by 4096.
I took my size from a aligned partition where AS SSD showed me that
1099776K would be ok. 1099776 x 1024 Bytes = 2199552 x 512 BytesEasy maths - but it is annoying , here 512Bytes shown here, 1024 Bytes shown in AS SSD and 4K Bytes needed to calculate the correct sector size.