Resize root partition to unallocated space before [duplicate]

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








up vote
1
down vote

favorite
1













This question already has an answer here:



  • How to extend my root (/) partition?

    2 answers



I need more space on my root partition running Ubuntu 17 (using Xfce session).

I do have a lot of unallocated space BEFORE.

However, when I try to resize root partition - /dev/sdb2 , I can't add/remove a MiB...



Is this even possible?



If so, can it somehow be done from the live system or do I have to use live CD/USB?



enter image description here



There is really just Ubuntu and Xcfe session, LUBUNTU_SYSTEM is just an old label :)










share|improve this question













marked as duplicate by user68186, Eric Carvalho, David Foerster, vidarlo, muru Feb 8 at 6:07


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2




    You cannot resize a mounted partition so you have to use a live session. Then you can first move your / partition to the beginning of your disk and then resize. I would recommend a backup before any operation on the partitions - one never knows ...
    – muclux
    Feb 2 at 17:28











  • @muclux will the system and booting remain untouched? :)
    – jave.web
    Feb 2 at 18:01










  • Well, as I said, better backup before. But normally all should go well, if you pay attention at what you are doing. Boot from Live DVD/USB, call gparted, move /dev/sdb2 to create an unallocated space behind it, and then resize /dev/sdb2. Don't mount your disk partitions during this operation.
    – muclux
    Feb 2 at 18:16










  • @muclux Thank you, booting a linux live USB (Lubuntu Try Mode) and using GParted worked :) ... I think that I have read somewhere that in newer versions you can resize/move even when in the live system - is it impossible in this case because it is not just expanding to the right but also moving to the left?
    – jave.web
    Feb 2 at 19:36







  • 1




    You can only grow to the right while it is mounted. Moving requires it to be unmounted. BTRFS can even shrink while it is mounted ;)
    – psusi
    Feb 2 at 19:37














up vote
1
down vote

favorite
1













This question already has an answer here:



  • How to extend my root (/) partition?

    2 answers



I need more space on my root partition running Ubuntu 17 (using Xfce session).

I do have a lot of unallocated space BEFORE.

However, when I try to resize root partition - /dev/sdb2 , I can't add/remove a MiB...



Is this even possible?



If so, can it somehow be done from the live system or do I have to use live CD/USB?



enter image description here



There is really just Ubuntu and Xcfe session, LUBUNTU_SYSTEM is just an old label :)










share|improve this question













marked as duplicate by user68186, Eric Carvalho, David Foerster, vidarlo, muru Feb 8 at 6:07


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2




    You cannot resize a mounted partition so you have to use a live session. Then you can first move your / partition to the beginning of your disk and then resize. I would recommend a backup before any operation on the partitions - one never knows ...
    – muclux
    Feb 2 at 17:28











  • @muclux will the system and booting remain untouched? :)
    – jave.web
    Feb 2 at 18:01










  • Well, as I said, better backup before. But normally all should go well, if you pay attention at what you are doing. Boot from Live DVD/USB, call gparted, move /dev/sdb2 to create an unallocated space behind it, and then resize /dev/sdb2. Don't mount your disk partitions during this operation.
    – muclux
    Feb 2 at 18:16










  • @muclux Thank you, booting a linux live USB (Lubuntu Try Mode) and using GParted worked :) ... I think that I have read somewhere that in newer versions you can resize/move even when in the live system - is it impossible in this case because it is not just expanding to the right but also moving to the left?
    – jave.web
    Feb 2 at 19:36







  • 1




    You can only grow to the right while it is mounted. Moving requires it to be unmounted. BTRFS can even shrink while it is mounted ;)
    – psusi
    Feb 2 at 19:37












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1






This question already has an answer here:



  • How to extend my root (/) partition?

    2 answers



I need more space on my root partition running Ubuntu 17 (using Xfce session).

I do have a lot of unallocated space BEFORE.

