How can I expand partition?












3















I Installed Ubuntu 16.04 LTS next to Windows 10. I decided to increase my Ubuntu partition because I don't have enough space for apps, So i went to Windows 10 and shrink my larger Partition and now I have 50 GB of unallocated space.. So my question is:



How can I safely expand my Ubuntu partion using this unallocated space? I also have a bootable pendrive with Ubuntu .iso
"nieprzydzielone" means unallocated, sorry, gparted is in Polish, the Orange one is the partition I want to expand










share|improve this question

























  • Add a current-window-only screenshot of gparted /dev/sda to your original question, and I'll take a look for you. You'll need a Ubuntu Live DVD to manage the partition. If you don't already have one, burn one now.

    – heynnema
    Apr 8 '17 at 22:07













  • @heynnema look at my screenshot

    – Daniel Dutkowski
    Apr 9 '17 at 7:20
















3















I Installed Ubuntu 16.04 LTS next to Windows 10. I decided to increase my Ubuntu partition because I don't have enough space for apps, So i went to Windows 10 and shrink my larger Partition and now I have 50 GB of unallocated space.. So my question is:



How can I safely expand my Ubuntu partion using this unallocated space? I also have a bootable pendrive with Ubuntu .iso
"nieprzydzielone" means unallocated, sorry, gparted is in Polish, the Orange one is the partition I want to expand










share|improve this question

























  • Add a current-window-only screenshot of gparted /dev/sda to your original question, and I'll take a look for you. You'll need a Ubuntu Live DVD to manage the partition. If you don't already have one, burn one now.

    – heynnema
    Apr 8 '17 at 22:07













  • @heynnema look at my screenshot

    – Daniel Dutkowski
    Apr 9 '17 at 7:20














3












3








3








I Installed Ubuntu 16.04 LTS next to Windows 10. I decided to increase my Ubuntu partition because I don't have enough space for apps, So i went to Windows 10 and shrink my larger Partition and now I have 50 GB of unallocated space.. So my question is:



How can I safely expand my Ubuntu partion using this unallocated space? I also have a bootable pendrive with Ubuntu .iso
"nieprzydzielone" means unallocated, sorry, gparted is in Polish, the Orange one is the partition I want to expand










share|improve this question
















I Installed Ubuntu 16.04 LTS next to Windows 10. I decided to increase my Ubuntu partition because I don't have enough space for apps, So i went to Windows 10 and shrink my larger Partition and now I have 50 GB of unallocated space.. So my question is:



How can I safely expand my Ubuntu partion using this unallocated space? I also have a bootable pendrive with Ubuntu .iso
"nieprzydzielone" means unallocated, sorry, gparted is in Polish, the Orange one is the partition I want to expand







dual-boot partitioning






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 9 '17 at 0:04







Daniel Dutkowski

















asked Apr 8 '17 at 18:21









Daniel DutkowskiDaniel Dutkowski

183




183













  • Add a current-window-only screenshot of gparted /dev/sda to your original question, and I'll take a look for you. You'll need a Ubuntu Live DVD to manage the partition. If you don't already have one, burn one now.

    – heynnema
    Apr 8 '17 at 22:07













  • @heynnema look at my screenshot

    – Daniel Dutkowski
    Apr 9 '17 at 7:20



















  • Add a current-window-only screenshot of gparted /dev/sda to your original question, and I'll take a look for you. You'll need a Ubuntu Live DVD to manage the partition. If you don't already have one, burn one now.

    – heynnema
    Apr 8 '17 at 22:07













  • @heynnema look at my screenshot

    – Daniel Dutkowski
    Apr 9 '17 at 7:20

















Add a current-window-only screenshot of gparted /dev/sda to your original question, and I'll take a look for you. You'll need a Ubuntu Live DVD to manage the partition. If you don't already have one, burn one now.

– heynnema
Apr 8 '17 at 22:07







Add a current-window-only screenshot of gparted /dev/sda to your original question, and I'll take a look for you. You'll need a Ubuntu Live DVD to manage the partition. If you don't already have one, burn one now.

– heynnema
Apr 8 '17 at 22:07















@heynnema look at my screenshot

– Daniel Dutkowski
Apr 9 '17 at 7:20





@heynnema look at my screenshot

– Daniel Dutkowski
Apr 9 '17 at 7:20










1 Answer
1






active

oldest

votes


















1














Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or loose data.



The use of an extended partition (sda3) makes this a little difficult. I'll outline the easiest way first, and we can add more to the procedure if we have to.



Keep these things in mind:




  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor


  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor


  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)


  • you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window



Do the following...



Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.




  • boot the a Ubuntu Live DVD/USB


  • start gparted or run the following command to open gparted:



    sudo -i gparted &



Step #1




  • right-click on sda5 and select swapoff

  • right-click on sda3 and select resize


  • resize the left side of sda3 all the way to the left


    • it may be difficult to grab the left side of sda3, if so, STOP here



  • you'll see that the unallocated space is now used by sda3

  • close the move/resize window

  • click the Apply icon


Step #2




  • right-click on sda5 and select swapoff (already done in Step #1)

  • right-click on sda5 and select move

  • note (write down) the numeric partition size before the move


  • move sda5 all the way to the left (inside of sda3)


    • be carefull not to resize sda5. If you do, cancel and start Step #2 again



  • close the move/resize window

  • click the Apply icon


Step #3




  • right-click on sda6 and select resize


  • resize the left side of sda6 all the way to the left

  • close the move/resize window

  • click the Apply icon

  • this may take a while so be patient

  • right-click on sda5 and select swapon


Now quit gparted and reboot your computer, being sure to remove the USB flash pen at the appropriate time.






share|improve this answer


























  • So I just have to resize sda3 and sda6 will expand itself?

    – Daniel Dutkowski
    Apr 9 '17 at 14:23











  • Wait until my answer is completed...

    – heynnema
    Apr 9 '17 at 14:30











  • @DanielDutkowski Now my answer is complete.

    – heynnema
    Apr 9 '17 at 14:41











  • I cannot pass first step because sda 3 is busy and I can't resize this (I'm using live USB at the moment) Should I swapoff Linux-swap first?

    – Daniel Dutkowski
    Apr 9 '17 at 14:44











  • Yes, swapoff sda5. I'll update my procedure.

    – heynnema
    Apr 9 '17 at 14:47











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


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f902627%2fhow-can-i-expand-partition%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or loose data.



The use of an extended partition (sda3) makes this a little difficult. I'll outline the easiest way first, and we can add more to the procedure if we have to.



Keep these things in mind:




  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor


  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor


  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)


  • you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window



Do the following...



Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.




  • boot the a Ubuntu Live DVD/USB


  • start gparted or run the following command to open gparted:



    sudo -i gparted &



Step #1




  • right-click on sda5 and select swapoff

  • right-click on sda3 and select resize


  • resize the left side of sda3 all the way to the left


    • it may be difficult to grab the left side of sda3, if so, STOP here



  • you'll see that the unallocated space is now used by sda3

  • close the move/resize window

  • click the Apply icon


Step #2




  • right-click on sda5 and select swapoff (already done in Step #1)

  • right-click on sda5 and select move

  • note (write down) the numeric partition size before the move


  • move sda5 all the way to the left (inside of sda3)


    • be carefull not to resize sda5. If you do, cancel and start Step #2 again



  • close the move/resize window

  • click the Apply icon


Step #3




  • right-click on sda6 and select resize


  • resize the left side of sda6 all the way to the left

  • close the move/resize window

  • click the Apply icon

  • this may take a while so be patient

  • right-click on sda5 and select swapon


Now quit gparted and reboot your computer, being sure to remove the USB flash pen at the appropriate time.






share|improve this answer


























  • So I just have to resize sda3 and sda6 will expand itself?

    – Daniel Dutkowski
    Apr 9 '17 at 14:23











  • Wait until my answer is completed...

    – heynnema
    Apr 9 '17 at 14:30











  • @DanielDutkowski Now my answer is complete.

    – heynnema
    Apr 9 '17 at 14:41











  • I cannot pass first step because sda 3 is busy and I can't resize this (I'm using live USB at the moment) Should I swapoff Linux-swap first?

    – Daniel Dutkowski
    Apr 9 '17 at 14:44











  • Yes, swapoff sda5. I'll update my procedure.

    – heynnema
    Apr 9 '17 at 14:47
















1














Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or loose data.



The use of an extended partition (sda3) makes this a little difficult. I'll outline the easiest way first, and we can add more to the procedure if we have to.



Keep these things in mind:




  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor


  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor


  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)


  • you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window



Do the following...



Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.




  • boot the a Ubuntu Live DVD/USB


  • start gparted or run the following command to open gparted:



    sudo -i gparted &



Step #1




  • right-click on sda5 and select swapoff

  • right-click on sda3 and select resize


  • resize the left side of sda3 all the way to the left


    • it may be difficult to grab the left side of sda3, if so, STOP here



  • you'll see that the unallocated space is now used by sda3

  • close the move/resize window

  • click the Apply icon


Step #2




  • right-click on sda5 and select swapoff (already done in Step #1)

  • right-click on sda5 and select move

  • note (write down) the numeric partition size before the move


  • move sda5 all the way to the left (inside of sda3)


    • be carefull not to resize sda5. If you do, cancel and start Step #2 again



  • close the move/resize window

  • click the Apply icon


Step #3




  • right-click on sda6 and select resize


  • resize the left side of sda6 all the way to the left

  • close the move/resize window

  • click the Apply icon

  • this may take a while so be patient

  • right-click on sda5 and select swapon


Now quit gparted and reboot your computer, being sure to remove the USB flash pen at the appropriate time.






share|improve this answer


























  • So I just have to resize sda3 and sda6 will expand itself?

    – Daniel Dutkowski
    Apr 9 '17 at 14:23











  • Wait until my answer is completed...

    – heynnema
    Apr 9 '17 at 14:30











  • @DanielDutkowski Now my answer is complete.

    – heynnema
    Apr 9 '17 at 14:41











  • I cannot pass first step because sda 3 is busy and I can't resize this (I'm using live USB at the moment) Should I swapoff Linux-swap first?

    – Daniel Dutkowski
    Apr 9 '17 at 14:44











  • Yes, swapoff sda5. I'll update my procedure.

    – heynnema
    Apr 9 '17 at 14:47














1












1








1







Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or loose data.



The use of an extended partition (sda3) makes this a little difficult. I'll outline the easiest way first, and we can add more to the procedure if we have to.



Keep these things in mind:




  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor


  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor


  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)


  • you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window



Do the following...



Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.




  • boot the a Ubuntu Live DVD/USB


  • start gparted or run the following command to open gparted:



    sudo -i gparted &



Step #1




  • right-click on sda5 and select swapoff

  • right-click on sda3 and select resize


  • resize the left side of sda3 all the way to the left


    • it may be difficult to grab the left side of sda3, if so, STOP here



  • you'll see that the unallocated space is now used by sda3

  • close the move/resize window

  • click the Apply icon


Step #2




  • right-click on sda5 and select swapoff (already done in Step #1)

  • right-click on sda5 and select move

  • note (write down) the numeric partition size before the move


  • move sda5 all the way to the left (inside of sda3)


    • be carefull not to resize sda5. If you do, cancel and start Step #2 again



  • close the move/resize window

  • click the Apply icon


Step #3




  • right-click on sda6 and select resize


  • resize the left side of sda6 all the way to the left

  • close the move/resize window

  • click the Apply icon

  • this may take a while so be patient

  • right-click on sda5 and select swapon


Now quit gparted and reboot your computer, being sure to remove the USB flash pen at the appropriate time.






share|improve this answer















Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or loose data.



The use of an extended partition (sda3) makes this a little difficult. I'll outline the easiest way first, and we can add more to the procedure if we have to.



Keep these things in mind:




  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor


  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor


  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)


  • you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window



Do the following...



Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.




  • boot the a Ubuntu Live DVD/USB


  • start gparted or run the following command to open gparted:



    sudo -i gparted &



Step #1




  • right-click on sda5 and select swapoff

  • right-click on sda3 and select resize


  • resize the left side of sda3 all the way to the left


    • it may be difficult to grab the left side of sda3, if so, STOP here



  • you'll see that the unallocated space is now used by sda3

  • close the move/resize window

  • click the Apply icon


Step #2




  • right-click on sda5 and select swapoff (already done in Step #1)

  • right-click on sda5 and select move

  • note (write down) the numeric partition size before the move


  • move sda5 all the way to the left (inside of sda3)


    • be carefull not to resize sda5. If you do, cancel and start Step #2 again



  • close the move/resize window

  • click the Apply icon


Step #3




  • right-click on sda6 and select resize


  • resize the left side of sda6 all the way to the left

  • close the move/resize window

  • click the Apply icon

  • this may take a while so be patient

  • right-click on sda5 and select swapon


Now quit gparted and reboot your computer, being sure to remove the USB flash pen at the appropriate time.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 31 '18 at 22:13









mchid

22.7k25184




22.7k25184










answered Apr 9 '17 at 14:19









heynnemaheynnema

18.3k22054




18.3k22054













  • So I just have to resize sda3 and sda6 will expand itself?

    – Daniel Dutkowski
    Apr 9 '17 at 14:23











  • Wait until my answer is completed...

    – heynnema
    Apr 9 '17 at 14:30











  • @DanielDutkowski Now my answer is complete.

    – heynnema
    Apr 9 '17 at 14:41











  • I cannot pass first step because sda 3 is busy and I can't resize this (I'm using live USB at the moment) Should I swapoff Linux-swap first?

    – Daniel Dutkowski
    Apr 9 '17 at 14:44











  • Yes, swapoff sda5. I'll update my procedure.

    – heynnema
    Apr 9 '17 at 14:47



















  • So I just have to resize sda3 and sda6 will expand itself?

    – Daniel Dutkowski
    Apr 9 '17 at 14:23











  • Wait until my answer is completed...

    – heynnema
    Apr 9 '17 at 14:30











  • @DanielDutkowski Now my answer is complete.

    – heynnema
    Apr 9 '17 at 14:41











  • I cannot pass first step because sda 3 is busy and I can't resize this (I'm using live USB at the moment) Should I swapoff Linux-swap first?

    – Daniel Dutkowski
    Apr 9 '17 at 14:44











  • Yes, swapoff sda5. I'll update my procedure.

    – heynnema
    Apr 9 '17 at 14:47

















So I just have to resize sda3 and sda6 will expand itself?

– Daniel Dutkowski
Apr 9 '17 at 14:23





So I just have to resize sda3 and sda6 will expand itself?

– Daniel Dutkowski
Apr 9 '17 at 14:23













Wait until my answer is completed...

– heynnema
Apr 9 '17 at 14:30





Wait until my answer is completed...

– heynnema
Apr 9 '17 at 14:30













@DanielDutkowski Now my answer is complete.

– heynnema
Apr 9 '17 at 14:41





@DanielDutkowski Now my answer is complete.

– heynnema
Apr 9 '17 at 14:41













I cannot pass first step because sda 3 is busy and I can't resize this (I'm using live USB at the moment) Should I swapoff Linux-swap first?

– Daniel Dutkowski
Apr 9 '17 at 14:44





I cannot pass first step because sda 3 is busy and I can't resize this (I'm using live USB at the moment) Should I swapoff Linux-swap first?

– Daniel Dutkowski
Apr 9 '17 at 14:44













Yes, swapoff sda5. I'll update my procedure.

– heynnema
Apr 9 '17 at 14:47





Yes, swapoff sda5. I'll update my procedure.

– heynnema
Apr 9 '17 at 14:47


















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%2f902627%2fhow-can-i-expand-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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