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

    SSD Alignment

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    5
    411
    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.
    • T
      thommyf
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth

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

        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
        • T
          thommyf
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

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

            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
            • T
              thommyf
              last edited by Sebastian Roth

              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 Bytes

              Easy 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.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post

              213

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project