How do I check whether partitions on my SSD are properly aligned?Should I align partitions on an SSD, if so how do I do it at install time?SSD partition and align Ubuntu 16.04 LTSUbuntu SSD /dev/sda and LVM partition alignmentSSD alignment - Extended partition is misalignedWhy when I retrieve the list of partitions it only gives me one result?File system is not clean (The partition is misaligned by 1024 bytes)Deleted Windows Partitions on drive now what do I do?unable to dualboot win XP with Ubuntu 13.04 on Asus Zenbook UX32aSplitting one partition into threeBoot linux on external hard disk - Send Grub RescueHow to configure existing raid after upgrading to 14.04 from 11Intel RAID5 array Shows < 50% space

How much time does it take for a complete Earth revolution around the Sun

Intuitive explanation for the smile in FX

P-Channel MOSFET Inrush Current Limiting - Transistor burn issue

How should "murciélago" be pronounced?

Could a chess engine do retro analysis?

how to write a condition for all elements of a list

Two voices for a solo singer written in a sheet music

What is the point of teaching Coding and robotics to kids as young as 6 years old?

Is there an appropriate response to "Jesus Loves You"?

Is it possible to remove the trash icon from the dock on macOS Catalina?

Is it possible to trap yourself in the Nether?

Color coding Alerts

Is there any canon reason why urban werewolves haven't destroyed vampires (or vice versa)?

What are the possible punishments for an impeached USA president?

How do you preserve fresh ginger?

What is the difference between "more" and "less" commands?

Can you counterspell a spell if you don't know who's casting it?

My passport's Machine Readable Zone is damaged. How do I deal with it?

Pay everything now or gradually?

Is a job offer letter with no mention of salary structure legal or correct?

How do you help a new player evaluate complex multiclassing options without driving them and yourself crazy?

Why does General Grievous say “Ah yes, the negotiator?”

When will xrandr version 1.5.1 be available in Ubuntu?

How many flight hours do the first retiring A380s have?



How do I check whether partitions on my SSD are properly aligned?


Should I align partitions on an SSD, if so how do I do it at install time?SSD partition and align Ubuntu 16.04 LTSUbuntu SSD /dev/sda and LVM partition alignmentSSD alignment - Extended partition is misalignedWhy when I retrieve the list of partitions it only gives me one result?File system is not clean (The partition is misaligned by 1024 bytes)Deleted Windows Partitions on drive now what do I do?unable to dualboot win XP with Ubuntu 13.04 on Asus Zenbook UX32aSplitting one partition into threeBoot linux on external hard disk - Send Grub RescueHow to configure existing raid after upgrading to 14.04 from 11Intel RAID5 array Shows < 50% space






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









31


















I just installed ubuntu on my new intel SSD. Now I am not sure, whether paritions are properly aligned in respect to my specific SSD.



Here's my fdisk output.



$ fdisk -l

Platte /dev/sda: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spur, 14593 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a6294

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 1 1913 15360000 83 Linux
/dev/sda2 1913 14058 97558528 83 Linux
/dev/sda3 14058 14594 4300800 82 Linux Swap / Solaris


Also, do I still need to align my SSD at all, since I am using TRIM on the ext4 partitions by mounting them with the discard flag.



If it is the case, that my partitions are not properly aligned, what could I do to fix this without having to reinstall everything?










share|improve this question

























  • What do you mean by "properly aligned"?

    – Flimzy
    Jun 25 '11 at 8:03






  • 4





    As much as I know, SSDs need to be aligned to provide maximum io. Here's an article on the topic. I am still not sure, how I set up alignment for my specific SSD.

    – jottr
    Jun 25 '11 at 10:15







  • 4





    Nope, none of those partitions are aligned. It's suggested (citation needed, but GParted does it that way and so does Windows 7) that the start blocks of your partitions (Anfang) are at a sector evenly dividable by 2048 (= 2048 sectors à 512 byte = 1 MiB). – htorqu

    – htorque
    Sep 15 '11 at 9:26











  • @htorque AFAICT from an article about this, it depends on the segment size, which could be 8 MB or even larger. With a modern disk it would probably be easiest to align it to e.g. 32 MB, to fit with most common segment sizes.

    – l0b0
    Jan 11 '13 at 15:47


















31


















I just installed ubuntu on my new intel SSD. Now I am not sure, whether paritions are properly aligned in respect to my specific SSD.



Here's my fdisk output.



$ fdisk -l

Platte /dev/sda: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spur, 14593 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a6294

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 1 1913 15360000 83 Linux
/dev/sda2 1913 14058 97558528 83 Linux
/dev/sda3 14058 14594 4300800 82 Linux Swap / Solaris