However, when I try to resize root partition - /dev/sdb2 , I can't add/remove a MiB...



Is this even possible?



If so, can it somehow be done from the live system or do I have to use live CD/USB?



enter image description here



There is really just Ubuntu and Xcfe session, LUBUNTU_SYSTEM is just an old label :)










share|improve this question














This question already has an answer here:



  • How to extend my root (/) partition?

    2 answers



I need more space on my root partition running Ubuntu 17 (using Xfce session).

I do have a lot of unallocated space BEFORE.

However, when I try to resize root partition - /dev/sdb2 , I can't add/remove a MiB...



Is this even possible?



If so, can it somehow be done from the live system or do I have to use live CD/USB?



enter image description here



There is really just Ubuntu and Xcfe session, LUBUNTU_SYSTEM is just an old label :)





This question already has an answer here:



  • How to extend my root (/) partition?

    2 answers







partitioning gparted ext4 unallocated






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 2 at 17:19









jave.web

1157




1157




marked as duplicate by user68186, Eric Carvalho, David Foerster, vidarlo, muru Feb 8 at 6:07


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by user68186, Eric Carvalho, David Foerster, vidarlo, muru Feb 8 at 6:07


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 2




    You cannot resize a mounted partition so you have to use a live session. Then you can first move your / partition to the beginning of your disk and then resize. I would recommend a backup before any operation on the partitions - one never knows ...
    – muclux
    Feb 2 at 17:28











  • @muclux will the system and booting remain untouched? :)
    – jave.web
    Feb 2 at 18:01










  • Well, as I said, better backup before. But normally all should go well, if you pay attention at what you are doing. Boot from Live DVD/USB, call gparted, move /dev/sdb2 to create an unallocated space behind it, and then resize /dev/sdb2. Don't mount your disk partitions during this operation.
    – muclux
    Feb 2 at 18:16










  • @muclux Thank you, booting a linux live USB (Lubuntu Try Mode) and using GParted worked :) ... I think that I have read somewhere that in newer versions you can resize/move even when in the live system - is it impossible in this case because it is not just expanding to the right but also moving to the left?
    – jave.web
    Feb 2 at 19:36







  • 1




    You can only grow to the right while it is mounted. Moving requires it to be unmounted. BTRFS can even shrink while it is mounted ;)
    – psusi
    Feb 2 at 19:37












  • 2




    You cannot resize a mounted partition so you have to use a live session. Then you can first move your / partition to the beginning of your disk and then resize. I would recommend a backup before any operation on the partitions - one never knows ...
    – muclux
    Feb 2 at 17:28











  • @muclux will the system and booting remain untouched? :)
    – jave.web
    Feb 2 at 18:01










  • Well, as I said, better backup before. But normally all should go well, if you pay attention at what you are doing. Boot from Live DVD/USB, call gparted, move /dev/sdb2 to create an unallocated space behind it, and then resize /dev/sdb2. Don't mount your disk partitions during this operation.
    – muclux
    Feb 2 at 18:16










  • @muclux Thank you, booting a linux live USB (Lubuntu Try Mode) and using GParted worked :) ... I think that I have read somewhere that in newer versions you can resize/move even when in the live system - is it impossible in this case because it is not just expanding to the right but also moving to the left?
    – jave.web
    Feb 2 at 19:36







  • 1




    You can only grow to the right while it is mounted. Moving requires it to be unmounted. BTRFS can even shrink while it is mounted ;)
    – psusi
    Feb 2 at 19:37







2




2




You cannot resize a mounted partition so you have to use a live session. Then you can first move your / partition to the beginning of your disk and then resize. I would recommend a backup before any operation on the partitions - one never knows ...
– muclux
Feb 2 at 17:28





You cannot resize a mounted partition so you have to use a live session. Then you can first move your / partition to the beginning of your disk and then resize. I would recommend a backup before any operation on the partitions - one never knows ...
– muclux
Feb 2 at 17:28













@muclux will the system and booting remain untouched? :)
– jave.web
Feb 2 at 18:01




@muclux will the system and booting remain untouched? :)
– jave.web
Feb 2 at 18:01












Well, as I said, better backup before. But normally all should go well, if you pay attention at what you are doing. Boot from Live DVD/USB, call gparted, move /dev/sdb2 to create an unallocated space behind it, and then resize /dev/sdb2. Don't mount your disk partitions during this operation.
– muclux
Feb 2 at 18:16




Well, as I said, better backup before. But normally all should go well, if you pay attention at what you are doing. Boot from Live DVD/USB, call gparted, move /dev/sdb2 to create an unallocated space behind it, and then resize /dev/sdb2. Don't mount your disk partitions during this operation.
– muclux
Feb 2 at 18:16












@muclux Thank you, booting a linux live USB (Lubuntu Try Mode) and using GParted worked :) ... I think that I have read somewhere that in newer versions you can resize/move even when in the live system - is it impossible in this case because it is not just expanding to the right but also moving to the left?
– jave.web
Feb 2 at 19:36





@muclux Thank you, booting a linux live USB (Lubuntu Try Mode) and using GParted worked :) ... I think that I have read somewhere that in newer versions you can resize/move even when in the live system - is it impossible in this case because it is not just expanding to the right but also moving to the left?
– jave.web
Feb 2 at 19:36





1




1




You can only grow to the right while it is mounted. Moving requires it to be unmounted. BTRFS can even shrink while it is mounted ;)
– psusi
Feb 2 at 19:37




You can only grow to the right while it is mounted. Moving requires it to be unmounted. BTRFS can even shrink while it is mounted ;)
– psusi
Feb 2 at 19:37










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










A partition can only be resized by modifying its end. Therefore first, you have to move the / partition to the beginning of the drive, gaining some free space after the moved / partition. Then you can grow the / partition which will be done by changing its end block number to a bigger number.



These actions can both be made through GParted, called from a live system on an USB or a DVD, but not from the current system where the partition is currently mounted.






share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    A partition can only be resized by modifying its end. Therefore first, you have to move the / partition to the beginning of the drive, gaining some free space after the moved / partition. Then you can grow the / partition which will be done by changing its end block number to a bigger number.



    These actions can both be made through GParted, called from a live system on an USB or a DVD, but not from the current system where the partition is currently mounted.






    share|improve this answer


























      up vote
      2
      down vote



      accepted










      A partition can only be resized by modifying its end. Therefore first, you have to move the / partition to the beginning of the drive, gaining some free space after the moved / partition. Then you can grow the / partition which will be done by changing its end block number to a bigger number.



      These actions can both be made through GParted, called from a live system on an USB or a DVD, but not from the current system where the partition is currently mounted.






      share|improve this answer
























        up vote
        2
        down vote



        accepted







        up vote
        2
        down vote



        accepted






        A partition can only be resized by modifying its end. Therefore first, you have to move the / partition to the beginning of the drive, gaining some free space after the moved / partition. Then you can grow the / partition which will be done by changing its end block number to a bigger number.



        These actions can both be made through GParted, called from a live system on an USB or a DVD, but not from the current system where the partition is currently mounted.






        share|improve this answer














        A partition can only be resized by modifying its end. Therefore first, you have to move the / partition to the beginning of the drive, gaining some free space after the moved / partition. Then you can grow the / partition which will be done by changing its end block number to a bigger number.



        These actions can both be made through GParted, called from a live system on an USB or a DVD, but not from the current system where the partition is currently mounted.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 5 at 18:35









        jave.web

        1157




        1157










        answered Feb 5 at 18:02









        muclux

        2,1931524




        2,1931524












            Popular posts from this blog

            Which professions warranted travel in Medieval times?

            How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

            Trouble downloading packages list due to a “Hash sum mismatch” error