Partition alignment

Discussion in 'backup, imaging & disk mgmt' started by Mr.X, Mar 4, 2016.

  1. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Last edited: Mar 5, 2016
  2. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    PARTINFG, Version 1.02
    Copyright (c) 2009,2013 TeraByte, Inc. All Rights Reseverd

    Run Date: 3/5/2016 2:46 PM

    ===============================================================================
    MBR Partition Information (HD0 - 0x000176D3)
    (CHS: 1023/254/63) (WCHS: 608001/255/63)
    +====+====+=============+====+=============+=============+=============+
    | 0: | 0 | 0 0 2 | ee | 1023 255 63 | 1 | 4294967295 |
    | 1: | 0 | 0 0 0 | 0 | 0 0 0 | 0 | 0 |
    | 2: | 0 | 0 0 0 | 0 | 0 0 0 | 0 | 0 |
    | 3: | 0 | 0 0 0 | 0 | 0 0 0 | 0 | 0 |
    +====+====+=============+====+=============+=============+=============+

    ===============================================================================
    GPT Found (HD0) {B9360368-7A63-4F3E-B46C-924667352047}
    -------------------------------------------------------------------------------
    Revision: 10000 Hdr Size: 92 Max Entries: 128 PE Size: 128 PE LBA: 2
    Primary LBA: 1 Backup LBA: 9767541167
    FAvail LBA: 34 LAvail LBA: 9767541134
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    Num Name Attr Start End GUID Type GUID
    ----- ----------------------- ---------------- --------------- --------------- -------------------------------------- --------------------------------------
    0 0 40 1575541127 {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} {60254E6F-CB85-4CD6-B0AA-3D0220B39630}
    1 0 1575541128 9767541127 {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} {C2AB9141-1670-456A-99A5-12C2F3C6A694}
    ===============================================================================
    BOOT SECTOR INFORMATION
    -------------------------------------------------------------------------------
    File System ID: 0x7 LBA: 40 Total Sectors: 1575541088
    Jump: EB 52 90
    OEM Name: NTFS
    Bytes Per Sec: 512
    Sec Per Clust: 8
    Res Sectors: 0
    Zero 1: 0x0
    Zero 2: 0x0
    NA 1: 0x0
    Media: 0xF8
    Zero 3: 0x0
    Sec Per Track: 63
    Heads: 240
    Hidden Secs: 0
    NA 2: 0x0
    NA 3: 0x800080
    Total Sectors: 0x5DE8D95F
    MFT LCN: 0xC0000
    MFT Mirr LCN: 0x2
    Clust Per FRS: 0xF6
    Clust Per IBlock: 0x1
    Volume SN: 0x74848D54848D1A2E
    Checksum: 0x0
    Boot Flag: 0xAA55
    -------------------------------------------------------------------------------
    File System ID: 0x7 LBA: 1575541128 Total Sectors: 8192000000 ID: 0x1
    Jump: EB 52 90
    OEM Name: NTFS
    Bytes Per Sec: 512
    Sec Per Clust: 8
    Res Sectors: 0
    Zero 1: 0x0
    Zero 2: 0x0
    NA 1: 0x0
    Media: 0xF8
    Zero 3: 0x0
    Sec Per Track: 63
    Heads: 240
    Hidden Secs: 0
    NA 2: 0x0
    NA 3: 0x800080
    Total Sectors: 0x1E847FFFF
    MFT LCN: 0xC0000
    MFT Mirr LCN: 0x2
    Clust Per FRS: 0xF6
    Clust Per IBlock: 0x1
    Volume SN: 0x9CAA98E5AA98BD68
    Checksum: 0x0
    Boot Flag: 0xAA55
    -------------------------------------------------------------------------------
    ===============================================================================
    MBR Partition Information (HD1 - 0x0006F150)
    (CHS: 1023/254/63) (WCHS: 14593/255/63)
    +====+====+=============+====+=============+=============+=============+
    | 0: | 80 | 0 154 16 | 7 | 1023 254 63 | 9717 | 175741383 |
    | 1: | 0 | 1023 156 13 | 83 | 1023 254 63 | 187392000 | 20480000 |
    | 2: | 0 | 1023 110 36 | 83 | 1023 254 63 | 207872000 | 20480000 |
    | 3: | 0 | 1023 64 59 | 82 | 1023 254 63 | 228352000 | 6088704 |
    +====+====+=============+====+=============+=============+=============+
    ===============================================================================
    BOOT SECTOR INFORMATION
    -------------------------------------------------------------------------------
    File System ID: 0x7 LBA: 9717 Total Sectors: 175741383 ID: 0x1
    Jump: EB 52 90
    OEM Name: NTFS
    Bytes Per Sec: 512
    Sec Per Clust: 8
    Res Sectors: 0
    Zero 1: 0x0
    Zero 2: 0x0
    NA 1: 0x0
    Media: 0xF8
    Zero 3: 0x0
    Sec Per Track: 63
    Heads: 255
    Hidden Secs: 9717
    NA 2: 0x0
    NA 3: 0x800080
    Total Sectors: 0xA7999C6
    MFT LCN: 0x6E612
    MFT Mirr LCN: 0x7
    Clust Per FRS: 0xF6
    Clust Per IBlock: 0x1
    Volume SN: 0x1CCC4D7A8773860
    Checksum: 0x0
    Boot Flag: 0xAA55
    -------------------------------------------------------------------------------
    ===============================================================================
    MBR Partition Information (HD2 - 0xA39EF86B)
    (CHS: 1023/254/63) (WCHS: 15599/255/63)
    +====+====+=============+====+=============+=============+=============+
    | 0: | 80 | 0 32 33 | c | 1023 254 63 | 2048 | 41984000 |
    | 1: | 0 | 1023 254 63 | 7 | 1023 254 63 | 41986048 | 30720000 |
    | 2: | 0 | 1023 254 63 | 7 | 1023 254 63 | 72706048 | 177903615 |
    | 3: | 0 | 0 0 0 | 0 | 0 0 0 | 0 | 0 |
    +====+====+=============+====+=============+=============+=============+
    ===============================================================================
    BOOT SECTOR INFORMATION
    -------------------------------------------------------------------------------
    File System ID: 0xC LBA: 2048 Total Sectors: 41984000 ID: 0x1
    Jump: EB 58 90 (EB 58 90)
    OEM Name: SYSLINUX (SYSLINUX)
    Bytes Per Sec: 512 (512)
    Sec Per Clust: 32 (32)
    Res Sectors: 4086 (4086)
    Num FATs: 2 (2)
    Root Dir Ents: 0 (0)
    Sectors: 0 (0)
    Media: 0xF8 (0xF:cool:
    Secs Per FAT: 0 (0)
    Sec Per Track: 63 (63)
    Heads: 255 (255)
    Hidden Secs: 2048 (204:cool:
    Huge Sectors: 41984000 (41984000)
    Huge Secs Per FAT: 10245 (10245)
    Flags: 0x0 (0x0)
    Version: 0 (0)
    Root Dir Clust: 2 (2)
    FS Info Sec: 1 (1)
    FS Bkup Sec: 6 (6)
    Reserved: 0 0 0 0 0 0
    Drive Num: 0x80 (0x80)
    Res: 0x0 (0x0)
    Boot Sig: 0x29 (0x29)
    Vol ID: 0xCA3C01C2 (0xCA3C01C2)
    Volume Label: NO NAME (NO NAME )
    FS Type: FAT32 (FAT32 )
    Boot Flag: 0xAA55 (0xAA55)
    -------------------------------------------------------------------------------
    File System ID: 0x7 LBA: 41986048 Total Sectors: 30720000 ID: 0x2
    Jump: EB 52 90
    OEM Name: NTFS
    Bytes Per Sec: 512
    Sec Per Clust: 8
    Res Sectors: 0
    Zero 1: 0x0
    Zero 2: 0x0
    NA 1: 0x0
    Media: 0xF8
    Zero 3: 0x0
    Sec Per Track: 63
    Heads: 255
    Hidden Secs: 41986048
    NA 2: 0x0
    NA 3: 0x80
    Total Sectors: 0x1D4BFFF
    MFT LCN: 0x40EC
    MFT Mirr LCN: 0x2
    Clust Per FRS: 0xF6
    Clust Per IBlock: 0x1
    Volume SN: 0x7EEFFD107EEFFD1
    Checksum: 0x0
    Boot Flag: 0xAA55
    -------------------------------------------------------------------------------
    File System ID: 0x7 LBA: 72706048 Total Sectors: 177903615 ID: 0x3
    Jump: EB 52 90
    OEM Name: NTFS
    Bytes Per Sec: 512
    Sec Per Clust: 8
    Res Sectors: 0
    Zero 1: 0x0
    Zero 2: 0x0
    NA 1: 0x0
    Media: 0xF8
    Zero 3: 0x0
    Sec Per Track: 63
    Heads: 255
    Hidden Secs: 72706048
    NA 2: 0x0
    NA 3: 0x80
    Total Sectors: 0xA9A97FE
    MFT LCN: 0x431D
    MFT Mirr LCN: 0x2
    Clust Per FRS: 0xF6
    Clust Per IBlock: 0x1
    Volume SN: 0x57D28FFA57D28FFA
    Checksum: 0x0
    Boot Flag: 0xAA55
    -------------------------------------------------------------------------------
     
  3. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    When you restore an image you will get the same alignment as the source drive unless you also select "Align to Target". You need two items selected to change the alignment...

    Align on 1 MiB Boundaries
    Align to Target
     
  4. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    ok. I will try that.
     
  5. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Nate, which HD?

    Also, the formatting has been changed by the copy/paste and this makes it hard to read. Can you post a link to the text file?
     
    Last edited: Mar 5, 2016
  6. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    I still can if you want me to, but that aligning to target and aligning to the 1 MB boundary fixed my problem.
     
  7. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Nate, good news.

    I'm interested to see what has changed. Can you post a new partinfo. Just copy/paste as you did before.
     
  8. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    Sure thing.
     

    Attached Files:

  9. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Ah, HD1. Thank you. All OK now. The first partition wasn't aligned in the first partinfo.

    But there were no partitions with a 4,975,104 offset in the first partinfo. How did you get that number?
     
  10. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    I got that number by running msinfo32 and then loking at my ssd info.
     
  11. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    What do msinfo32 and your SSD info say now?
     
  12. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    I get it now. Partitinfo said you first partition had an offset of 9717 sectors.

    Your indicated offset was 4,975,104 bytes. Using 512 byte sectors.

    4975104/512= 9717

    All OK. We did the right thing.
     
  13. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    1,048,576 bytes
     
    Last edited: Mar 6, 2016
  14. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    OK.

    Edit... Do you mean 1,048,576
     
    Last edited: Mar 5, 2016
  15. oliverjia

    oliverjia Registered Member

    Joined:
    Jul 21, 2005
    Posts:
    1,926
    Glad your problem was resolved.
    For me, I always fresh install Windows/Ubuntu on my SSD OS drive, so never have any alignment problems even I use the default backup/restore options.
     
  16. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
     

    Attached Files:

  17. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Thanks. Do you recall which partitioning app created that non aligned partition?
     
  18. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,805
    Location:
    .
    @Brian K

    This is the PartInfo's results txt file:
    Code:
                                PARTINFG, Version 1.02
              Copyright (c) 2009,2013 TeraByte, Inc. All Rights Reseverd
    
                             Run Date: 12/16/2016 9:38 AM
    
    ===============================================================================
                     MBR Partition Information (HD0 - 0xD50696BF)
                       (CHS: 1022/254/63)  (WCHS: 14593/255/63)
    +====+====+=============+====+=============+=============+=============+
    | 0: | 80 |    0  32 33 |  7 | 1023 254 63 |        2048 |   234432512 |
    | 1: |  0 |    0   0  0 |  0 |    0   0  0 |           0 |           0 |
    | 2: |  0 |    0   0  0 |  0 |    0   0  0 |           0 |           0 |
    | 3: |  0 |    0   0  0 |  0 |    0   0  0 |           0 |           0 |
    +====+====+=============+====+=============+=============+=============+
    ===============================================================================
                                BOOT SECTOR INFORMATION
    -------------------------------------------------------------------------------
          File System ID: 0x7   LBA: 2048  Total Sectors: 234432512   ID: 0x1
                                      Jump: EB 52 90
                                  OEM Name: NTFS  
                             Bytes Per Sec: 512
                             Sec Per Clust: 8
                               Res Sectors: 0
                                    Zero 1: 0x0
                                    Zero 2: 0x0
                                      NA 1: 0x0
                                     Media: 0xF8
                                    Zero 3: 0x0
                             Sec Per Track: 63
                                     Heads: 255
                               Hidden Secs: 2048
                                      NA 2: 0x0
                                      NA 3: 0x800080
                             Total Sectors: 0xDF927F8
                                   MFT LCN: 0x38B
                              MFT Mirr LCN: 0x38A
                             Clust Per FRS: 0xF6
                          Clust Per IBlock: 0x1
                                 Volume SN: 0x1D18D23487D5480
                                  Checksum: 0x0
                                 Boot Flag: 0xAA55
    -------------------------------------------------------------------------------
    
    


    I guess my SSD is not aligned, right?


    Then I run PartitionGuru and here's a screenshots showing aligned partition:

    partguru.png
     
  19. TheRollbackFrog

    TheRollbackFrog Imaging Specialist

    Joined:
    Mar 1, 2011
    Posts:
    4,954
    Location:
    The Pond - USA
    Both show the partition to be aligned correctly for an SSD. The "Starting sector" in both displays show it to be 2048, which is one of many proper starting sectors for a properly aligned partition (a 1mB boundary <2048-sectors x 512bytes/sector = 1048576bytes = 1024kB = 1mB>).
     
    Last edited: Dec 16, 2016
  20. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,805
    Location:
    .
    Thank you, got it.
     
  21. marzametal

    marzametal Registered Member

    Joined:
    Mar 19, 2014
    Posts:
    766
    Thanks for this, nice little tidbit of info...
     
  22. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    That is a dated article and it is not correct for 1 MiB alignment. Win7 to Win10 (msinfo32) report the Partition Starting Offset in bytes. Since 1 MiB is 1048576 bytes you need to divide the Partition Starting Offset by 1048576. Dividing by 4096 can result in an integer (whole number) when the partition isn't 1 MiB aligned.

    When the Partition Starting Offset is reported in sectors you need to know if it is a 512 (or 512e) byte sector or a native 4 kb sector. In the former case divide the sectors by 2048 and in the latter case divide the sectors by 256.

    2048*512= 1048576 bytes (1 MiB)

    256*4= 1024 kb (1 MiB)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.