Also, do I still need to align my SSD at all, since I am using TRIM on the ext4 partitions by mounting them with the discard flag.



If it is the case, that my partitions are not properly aligned, what could I do to fix this without having to reinstall everything?










share|improve this question

























  • What do you mean by "properly aligned"?

    – Flimzy
    Jun 25 '11 at 8:03






  • 4





    As much as I know, SSDs need to be aligned to provide maximum io. Here's an article on the topic. I am still not sure, how I set up alignment for my specific SSD.

    – jottr
    Jun 25 '11 at 10:15







  • 4





    Nope, none of those partitions are aligned. It's suggested (citation needed, but GParted does it that way and so does Windows 7) that the start blocks of your partitions (Anfang) are at a sector evenly dividable by 2048 (= 2048 sectors à 512 byte = 1 MiB). – htorqu

    – htorque
    Sep 15 '11 at 9:26











  • @htorque AFAICT from an article about this, it depends on the segment size, which could be 8 MB or even larger. With a modern disk it would probably be easiest to align it to e.g. 32 MB, to fit with most common segment sizes.

    – l0b0
    Jan 11 '13 at 15:47














31













31









31


15






I just installed ubuntu on my new intel SSD. Now I am not sure, whether paritions are properly aligned in respect to my specific SSD.



Here's my fdisk output.



$ fdisk -l

Platte /dev/sda: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spur, 14593 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a6294

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 1 1913 15360000 83 Linux
/dev/sda2 1913 14058 97558528 83 Linux
/dev/sda3 14058 14594 4300800 82 Linux Swap / Solaris


Also, do I still need to align my SSD at all, since I am using TRIM on the ext4 partitions by mounting them with the discard flag.



If it is the case, that my partitions are not properly aligned, what could I do to fix this without having to reinstall everything?










share|improve this question














I just installed ubuntu on my new intel SSD. Now I am not sure, whether paritions are properly aligned in respect to my specific SSD.



Here's my fdisk output.



$ fdisk -l

Platte /dev/sda: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spur, 14593 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a6294

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 1 1913 15360000 83 Linux
/dev/sda2 1913 14058 97558528 83 Linux
/dev/sda3 14058 14594 4300800 82 Linux Swap / Solaris


Also, do I still need to align my SSD at all, since I am using TRIM on the ext4 partitions by mounting them with the discard flag.



If it is the case, that my partitions are not properly aligned, what could I do to fix this without having to reinstall everything?







partitioning ssd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 24 '11 at 22:20









jottrjottr

6952 gold badges6 silver badges11 bronze badges




6952 gold badges6 silver badges11 bronze badges















  • What do you mean by "properly aligned"?

    – Flimzy
    Jun 25 '11 at 8:03






  • 4





    As much as I know, SSDs need to be aligned to provide maximum io. Here's an article on the topic. I am still not sure, how I set up alignment for my specific SSD.

    – jottr
    Jun 25 '11 at 10:15







  • 4





    Nope, none of those partitions are aligned. It's suggested (citation needed, but GParted does it that way and so does Windows 7) that the start blocks of your partitions (Anfang) are at a sector evenly dividable by 2048 (= 2048 sectors à 512 byte = 1 MiB). – htorqu

    – htorque
    Sep 15 '11 at 9:26











  • @htorque AFAICT from an article about this, it depends on the segment size, which could be 8 MB or even larger. With a modern disk it would probably be easiest to align it to e.g. 32 MB, to fit with most common segment sizes.

    – l0b0
    Jan 11 '13 at 15:47


















  • What do you mean by "properly aligned"?

    – Flimzy
    Jun 25 '11 at 8:03






  • 4





    As much as I know, SSDs need to be aligned to provide maximum io. Here's an article on the topic. I am still not sure, how I set up alignment for my specific SSD.

    – jottr
    Jun 25 '11 at 10:15







  • 4





    Nope, none of those partitions are aligned. It's suggested (citation needed, but GParted does it that way and so does Windows 7) that the start blocks of your partitions (Anfang) are at a sector evenly dividable by 2048 (= 2048 sectors à 512 byte = 1 MiB). – htorqu

    – htorque
    Sep 15 '11 at 9:26











  • @htorque AFAICT from an article about this, it depends on the segment size, which could be 8 MB or even larger. With a modern disk it would probably be easiest to align it to e.g. 32 MB, to fit with most common segment sizes.

    – l0b0
    Jan 11 '13 at 15:47

















What do you mean by "properly aligned"?

– Flimzy
Jun 25 '11 at 8:03





What do you mean by "properly aligned"?

– Flimzy
Jun 25 '11 at 8:03




4




4





As much as I know, SSDs need to be aligned to provide maximum io. Here's an article on the topic. I am still not sure, how I set up alignment for my specific SSD.

– jottr
Jun 25 '11 at 10:15






As much as I know, SSDs need to be aligned to provide maximum io. Here's an article on the topic. I am still not sure, how I set up alignment for my specific SSD.

– jottr
Jun 25 '11 at 10:15





4




4





Nope, none of those partitions are aligned. It's suggested (citation needed, but GParted does it that way and so does Windows 7) that the start blocks of your partitions (Anfang) are at a sector evenly dividable by 2048 (= 2048 sectors à 512 byte = 1 MiB). – htorqu

– htorque
Sep 15 '11 at 9:26





Nope, none of those partitions are aligned. It's suggested (citation needed, but GParted does it that way and so does Windows 7) that the start blocks of your partitions (Anfang) are at a sector evenly dividable by 2048 (= 2048 sectors à 512 byte = 1 MiB). – htorqu

– htorque
Sep 15 '11 at 9:26













@htorque AFAICT from an article about this, it depends on the segment size, which could be 8 MB or even larger. With a modern disk it would probably be easiest to align it to e.g. 32 MB, to fit with most common segment sizes.

– l0b0
Jan 11 '13 at 15:47






@htorque AFAICT from an article about this, it depends on the segment size, which could be 8 MB or even larger. With a modern disk it would probably be easiest to align it to e.g. 32 MB, to fit with most common segment sizes.

– l0b0
Jan 11 '13 at 15:47











3 Answers
3






active

oldest

votes


















11



















Ensuring SSD alignment with parted tool looks like a pretty good guide for aligning your filesystem on the SSD:



  1. Get the block size of your SSD in bytes (there are heaps of tips, and I don't know which ones will work for which hardware).


  2. Start the partition editor:



    sudo parted



  3. Show the partition table:



    p


  4. Verify that the numbers in the Start and Size columns are divisible by the block size.





share|improve this answer






















  • 7





    The link is dead.

    – becko
    Mar 30 '16 at 20:49











  • The link should work again.

    – Eponymous
    Sep 21 at 17:11


















51



















Parted has an align-check build in.



parted /dev/sda
align-check opt n


n is the partition you want to check.






share|improve this answer






















  • 4





    Worked for me! +1

    – Grizly
    Apr 10 '13 at 1:41






  • 2





    very simple to check for non-technical user.

    – Mani
    Feb 4 '17 at 7:29






  • 1





    The optimal alignment uses information reported by disk. That's not always aligned to the physical block size as sometimes the hardware lies about its block size. Sometimes hard disks have 4k blocks internally, but report 512b blocks. Additional check would be to see if start divides to 4096 (and end+1 also)

    – NickSoft
    May 30 '17 at 7:14



















1



















To be sure you have to use both built-in parted align-check option:



for i in `sudo parted /dev/sda -l | grep -oE "^[[:blank:]]*[0-9]+"`; do sudo parted /dev/sda align-check opt "$i"; done


and manual check (calculate divisibility by 4096B)



I've written a bash script to perform both checks:



https://github.com/crysman/check-partitions-alignment



(works on any GNU/Linux OS)



Or you can check manually using this table:



https://docs.google.com/spreadsheets/d/1dnDlhglxxgApvtUv0-nxn1iFYTqkjRELqCOWJtp3hbs/edit#gid=0



And yes, SSD HDD's partitions need to be aligned properly for maximum performance.






share|improve this answer




























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f50428%2fhow-do-i-check-whether-partitions-on-my-ssd-are-properly-aligned%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11



















    Ensuring SSD alignment with parted tool looks like a pretty good guide for aligning your filesystem on the SSD:



    1. Get the block size of your SSD in bytes (there are heaps of tips, and I don't know which ones will work for which hardware).


    2. Start the partition editor:



      sudo parted



    3. Show the partition table:



      p


    4. Verify that the numbers in the Start and Size columns are divisible by the block size.





    share|improve this answer






















    • 7





      The link is dead.

      – becko
      Mar 30 '16 at 20:49











    • The link should work again.

      – Eponymous
      Sep 21 at 17:11















    11



















    Ensuring SSD alignment with parted tool looks like a pretty good guide for aligning your filesystem on the SSD:



    1. Get the block size of your SSD in bytes (there are heaps of tips, and I don't know which ones will work for which hardware).


    2. Start the partition editor:



      sudo parted



    3. Show the partition table:



      p


    4. Verify that the numbers in the Start and Size columns are divisible by the block size.





    share|improve this answer






















    • 7





      The link is dead.

      – becko
      Mar 30 '16 at 20:49











    • The link should work again.

      – Eponymous
      Sep 21 at 17:11













    11















    11











    11









    Ensuring SSD alignment with parted tool looks like a pretty good guide for aligning your filesystem on the SSD:



    1. Get the block size of your SSD in bytes (there are heaps of tips, and I don't know which ones will work for which hardware).


    2. Start the partition editor:



      sudo parted



    3. Show the partition table:



      p


    4. Verify that the numbers in the Start and Size columns are divisible by the block size.





    share|improve this answer
















    Ensuring SSD alignment with parted tool looks like a pretty good guide for aligning your filesystem on the SSD:



    1. Get the block size of your SSD in bytes (there are heaps of tips, and I don't know which ones will work for which hardware).


    2. Start the partition editor:



      sudo parted



    3. Show the partition table:



      p


    4. Verify that the numbers in the Start and Size columns are divisible by the block size.






    share|improve this answer















    share|improve this answer




    share|improve this answer








    edited Sep 20 at 12:46









    Eponymous

    1155 bronze badges




    1155 bronze badges










    answered Jul 16 '11 at 14:35









    DavidDavid

    9837 silver badges8 bronze badges




    9837 silver badges8 bronze badges










    • 7





      The link is dead.

      – becko
      Mar 30 '16 at 20:49











    • The link should work again.

      – Eponymous
      Sep 21 at 17:11












    • 7





      The link is dead.

      – becko
      Mar 30 '16 at 20:49











    • The link should work again.

      – Eponymous
      Sep 21 at 17:11







    7




    7





    The link is dead.

    – becko
    Mar 30 '16 at 20:49





    The link is dead.

    – becko
    Mar 30 '16 at 20:49













    The link should work again.

    – Eponymous
    Sep 21 at 17:11





    The link should work again.

    – Eponymous
    Sep 21 at 17:11













    51



















    Parted has an align-check build in.



    parted /dev/sda
    align-check opt n


    n is the partition you want to check.






    share|improve this answer






















    • 4





      Worked for me! +1

      – Grizly
      Apr 10 '13 at 1:41






    • 2





      very simple to check for non-technical user.

      – Mani
      Feb 4 '17 at 7:29






    • 1





      The optimal alignment uses information reported by disk. That's not always aligned to the physical block size as sometimes the hardware lies about its block size. Sometimes hard disks have 4k blocks internally, but report 512b blocks. Additional check would be to see if start divides to 4096 (and end+1 also)

      – NickSoft
      May 30 '17 at 7:14
















    51



















    Parted has an align-check build in.



    parted /dev/sda
    align-check opt n


    n is the partition you want to check.






    share|improve this answer






















    • 4





      Worked for me! +1

      – Grizly
      Apr 10 '13 at 1:41






    • 2





      very simple to check for non-technical user.

      – Mani
      Feb 4 '17 at 7:29






    • 1





      The optimal alignment uses information reported by disk. That's not always aligned to the physical block size as sometimes the hardware lies about its block size. Sometimes hard disks have 4k blocks internally, but report 512b blocks. Additional check would be to see if start divides to 4096 (and end+1 also)

      – NickSoft
      May 30 '17 at 7:14














    51















    51











    51









    Parted has an align-check build in.



    parted /dev/sda
    align-check opt n


    n is the partition you want to check.






    share|improve this answer
















    Parted has an align-check build in.



    parted /dev/sda
    align-check opt n


    n is the partition you want to check.







    share|improve this answer















    share|improve this answer




    share|improve this answer








    edited Nov 22 '15 at 9:50









    Martin Ueding

    6,85010 gold badges43 silver badges77 bronze badges




    6,85010 gold badges43 silver badges77 bronze badges










    answered Jan 11 '13 at 16:45









    user1602596user1602596

    6111 gold badge5 silver badges3 bronze badges




    6111 gold badge5 silver badges3 bronze badges










    • 4





      Worked for me! +1

      – Grizly
      Apr 10 '13 at 1:41






    • 2





      very simple to check for non-technical user.

      – Mani
      Feb 4 '17 at 7:29






    • 1





      The optimal alignment uses information reported by disk. That's not always aligned to the physical block size as sometimes the hardware lies about its block size. Sometimes hard disks have 4k blocks internally, but report 512b blocks. Additional check would be to see if start divides to 4096 (and end+1 also)

      – NickSoft
      May 30 '17 at 7:14













    • 4





      Worked for me! +1

      – Grizly
      Apr 10 '13 at 1:41






    • 2





      very simple to check for non-technical user.

      – Mani
      Feb 4 '17 at 7:29






    • 1





      The optimal alignment uses information reported by disk. That's not always aligned to the physical block size as sometimes the hardware lies about its block size. Sometimes hard disks have 4k blocks internally, but report 512b blocks. Additional check would be to see if start divides to 4096 (and end+1 also)

      – NickSoft
      May 30 '17 at 7:14








    4




    4





    Worked for me! +1

    – Grizly
    Apr 10 '13 at 1:41





    Worked for me! +1

    – Grizly
    Apr 10 '13 at 1:41




    2




    2





    very simple to check for non-technical user.

    – Mani
    Feb 4 '17 at 7:29





    very simple to check for non-technical user.

    – Mani
    Feb 4 '17 at 7:29




    1




    1





    The optimal alignment uses information reported by disk. That's not always aligned to the physical block size as sometimes the hardware lies about its block size. Sometimes hard disks have 4k blocks internally, but report 512b blocks. Additional check would be to see if start divides to 4096 (and end+1 also)

    – NickSoft
    May 30 '17 at 7:14






    The optimal alignment uses information reported by disk. That's not always aligned to the physical block size as sometimes the hardware lies about its block size. Sometimes hard disks have 4k blocks internally, but report 512b blocks. Additional check would be to see if start divides to 4096 (and end+1 also)

    – NickSoft
    May 30 '17 at 7:14












    1



















    To be sure you have to use both built-in parted align-check option:



    for i in `sudo parted /dev/sda -l | grep -oE "^[[:blank:]]*[0-9]+"`; do sudo parted /dev/sda align-check opt "$i"; done


    and manual check (calculate divisibility by 4096B)



    I've written a bash script to perform both checks:



    https://github.com/crysman/check-partitions-alignment



    (works on any GNU/Linux OS)



    Or you can check manually using this table:



    https://docs.google.com/spreadsheets/d/1dnDlhglxxgApvtUv0-nxn1iFYTqkjRELqCOWJtp3hbs/edit#gid=0



    And yes, SSD HDD's partitions need to be aligned properly for maximum performance.






    share|improve this answer































      1



















      To be sure you have to use both built-in parted align-check option:



      for i in `sudo parted /dev/sda -l | grep -oE "^[[:blank:]]*[0-9]+"`; do sudo parted /dev/sda align-check opt "$i"; done


      and manual check (calculate divisibility by 4096B)



      I've written a bash script to perform both checks:



      https://github.com/crysman/check-partitions-alignment



      (works on any GNU/Linux OS)



      Or you can check manually using this table:



      https://docs.google.com/spreadsheets/d/1dnDlhglxxgApvtUv0-nxn1iFYTqkjRELqCOWJtp3hbs/edit#gid=0



      And yes, SSD HDD's partitions need to be aligned properly for maximum performance.






      share|improve this answer





























        1















        1











        1









        To be sure you have to use both built-in parted align-check option:



        for i in `sudo parted /dev/sda -l | grep -oE "^[[:blank:]]*[0-9]+"`; do sudo parted /dev/sda align-check opt "$i"; done


        and manual check (calculate divisibility by 4096B)



        I've written a bash script to perform both checks:



        https://github.com/crysman/check-partitions-alignment



        (works on any GNU/Linux OS)



        Or you can check manually using this table:



        https://docs.google.com/spreadsheets/d/1dnDlhglxxgApvtUv0-nxn1iFYTqkjRELqCOWJtp3hbs/edit#gid=0



        And yes, SSD HDD's partitions need to be aligned properly for maximum performance.






        share|improve this answer
















        To be sure you have to use both built-in parted align-check option:



        for i in `sudo parted /dev/sda -l | grep -oE "^[[:blank:]]*[0-9]+"`; do sudo parted /dev/sda align-check opt "$i"; done


        and manual check (calculate divisibility by 4096B)



        I've written a bash script to perform both checks:



        https://github.com/crysman/check-partitions-alignment



        (works on any GNU/Linux OS)



        Or you can check manually using this table:



        https://docs.google.com/spreadsheets/d/1dnDlhglxxgApvtUv0-nxn1iFYTqkjRELqCOWJtp3hbs/edit#gid=0



        And yes, SSD HDD's partitions need to be aligned properly for maximum performance.







        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Aug 1 '18 at 9:22

























        answered Jul 31 '18 at 21:22









        crysmancrysman

        3822 silver badges14 bronze badges




        3822 silver badges14 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f50428%2fhow-do-i-check-whether-partitions-on-my-ssd-are-properly-aligned%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?