Is it possible to resize my root partition without reinstalling Ubunutu [dual boot]?

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








up vote
2
down vote

favorite
1












I have Ubunutu installed on my computer as a dual boot option. I made my root partition too small, and I was wondering if I can make it bigger without reinstalling Ubunutu. Is there any way to do this?



Below is the layout of my partitions. Ideally, I would reduce the size of the home partition, and increase the size of the root partition.



fdisk results



gparted results



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 83F136D6-6E47-42AF-B60F-104693424105

Device Start End Sectors Size Type
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M Lenovo boot partition
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 1357260799 1352368128 644.9G Microsoft basic data
/dev/sda6 1869260800 1921689599 52428800 25G Microsoft basic data
/dev/sda7 1921689600 1953523711 31834112 15.2G Windows recovery environment
/dev/sda8 1357260800 1388511231 31250432 14.9G Linux swap
/dev/sda9 1388511232 1417807871 29296640 14G Linux filesystem
/dev/sda10 1417807872 1869260799 451452928 215.3G Linux filesystem

Partition table entries are not in disk order.









share|improve this question























  • Yes you can resize your partitions without re-install. Please copy/paste text into your question (a pic of text is much harder to read). If you tried doing it whilst "/" was mounted it'd not let you (you need to umount first), so just use your Ubuntu install media, run gparted from there and re-size will work. If you use grub on that system you'll likely need to re-install grub's mbr (so it points to the new location of /boot; but that's pretty easy)
    – guiverc
    Mar 5 at 22:52










  • "so just use your Ubuntu install media, run gparted from there" What does this mean? Sorry, I'm very new to Ubuntu and I don't understand what this means.
    – awoh
    Mar 5 at 23:08











  • I meant grab your install media & install it; reboot to run it & select "try ubuntu" so your (hdd/sdd / partition isn't in use). when its running, run gparted from within the 'live' ubuntu (ie. try-ubuntu from install media). it'll then treat your "/" partition as any other and let you resize it. I'd then reboot & see if it runs (if you use grub, it may fail getting to step 1.5; ie. you'll find yourself in grub.rescue; in which case you can enter commands to boot your system & fix it, or return to install media & fix from there...
    – guiverc
    Mar 5 at 23:17










  • if grub needs fixing (note I'd ignore this until you need it as it may not be an issue) you can look at askubuntu.com/questions/831216/reinstalling-grub2-efi-partition
    – guiverc
    Mar 5 at 23:19














up vote
2
down vote

favorite
1












I have Ubunutu installed on my computer as a dual boot option. I made my root partition too small, and I was wondering if I can make it bigger without reinstalling Ubunutu. Is there any way to do this?



Below is the layout of my partitions. Ideally, I would reduce the size of the home partition, and increase the size of the root partition.



fdisk results



gparted results



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 83F136D6-6E47-42AF-B60F-104693424105

Device Start End Sectors Size Type
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M Lenovo boot partition
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 1357260799 1352368128 644.9G Microsoft basic data
/dev/sda6 1869260800 1921689599 52428800 25G Microsoft basic data
/dev/sda7 1921689600 1953523711 31834112 15.2G Windows recovery environment
/dev/sda8 1357260800 1388511231 31250432 14.9G Linux swap
/dev/sda9 1388511232 1417807871 29296640 14G Linux filesystem
/dev/sda10 1417807872 1869260799 451452928 215.3G Linux filesystem

Partition table entries are not in disk order.









share|improve this question























  • Yes you can resize your partitions without re-install. Please copy/paste text into your question (a pic of text is much harder to read). If you tried doing it whilst "/" was mounted it'd not let you (you need to umount first), so just use your Ubuntu install media, run gparted from there and re-size will work. If you use grub on that system you'll likely need to re-install grub's mbr (so it points to the new location of /boot; but that's pretty easy)
    – guiverc
    Mar 5 at 22:52










  • "so just use your Ubuntu install media, run gparted from there" What does this mean? Sorry, I'm very new to Ubuntu and I don't understand what this means.
    – awoh
    Mar 5 at 23:08











  • I meant grab your install media & install it; reboot to run it & select "try ubuntu" so your (hdd/sdd / partition isn't in use). when its running, run gparted from within the 'live' ubuntu (ie. try-ubuntu from install media). it'll then treat your "/" partition as any other and let you resize it. I'd then reboot & see if it runs (if you use grub, it may fail getting to step 1.5; ie. you'll find yourself in grub.rescue; in which case you can enter commands to boot your system & fix it, or return to install media & fix from there...
    – guiverc
    Mar 5 at 23:17










  • if grub needs fixing (note I'd ignore this until you need it as it may not be an issue) you can look at askubuntu.com/questions/831216/reinstalling-grub2-efi-partition
    – guiverc
    Mar 5 at 23:19












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I have Ubunutu installed on my computer as a dual boot option. I made my root partition too small, and I was wondering if I can make it bigger without reinstalling Ubunutu. Is there any way to do this?



Below is the layout of my partitions. Ideally, I would reduce the size of the home partition, and increase the size of the root partition.



fdisk results



gparted results



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 83F136D6-6E47-42AF-B60F-104693424105

Device Start End Sectors Size Type
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M Lenovo boot partition
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 1357260799 1352368128 644.9G Microsoft basic data
/dev/sda6 1869260800 1921689599 52428800 25G Microsoft basic data
/dev/sda7 1921689600 1953523711 31834112 15.2G Windows recovery environment
/dev/sda8 1357260800 1388511231 31250432 14.9G Linux swap
/dev/sda9 1388511232 1417807871 29296640 14G Linux filesystem
/dev/sda10 1417807872 1869260799 451452928 215.3G Linux filesystem

Partition table entries are not in disk order.









share|improve this question















I have Ubunutu installed on my computer as a dual boot option. I made my root partition too small, and I was wondering if I can make it bigger without reinstalling Ubunutu. Is there any way to do this?



Below is the layout of my partitions. Ideally, I would reduce the size of the home partition, and increase the size of the root partition.



fdisk results



gparted results



Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 83F136D6-6E47-42AF-B60F-104693424105

Device Start End Sectors Size Type
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M Lenovo boot partition
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 1357260799 1352368128 644.9G Microsoft basic data
/dev/sda6 1869260800 1921689599 52428800 25G Microsoft basic data
/dev/sda7 1921689600 1953523711 31834112 15.2G Windows recovery environment
/dev/sda8 1357260800 1388511231 31250432 14.9G Linux swap
/dev/sda9 1388511232 1417807871 29296640 14G Linux filesystem
/dev/sda10 1417807872 1869260799 451452928 215.3G Linux filesystem

Partition table entries are not in disk order.






boot dual-boot partitioning gparted






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 6 at 5:35









Helio

1667




1667










asked Mar 5 at 22:47









awoh

112




112











  • Yes you can resize your partitions without re-install. Please copy/paste text into your question (a pic of text is much harder to read). If you tried doing it whilst "/" was mounted it'd not let you (you need to umount first), so just use your Ubuntu install media, run gparted from there and re-size will work. If you use grub on that system you'll likely need to re-install grub's mbr (so it points to the new location of /boot; but that's pretty easy)
    – guiverc
    Mar 5 at 22:52










  • "so just use your Ubuntu install media, run gparted from there" What does this mean? Sorry, I'm very new to Ubuntu and I don't understand what this means.
    – awoh
    Mar 5 at 23:08











  • I meant grab your install media & install it; reboot to run it & select "try ubuntu" so your (hdd/sdd / partition isn't in use). when its running, run gparted from within the 'live' ubuntu (ie. try-ubuntu from install media). it'll then treat your "/" partition as any other and let you resize it. I'd then reboot & see if it runs (if you use grub, it may fail getting to step 1.5; ie. you'll find yourself in grub.rescue; in which case you can enter commands to boot your system & fix it, or return to install media & fix from there...
    – guiverc
    Mar 5 at 23:17










  • if grub needs fixing (note I'd ignore this until you need it as it may not be an issue) you can look at askubuntu.com/questions/831216/reinstalling-grub2-efi-partition
    – guiverc
    Mar 5 at 23:19
















  • Yes you can resize your partitions without re-install. Please copy/paste text into your question (a pic of text is much harder to read). If you tried doing it whilst "/" was mounted it'd not let you (you need to umount first), so just use your Ubuntu install media, run gparted from there and re-size will work. If you use grub on that system you'll likely need to re-install grub's mbr (so it points to the new location of /boot; but that's pretty easy)
    – guiverc
    Mar 5 at 22:52










  • "so just use your Ubuntu install media, run gparted from there" What does this mean? Sorry, I'm very new to Ubuntu and I don't understand what this means.
    – awoh
    Mar 5 at 23:08











  • I meant grab your install media & install it; reboot to run it & select "try ubuntu" so your (hdd/sdd / partition isn't in use). when its running, run gparted from within the 'live' ubuntu (ie. try-ubuntu from install media). it'll then treat your "/" partition as any other and let you resize it. I'd then reboot & see if it runs (if you use grub, it may fail getting to step 1.5; ie. you'll find yourself in grub.rescue; in which case you can enter commands to boot your system & fix it, or return to install media & fix from there...
    – guiverc
    Mar 5 at 23:17










  • if grub needs fixing (note I'd ignore this until you need it as it may not be an issue) you can look at askubuntu.com/questions/831216/reinstalling-grub2-efi-partition
    – guiverc
    Mar 5 at 23:19















Yes you can resize your partitions without re-install. Please copy/paste text into your question (a pic of text is much harder to read). If you tried doing it whilst "/" was mounted it'd not let you (you need to umount first), so just use your Ubuntu install media, run gparted from there and re-size will work. If you use grub on that system you'll likely need to re-install grub's mbr (so it points to the new location of /boot; but that's pretty easy)
– guiverc
Mar 5 at 22:52




Yes you can resize your partitions without re-install. Please copy/paste text into your question (a pic of text is much harder to read). If you tried doing it whilst "/" was mounted it'd not let you (you need to umount first), so just use your Ubuntu install media, run gparted from there and re-size will work. If you use grub on that system you'll likely need to re-install grub's mbr (so it points to the new location of /boot; but that's pretty easy)
– guiverc
Mar 5 at 22:52












"so just use your Ubuntu install media, run gparted from there" What does this mean? Sorry, I'm very new to Ubuntu and I don't understand what this means.
– awoh
Mar 5 at 23:08





"so just use your Ubuntu install media, run gparted from there" What does this mean? Sorry, I'm very new to Ubuntu and I don't understand what this means.
– awoh
Mar 5 at 23:08













I meant grab your install media & install it; reboot to run it & select "try ubuntu" so your (hdd/sdd / partition isn't in use). when its running, run gparted from within the 'live' ubuntu (ie. try-ubuntu from install media). it'll then treat your "/" partition as any other and let you resize it. I'd then reboot & see if it runs (if you use grub, it may fail getting to step 1.5; ie. you'll find yourself in grub.rescue; in which case you can enter commands to boot your system & fix it, or return to install media & fix from there...
– guiverc
Mar 5 at 23:17




I meant grab your install media & install it; reboot to run it & select "try ubuntu" so your (hdd/sdd / partition isn't in use). when its running, run gparted from within the 'live' ubuntu (ie. try-ubuntu from install media). it'll then treat your "/" partition as any other and let you resize it. I'd then reboot & see if it runs (if you use grub, it may fail getting to step 1.5; ie. you'll find yourself in grub.rescue; in which case you can enter commands to boot your system & fix it, or return to install media & fix from there...
– guiverc
Mar 5 at 23:17












if grub needs fixing (note I'd ignore this until you need it as it may not be an issue) you can look at askubuntu.com/questions/831216/reinstalling-grub2-efi-partition
– guiverc
Mar 5 at 23:19




if grub needs fixing (note I'd ignore this until you need it as it may not be an issue) you can look at askubuntu.com/questions/831216/reinstalling-grub2-efi-partition
– guiverc
Mar 5 at 23:19










2 Answers
2






active

oldest

votes

















up vote
1
down vote













If you have a Ubuntu LiveUSB you can use gparted for this.



Step one is to log in to the existing Ubuntu partition and use something like unetbootin to create your USB install.



Once that is done, reboot the system into the LiveUSB version. From there you can use gparted.



(EDIT: I completely forgot that you can’t affect the system you have mounted and are logged into. You need to switch out of that first; hence the LiveUSB.).



You will find gparted under the system tools or by clicking on the icon at the top. You can also start it by typing “sudo gparted” in the terminal (ctrl-alt-t).
Type in your password when it asks (you won’t see anything happen when you type) and hit enter.



But back up your info just in case BEFORE YOU BEGIN.



Because you are dual-booting, make sure you are working on the correct partition. You don’t want to crash the working one.






share|improve this answer


















  • 1




    Smart. I will fix that now. I spaced it for sure.
    – Sage
    Mar 6 at 2:02

















up vote
0
down vote













Needles to say backup all your data before you attempt any changes to partitions.
The following changes can be performed from within your OS environment and do not require a reboot.



sudo fdisk /dev/sda


  • Hit m for help and list your options.

  • Hit F to list unpartitioned space.

Assuming you do have unpartitioned space:



  • Hit n to add a new partition

  • Hit enter if you want to go with default, select p or l otherwise

  • Hit enter on the "First sector" option (let the system select what's best)

  • On "Last sector" indicate the size of the partition, for example: +10G (for a 10 GB partition) or +800M (800 MB), or whatever size you so desire, options are K,M,G,T,P. Make sure to add the "+" sign

After the last instruction, fdisk will create the partition as 83 type "Linux" by default, if you need to change this hit "t" to change this, if not, go to next step.



  • Hit p and review the partition table, if you are happy with the new partitions;


  • Hit w to write the changes or q to quit whitout modifying the partition table, all your data is safe if you use q.


All of this changes are possible using parted or gparted, however parted writes changes to disk on the fly, so it's very dangerous if you do not know exactly what you are doing, I recommend against it.



If you do not have unpartitioned space, you would have to delete a partition first. "I leave the tough choices to you of course"



Once the partition is created, you'll need to format and mount it, let's say your new partition is /dev/sda11:



sudo mkfs -t ext4 /dev/sda11


Then mount the partition on your directory of choice:



sudo mount /dev/sda11 /mountpoint_of_choice


Use your new mounted space to your heart's content.






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1012213%2fis-it-possible-to-resize-my-root-partition-without-reinstalling-ubunutu-dual-bo%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    If you have a Ubuntu LiveUSB you can use gparted for this.



    Step one is to log in to the existing Ubuntu partition and use something like unetbootin to create your USB install.



    Once that is done, reboot the system into the LiveUSB version. From there you can use gparted.



    (EDIT: I completely forgot that you can’t affect the system you have mounted and are logged into. You need to switch out of that first; hence the LiveUSB.).



    You will find gparted under the system tools or by clicking on the icon at the top. You can also start it by typing “sudo gparted” in the terminal (ctrl-alt-t).
    Type in your password when it asks (you won’t see anything happen when you type) and hit enter.



    But back up your info just in case BEFORE YOU BEGIN.



    Because you are dual-booting, make sure you are working on the correct partition. You don’t want to crash the working one.






    share|improve this answer


















    • 1




      Smart. I will fix that now. I spaced it for sure.
      – Sage
      Mar 6 at 2:02














    up vote
    1
    down vote













    If you have a Ubuntu LiveUSB you can use gparted for this.



    Step one is to log in to the existing Ubuntu partition and use something like unetbootin to create your USB install.



    Once that is done, reboot the system into the LiveUSB version. From there you can use gparted.



    (EDIT: I completely forgot that you can’t affect the system you have mounted and are logged into. You need to switch out of that first; hence the LiveUSB.).



    You will find gparted under the system tools or by clicking on the icon at the top. You can also start it by typing “sudo gparted” in the terminal (ctrl-alt-t).
    Type in your password when it asks (you won’t see anything happen when you type) and hit enter.



    But back up your info just in case BEFORE YOU BEGIN.



    Because you are dual-booting, make sure you are working on the correct partition. You don’t want to crash the working one.






    share|improve this answer


















    • 1




      Smart. I will fix that now. I spaced it for sure.
      – Sage
      Mar 6 at 2:02












    up vote
    1
    down vote










    up vote
    1
    down vote









    If you have a Ubuntu LiveUSB you can use gparted for this.



    Step one is to log in to the existing Ubuntu partition and use something like unetbootin to create your USB install.



    Once that is done, reboot the system into the LiveUSB version. From there you can use gparted.



    (EDIT: I completely forgot that you can’t affect the system you have mounted and are logged into. You need to switch out of that first; hence the LiveUSB.).



    You will find gparted under the system tools or by clicking on the icon at the top. You can also start it by typing “sudo gparted” in the terminal (ctrl-alt-t).
    Type in your password when it asks (you won’t see anything happen when you type) and hit enter.



    But back up your info just in case BEFORE YOU BEGIN.



    Because you are dual-booting, make sure you are working on the correct partition. You don’t want to crash the working one.






    share|improve this answer














    If you have a Ubuntu LiveUSB you can use gparted for this.



    Step one is to log in to the existing Ubuntu partition and use something like unetbootin to create your USB install.



    Once that is done, reboot the system into the LiveUSB version. From there you can use gparted.



    (EDIT: I completely forgot that you can’t affect the system you have mounted and are logged into. You need to switch out of that first; hence the LiveUSB.).



    You will find gparted under the system tools or by clicking on the icon at the top. You can also start it by typing “sudo gparted” in the terminal (ctrl-alt-t).
    Type in your password when it asks (you won’t see anything happen when you type) and hit enter.



    But back up your info just in case BEFORE YOU BEGIN.



    Because you are dual-booting, make sure you are working on the correct partition. You don’t want to crash the working one.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 6 at 2:07

























    answered Mar 5 at 22:52









    Sage

    465




    465







    • 1




      Smart. I will fix that now. I spaced it for sure.
      – Sage
      Mar 6 at 2:02












    • 1




      Smart. I will fix that now. I spaced it for sure.
      – Sage
      Mar 6 at 2:02







    1




    1




    Smart. I will fix that now. I spaced it for sure.
    – Sage
    Mar 6 at 2:02




    Smart. I will fix that now. I spaced it for sure.
    – Sage
    Mar 6 at 2:02












    up vote
    0
    down vote













    Needles to say backup all your data before you attempt any changes to partitions.
    The following changes can be performed from within your OS environment and do not require a reboot.



    sudo fdisk /dev/sda


    • Hit m for help and list your options.

    • Hit F to list unpartitioned space.

    Assuming you do have unpartitioned space:



    • Hit n to add a new partition

    • Hit enter if you want to go with default, select p or l otherwise

    • Hit enter on the "First sector" option (let the system select what's best)

    • On "Last sector" indicate the size of the partition, for example: +10G (for a 10 GB partition) or +800M (800 MB), or whatever size you so desire, options are K,M,G,T,P. Make sure to add the "+" sign

    After the last instruction, fdisk will create the partition as 83 type "Linux" by default, if you need to change this hit "t" to change this, if not, go to next step.



    • Hit p and review the partition table, if you are happy with the new partitions;


    • Hit w to write the changes or q to quit whitout modifying the partition table, all your data is safe if you use q.


    All of this changes are possible using parted or gparted, however parted writes changes to disk on the fly, so it's very dangerous if you do not know exactly what you are doing, I recommend against it.



    If you do not have unpartitioned space, you would have to delete a partition first. "I leave the tough choices to you of course"



    Once the partition is created, you'll need to format and mount it, let's say your new partition is /dev/sda11:



    sudo mkfs -t ext4 /dev/sda11


    Then mount the partition on your directory of choice:



    sudo mount /dev/sda11 /mountpoint_of_choice


    Use your new mounted space to your heart's content.






    share|improve this answer


























      up vote
      0
      down vote













      Needles to say backup all your data before you attempt any changes to partitions.
      The following changes can be performed from within your OS environment and do not require a reboot.



      sudo fdisk /dev/sda


      • Hit m for help and list your options.

      • Hit F to list unpartitioned space.

      Assuming you do have unpartitioned space:



      • Hit n to add a new partition

      • Hit enter if you want to go with default, select p or l otherwise

      • Hit enter on the "First sector" option (let the system select what's best)

      • On "Last sector" indicate the size of the partition, for example: +10G (for a 10 GB partition) or +800M (800 MB), or whatever size you so desire, options are K,M,G,T,P. Make sure to add the "+" sign

      After the last instruction, fdisk will create the partition as 83 type "Linux" by default, if you need to change this hit "t" to change this, if not, go to next step.



      • Hit p and review the partition table, if you are happy with the new partitions;


      • Hit w to write the changes or q to quit whitout modifying the partition table, all your data is safe if you use q.


      All of this changes are possible using parted or gparted, however parted writes changes to disk on the fly, so it's very dangerous if you do not know exactly what you are doing, I recommend against it.



      If you do not have unpartitioned space, you would have to delete a partition first. "I leave the tough choices to you of course"



      Once the partition is created, you'll need to format and mount it, let's say your new partition is /dev/sda11:



      sudo mkfs -t ext4 /dev/sda11


      Then mount the partition on your directory of choice:



      sudo mount /dev/sda11 /mountpoint_of_choice


      Use your new mounted space to your heart's content.






      share|improve this answer
























        up vote
        0
        down vote










        up vote
        0
        down vote









        Needles to say backup all your data before you attempt any changes to partitions.
        The following changes can be performed from within your OS environment and do not require a reboot.



        sudo fdisk /dev/sda


        • Hit m for help and list your options.

        • Hit F to list unpartitioned space.

        Assuming you do have unpartitioned space:



        • Hit n to add a new partition

        • Hit enter if you want to go with default, select p or l otherwise

        • Hit enter on the "First sector" option (let the system select what's best)

        • On "Last sector" indicate the size of the partition, for example: +10G (for a 10 GB partition) or +800M (800 MB), or whatever size you so desire, options are K,M,G,T,P. Make sure to add the "+" sign

        After the last instruction, fdisk will create the partition as 83 type "Linux" by default, if you need to change this hit "t" to change this, if not, go to next step.



        • Hit p and review the partition table, if you are happy with the new partitions;


        • Hit w to write the changes or q to quit whitout modifying the partition table, all your data is safe if you use q.


        All of this changes are possible using parted or gparted, however parted writes changes to disk on the fly, so it's very dangerous if you do not know exactly what you are doing, I recommend against it.



        If you do not have unpartitioned space, you would have to delete a partition first. "I leave the tough choices to you of course"



        Once the partition is created, you'll need to format and mount it, let's say your new partition is /dev/sda11:



        sudo mkfs -t ext4 /dev/sda11


        Then mount the partition on your directory of choice:



        sudo mount /dev/sda11 /mountpoint_of_choice


        Use your new mounted space to your heart's content.






        share|improve this answer














        Needles to say backup all your data before you attempt any changes to partitions.
        The following changes can be performed from within your OS environment and do not require a reboot.



        sudo fdisk /dev/sda


        • Hit m for help and list your options.

        • Hit F to list unpartitioned space.

        Assuming you do have unpartitioned space:



        • Hit n to add a new partition

        • Hit enter if you want to go with default, select p or l otherwise

        • Hit enter on the "First sector" option (let the system select what's best)

        • On "Last sector" indicate the size of the partition, for example: +10G (for a 10 GB partition) or +800M (800 MB), or whatever size you so desire, options are K,M,G,T,P. Make sure to add the "+" sign

        After the last instruction, fdisk will create the partition as 83 type "Linux" by default, if you need to change this hit "t" to change this, if not, go to next step.



        • Hit p and review the partition table, if you are happy with the new partitions;


        • Hit w to write the changes or q to quit whitout modifying the partition table, all your data is safe if you use q.


        All of this changes are possible using parted or gparted, however parted writes changes to disk on the fly, so it's very dangerous if you do not know exactly what you are doing, I recommend against it.



        If you do not have unpartitioned space, you would have to delete a partition first. "I leave the tough choices to you of course"



        Once the partition is created, you'll need to format and mount it, let's say your new partition is /dev/sda11:



        sudo mkfs -t ext4 /dev/sda11


        Then mount the partition on your directory of choice:



        sudo mount /dev/sda11 /mountpoint_of_choice


        Use your new mounted space to your heart's content.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 6 at 5:46









        muru

        130k19274467




        130k19274467










        answered Mar 6 at 3:48









        Helio

        1667




        1667



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1012213%2fis-it-possible-to-resize-my-root-partition-without-reinstalling-ubunutu-dual-bo%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491