How do I delete a partiton and allocate the space to my main Ubuntu partition?












1















I have a partition table that looks like this in gparted:



gparted partition table



I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!










share|improve this question







New contributor




marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1















    I have a partition table that looks like this in gparted:



    gparted partition table



    I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!










    share|improve this question







    New contributor




    marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      I have a partition table that looks like this in gparted:



      gparted partition table



      I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!










      share|improve this question







      New contributor




      marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a partition table that looks like this in gparted:



      gparted partition table



      I want to delete the /dev/sda6 partition and allocate the space to my main sda1 partition, and also allocate the unallocated space to it as well. How do I do this, please? Warning: I am a noob with linux!







      partitioning gparted






      share|improve this question







      New contributor




      marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 10 hours ago









      marienbadmarienbad

      1061




      1061




      New contributor




      marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      marienbad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          2














          Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.






          share|improve this answer








          New contributor




          Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.
















          • 1





            Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1

            – Charles Green
            9 hours ago











          • I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?

            – marienbad
            8 hours ago



















          0














          Boot with live USB/DVD in gparted.




          1. Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that swapoff -a and delete 'sda2'.


          2. resize 'sda1'.


          3. Create new swap partition.



          Then mount the Ubuntu partition.



          sudo mount /dev/sda1 /mnt


          Find the UUID of Ubuntu and swap partitions.



          sudo blkid -o full -s UUID


          Edit /etc/fstab file



          sudo gedit /mnt/etc/fstab


          Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab



          Save and close.



          Reboot






          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/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
            });


            }
            });






            marienbad is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1117407%2fhow-do-i-delete-a-partiton-and-allocate-the-space-to-my-main-ubuntu-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









            2














            Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.






            share|improve this answer








            New contributor




            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
















            • 1





              Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1

              – Charles Green
              9 hours ago











            • I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?

              – marienbad
              8 hours ago
















            2














            Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.






            share|improve this answer








            New contributor




            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
















            • 1





              Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1

              – Charles Green
              9 hours ago











            • I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?

              – marienbad
              8 hours ago














            2












            2








            2







            Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.






            share|improve this answer








            New contributor




            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.










            Right click on /dev/sda6, and select delete. Then right click on sda1 and select resize/move. increase the storage until there is no free space following it. click resize/move and then click on the tick in the top of gparted.







            share|improve this answer








            New contributor




            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            share|improve this answer



            share|improve this answer






            New contributor




            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            answered 10 hours ago









            Neil HeffernanNeil Heffernan

            211




            211




            New contributor




            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





            New contributor





            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






            Neil Heffernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.








            • 1





              Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1

              – Charles Green
              9 hours ago











            • I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?

              – marienbad
              8 hours ago














            • 1





              Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1

              – Charles Green
              9 hours ago











            • I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?

              – marienbad
              8 hours ago








            1




            1





            Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1

            – Charles Green
            9 hours ago





            Please note in the image, that /sda6 is inside /sda2. At the very least /sda2 will need to be shrunk, and probably moved to make the empty space contiguous with /sda1

            – Charles Green
            9 hours ago













            I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?

            – marienbad
            8 hours ago





            I am unable to resize sda1, and don't know how to merge sda2 and sda1, how do I do that?

            – marienbad
            8 hours ago













            0














            Boot with live USB/DVD in gparted.




            1. Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that swapoff -a and delete 'sda2'.


            2. resize 'sda1'.


            3. Create new swap partition.



            Then mount the Ubuntu partition.



            sudo mount /dev/sda1 /mnt


            Find the UUID of Ubuntu and swap partitions.



            sudo blkid -o full -s UUID


            Edit /etc/fstab file



            sudo gedit /mnt/etc/fstab


            Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab



            Save and close.



            Reboot






            share|improve this answer






























              0














              Boot with live USB/DVD in gparted.




              1. Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that swapoff -a and delete 'sda2'.


              2. resize 'sda1'.


              3. Create new swap partition.



              Then mount the Ubuntu partition.



              sudo mount /dev/sda1 /mnt


              Find the UUID of Ubuntu and swap partitions.



              sudo blkid -o full -s UUID


              Edit /etc/fstab file



              sudo gedit /mnt/etc/fstab


              Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab



              Save and close.



              Reboot






              share|improve this answer




























                0












                0








                0







                Boot with live USB/DVD in gparted.




                1. Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that swapoff -a and delete 'sda2'.


                2. resize 'sda1'.


                3. Create new swap partition.



                Then mount the Ubuntu partition.



                sudo mount /dev/sda1 /mnt


                Find the UUID of Ubuntu and swap partitions.



                sudo blkid -o full -s UUID


                Edit /etc/fstab file



                sudo gedit /mnt/etc/fstab


                Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab



                Save and close.



                Reboot






                share|improve this answer















                Boot with live USB/DVD in gparted.




                1. Since except the swap on 'sda5' no space is being used as 'sda6' is to be deleted. I would suggest that swapoff -a and delete 'sda2'.


                2. resize 'sda1'.


                3. Create new swap partition.



                Then mount the Ubuntu partition.



                sudo mount /dev/sda1 /mnt


                Find the UUID of Ubuntu and swap partitions.



                sudo blkid -o full -s UUID


                Edit /etc/fstab file



                sudo gedit /mnt/etc/fstab


                Change the UUID entries of "/" (Ubuntu) and swap partitionsin /etc/fstab



                Save and close.



                Reboot







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 8 hours ago

























                answered 8 hours ago









                VeeJayVeeJay

                1,6211718




                1,6211718






















                    marienbad is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    marienbad is a new contributor. Be nice, and check out our Code of Conduct.













                    marienbad is a new contributor. Be nice, and check out our Code of Conduct.












                    marienbad is a new contributor. Be nice, and check out our Code of Conduct.
















                    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%2f1117407%2fhow-do-i-delete-a-partiton-and-allocate-the-space-to-my-main-ubuntu-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 did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局