gparted: how to merge unallocated space with a partition

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I want to merge unallocated space to an ext4 partition. But gparted seems to prevent this. I cannot extend the partition.



see screenshot: merge unallocated with sda5.



enter image description here










share|improve this question















migrated from serverfault.com Nov 23 at 20:52


This question came from our site for system and network administrators.














  • That ntfs partition, is probably just wasted space, left over from a previous Microsoft Windows install.
    – ctrl-alt-delor
    Nov 24 at 0:05










  • Thank you for the acceptance! Favour returned, question upvoted! ;-)
    – Fabby
    Nov 24 at 21:13














up vote
1
down vote

favorite












I want to merge unallocated space to an ext4 partition. But gparted seems to prevent this. I cannot extend the partition.



see screenshot: merge unallocated with sda5.



enter image description here










share|improve this question















migrated from serverfault.com Nov 23 at 20:52


This question came from our site for system and network administrators.














  • That ntfs partition, is probably just wasted space, left over from a previous Microsoft Windows install.
    – ctrl-alt-delor
    Nov 24 at 0:05










  • Thank you for the acceptance! Favour returned, question upvoted! ;-)
    – Fabby
    Nov 24 at 21:13












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I want to merge unallocated space to an ext4 partition. But gparted seems to prevent this. I cannot extend the partition.



see screenshot: merge unallocated with sda5.



enter image description here










share|improve this question















I want to merge unallocated space to an ext4 partition. But gparted seems to prevent this. I cannot extend the partition.



see screenshot: merge unallocated with sda5.



enter image description here







gparted






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 at 23:58









ctrl-alt-delor

10.2k41955




10.2k41955










asked Nov 23 at 20:10









caliph

1084




1084




migrated from serverfault.com Nov 23 at 20:52


This question came from our site for system and network administrators.






migrated from serverfault.com Nov 23 at 20:52


This question came from our site for system and network administrators.













  • That ntfs partition, is probably just wasted space, left over from a previous Microsoft Windows install.
    – ctrl-alt-delor
    Nov 24 at 0:05










  • Thank you for the acceptance! Favour returned, question upvoted! ;-)
    – Fabby
    Nov 24 at 21:13
















  • That ntfs partition, is probably just wasted space, left over from a previous Microsoft Windows install.
    – ctrl-alt-delor
    Nov 24 at 0:05










  • Thank you for the acceptance! Favour returned, question upvoted! ;-)
    – Fabby
    Nov 24 at 21:13















That ntfs partition, is probably just wasted space, left over from a previous Microsoft Windows install.
– ctrl-alt-delor
Nov 24 at 0:05




That ntfs partition, is probably just wasted space, left over from a previous Microsoft Windows install.
– ctrl-alt-delor
Nov 24 at 0:05












Thank you for the acceptance! Favour returned, question upvoted! ;-)
– Fabby
Nov 24 at 21:13




Thank you for the acceptance! Favour returned, question upvoted! ;-)
– Fabby
Nov 24 at 21:13










2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










That's because you have unallocated space outside of the extended partition (sda3) which contains the partition you want to extend (sda5) so I would:



  1. Take a full system backup using CloneZilla Live¹

  2. Boot a live environment of gparted

  3. Move sda3 to the left (this will move both sda5 and sda6 as well)

  4. Extend sda3 with the now free space at the end

  5. Move sda6 to the end of sda3

  6. Extend sda5 still leaving 10% of the disk space unallocated between sda5 and sda6²

Note¹: Yes, take a backup! If you have a power failure in any of the following steps, your entire disk is toast!
Note²: That leaves you some wriggling room to extend your swap or your data (or both) in an emergency.
Note³: Yes, you can also extend sda3 to the left and then extend sda5 to the left but that will not give you the 10% spare (unallocated) space for emergency extension in the future and the entire process is going to take all night anyway.






share|improve this answer






















  • Why reserve 10% OP did not ask for it. If they need swap in a hurry, they can add a file as swap.
    – ctrl-alt-delor
    Nov 24 at 0:03






  • 1




    In the good old days of separate command line tools, I could extend sda3, move sda5, then extend sda5 without moving sda6. Can we not do that anymore?
    – ctrl-alt-delor
    Nov 24 at 0:04










  • @ctrl-alt-delor yes, we can. (see Note³) I'm just stating an opinion what I would do... (edited to include gparted live)
    – Fabby
    Nov 24 at 9:08


















up vote
0
down vote













That image has a colored, not a greyed out checkmark for apply.




That means you need to apply the pending actions and reboot.




  • After the reboot, try to resize the partition.


Dont try to shrink the unallocated space.




  • Grow the partition you want bigger then apply.


And of course reboot again.







share|improve this answer




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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/3.0/"u003ecc by-sa 3.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%2funix.stackexchange.com%2fquestions%2f483769%2fgparted-how-to-merge-unallocated-space-with-a-partition%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    That's because you have unallocated space outside of the extended partition (sda3) which contains the partition you want to extend (sda5) so I would:



    1. Take a full system backup using CloneZilla Live¹

    2. Boot a live environment of gparted

    3. Move sda3 to the left (this will move both sda5 and sda6 as well)

    4. Extend sda3 with the now free space at the end

    5. Move sda6 to the end of sda3

    6. Extend sda5 still leaving 10% of the disk space unallocated between sda5 and sda6²

    Note¹: Yes, take a backup! If you have a power failure in any of the following steps, your entire disk is toast!
    Note²: That leaves you some wriggling room to extend your swap or your data (or both) in an emergency.
    Note³: Yes, you can also extend sda3 to the left and then extend sda5 to the left but that will not give you the 10% spare (unallocated) space for emergency extension in the future and the entire process is going to take all night anyway.






    share|improve this answer






















    • Why reserve 10% OP did not ask for it. If they need swap in a hurry, they can add a file as swap.
      – ctrl-alt-delor
      Nov 24 at 0:03






    • 1




      In the good old days of separate command line tools, I could extend sda3, move sda5, then extend sda5 without moving sda6. Can we not do that anymore?
      – ctrl-alt-delor
      Nov 24 at 0:04










    • @ctrl-alt-delor yes, we can. (see Note³) I'm just stating an opinion what I would do... (edited to include gparted live)
      – Fabby
      Nov 24 at 9:08















    up vote
    1
    down vote



    accepted










    That's because you have unallocated space outside of the extended partition (sda3) which contains the partition you want to extend (sda5) so I would:



    1. Take a full system backup using CloneZilla Live¹

    2. Boot a live environment of gparted

    3. Move sda3 to the left (this will move both sda5 and sda6 as well)

    4. Extend sda3 with the now free space at the end

    5. Move sda6 to the end of sda3

    6. Extend sda5 still leaving 10% of the disk space unallocated between sda5 and sda6²

    Note¹: Yes, take a backup! If you have a power failure in any of the following steps, your entire disk is toast!
    Note²: That leaves you some wriggling room to extend your swap or your data (or both) in an emergency.
    Note³: Yes, you can also extend sda3 to the left and then extend sda5 to the left but that will not give you the 10% spare (unallocated) space for emergency extension in the future and the entire process is going to take all night anyway.






    share|improve this answer






















    • Why reserve 10% OP did not ask for it. If they need swap in a hurry, they can add a file as swap.
      – ctrl-alt-delor
      Nov 24 at 0:03






    • 1




      In the good old days of separate command line tools, I could extend sda3, move sda5, then extend sda5 without moving sda6. Can we not do that anymore?
      – ctrl-alt-delor
      Nov 24 at 0:04










    • @ctrl-alt-delor yes, we can. (see Note³) I'm just stating an opinion what I would do... (edited to include gparted live)
      – Fabby
      Nov 24 at 9:08













    up vote
    1
    down vote



    accepted







    up vote
    1
    down vote



    accepted






    That's because you have unallocated space outside of the extended partition (sda3) which contains the partition you want to extend (sda5) so I would:



    1. Take a full system backup using CloneZilla Live¹

    2. Boot a live environment of gparted

    3. Move sda3 to the left (this will move both sda5 and sda6 as well)

    4. Extend sda3 with the now free space at the end

    5. Move sda6 to the end of sda3

    6. Extend sda5 still leaving 10% of the disk space unallocated between sda5 and sda6²

    Note¹: Yes, take a backup! If you have a power failure in any of the following steps, your entire disk is toast!
    Note²: That leaves you some wriggling room to extend your swap or your data (or both) in an emergency.
    Note³: Yes, you can also extend sda3 to the left and then extend sda5 to the left but that will not give you the 10% spare (unallocated) space for emergency extension in the future and the entire process is going to take all night anyway.






    share|improve this answer














    That's because you have unallocated space outside of the extended partition (sda3) which contains the partition you want to extend (sda5) so I would:



    1. Take a full system backup using CloneZilla Live¹

    2. Boot a live environment of gparted

    3. Move sda3 to the left (this will move both sda5 and sda6 as well)

    4. Extend sda3 with the now free space at the end

    5. Move sda6 to the end of sda3

    6. Extend sda5 still leaving 10% of the disk space unallocated between sda5 and sda6²

    Note¹: Yes, take a backup! If you have a power failure in any of the following steps, your entire disk is toast!
    Note²: That leaves you some wriggling room to extend your swap or your data (or both) in an emergency.
    Note³: Yes, you can also extend sda3 to the left and then extend sda5 to the left but that will not give you the 10% spare (unallocated) space for emergency extension in the future and the entire process is going to take all night anyway.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 24 at 9:03

























    answered Nov 23 at 21:58









    Fabby

    3,14911127




    3,14911127











    • Why reserve 10% OP did not ask for it. If they need swap in a hurry, they can add a file as swap.
      – ctrl-alt-delor
      Nov 24 at 0:03






    • 1




      In the good old days of separate command line tools, I could extend sda3, move sda5, then extend sda5 without moving sda6. Can we not do that anymore?
      – ctrl-alt-delor
      Nov 24 at 0:04










    • @ctrl-alt-delor yes, we can. (see Note³) I'm just stating an opinion what I would do... (edited to include gparted live)
      – Fabby
      Nov 24 at 9:08

















    • Why reserve 10% OP did not ask for it. If they need swap in a hurry, they can add a file as swap.
      – ctrl-alt-delor
      Nov 24 at 0:03






    • 1




      In the good old days of separate command line tools, I could extend sda3, move sda5, then extend sda5 without moving sda6. Can we not do that anymore?
      – ctrl-alt-delor
      Nov 24 at 0:04










    • @ctrl-alt-delor yes, we can. (see Note³) I'm just stating an opinion what I would do... (edited to include gparted live)
      – Fabby
      Nov 24 at 9:08
















    Why reserve 10% OP did not ask for it. If they need swap in a hurry, they can add a file as swap.
    – ctrl-alt-delor
    Nov 24 at 0:03




    Why reserve 10% OP did not ask for it. If they need swap in a hurry, they can add a file as swap.
    – ctrl-alt-delor
    Nov 24 at 0:03




    1




    1




    In the good old days of separate command line tools, I could extend sda3, move sda5, then extend sda5 without moving sda6. Can we not do that anymore?
    – ctrl-alt-delor
    Nov 24 at 0:04




    In the good old days of separate command line tools, I could extend sda3, move sda5, then extend sda5 without moving sda6. Can we not do that anymore?
    – ctrl-alt-delor
    Nov 24 at 0:04












    @ctrl-alt-delor yes, we can. (see Note³) I'm just stating an opinion what I would do... (edited to include gparted live)
    – Fabby
    Nov 24 at 9:08





    @ctrl-alt-delor yes, we can. (see Note³) I'm just stating an opinion what I would do... (edited to include gparted live)
    – Fabby
    Nov 24 at 9:08













    up vote
    0
    down vote













    That image has a colored, not a greyed out checkmark for apply.




    That means you need to apply the pending actions and reboot.




    • After the reboot, try to resize the partition.


    Dont try to shrink the unallocated space.




    • Grow the partition you want bigger then apply.


    And of course reboot again.







    share|improve this answer
























      up vote
      0
      down vote













      That image has a colored, not a greyed out checkmark for apply.




      That means you need to apply the pending actions and reboot.




      • After the reboot, try to resize the partition.


      Dont try to shrink the unallocated space.




      • Grow the partition you want bigger then apply.


      And of course reboot again.







      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        That image has a colored, not a greyed out checkmark for apply.




        That means you need to apply the pending actions and reboot.




        • After the reboot, try to resize the partition.


        Dont try to shrink the unallocated space.




        • Grow the partition you want bigger then apply.


        And of course reboot again.







        share|improve this answer












        That image has a colored, not a greyed out checkmark for apply.




        That means you need to apply the pending actions and reboot.




        • After the reboot, try to resize the partition.


        Dont try to shrink the unallocated space.




        • Grow the partition you want bigger then apply.


        And of course reboot again.








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 24 at 8:02









        Michael Prokopec

        68716




        68716



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


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





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2funix.stackexchange.com%2fquestions%2f483769%2fgparted-how-to-merge-unallocated-space-with-a-partition%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

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay