How Do I Extend the Root Partition Backwards











up vote
0
down vote

favorite












I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.enter image description here










share|improve this question


























    up vote
    0
    down vote

    favorite












    I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.enter image description here










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.enter image description here










      share|improve this question













      I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could add extra space to my Linux partition. Yes I have an MBR based system and my partitions are all used up. However, my C: drive in Windows is behind my Linux partition. So the free space ended up being behind the root partition of Linux on the partition table in GParted. How do I use this free space that's behind my root partition? I want to make this free space a part of my Linux root partition. Please refer to the picture below.enter image description here







      debian filesystems root gparted






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      KALI99

      86




      86






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.



          Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs on your root filesystem to extend it across the new space in the partition.



          The link below gives all the steps you need:



          https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition



          edited: changed left from right.






          share|improve this answer










          New contributor




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














          • 1




            The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
            – KALI99
            2 days ago












          • Nope I had my directions mixed up :)
            – frontsidebus
            yesterday










          • ok then.. I'll try that. Thank you
            – KALI99
            yesterday











          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%2f487488%2fhow-do-i-extend-the-root-partition-backwards%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








          up vote
          0
          down vote



          accepted










          There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.



          Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs on your root filesystem to extend it across the new space in the partition.



          The link below gives all the steps you need:



          https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition



          edited: changed left from right.






          share|improve this answer










          New contributor




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














          • 1




            The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
            – KALI99
            2 days ago












          • Nope I had my directions mixed up :)
            – frontsidebus
            yesterday










          • ok then.. I'll try that. Thank you
            – KALI99
            yesterday















          up vote
          0
          down vote



          accepted










          There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.



          Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs on your root filesystem to extend it across the new space in the partition.



          The link below gives all the steps you need:



          https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition



          edited: changed left from right.






          share|improve this answer










          New contributor




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














          • 1




            The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
            – KALI99
            2 days ago












          • Nope I had my directions mixed up :)
            – frontsidebus
            yesterday










          • ok then.. I'll try that. Thank you
            – KALI99
            yesterday













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.



          Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs on your root filesystem to extend it across the new space in the partition.



          The link below gives all the steps you need:



          https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition



          edited: changed left from right.






          share|improve this answer










          New contributor




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









          There is actually some good documentation for moving partitions around using gparted. You'll want to make sure your filesystems are unmounted before moving things around. The easiest way to do this (and it looks like you have done this step already) is to use the Ubuntu livecd or liveusb, and boot into gparted.



          Once there, you'll want to move your ext4 filesystem over to the left (this is your root filesystem for your Ubuntu install, that lives on /dev/sda3), so that your unallocated space is directly to the right of your /dev/sda3 partition. Next, you'll need to extend the partion across the unallocated space. Once your partition is extended, your final step will be to run a resize2fs on your root filesystem to extend it across the new space in the partition.



          The link below gives all the steps you need:



          https://gparted.org/display-doc.php?name=help-manual#gparted-move-partition



          edited: changed left from right.







          share|improve this answer










          New contributor




          frontsidebus 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








          edited yesterday





















          New contributor




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









          answered 2 days ago









          frontsidebus

          1164




          1164




          New contributor




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





          New contributor





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






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








          • 1




            The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
            – KALI99
            2 days ago












          • Nope I had my directions mixed up :)
            – frontsidebus
            yesterday










          • ok then.. I'll try that. Thank you
            – KALI99
            yesterday














          • 1




            The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
            – KALI99
            2 days ago












          • Nope I had my directions mixed up :)
            – frontsidebus
            yesterday










          • ok then.. I'll try that. Thank you
            – KALI99
            yesterday








          1




          1




          The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
          – KALI99
          2 days ago






          The unallocated space is already to the left. Do you mean move /dev/sda3 to the left so that sda1 and sda3 are right next to each other and the free space is to the right? Or do I have my directions mixed up?
          – KALI99
          2 days ago














          Nope I had my directions mixed up :)
          – frontsidebus
          yesterday




          Nope I had my directions mixed up :)
          – frontsidebus
          yesterday












          ok then.. I'll try that. Thank you
          – KALI99
          yesterday




          ok then.. I'll try that. Thank you
          – KALI99
          yesterday


















          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%2f487488%2fhow-do-i-extend-the-root-partition-backwards%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

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt