0

I have the following set up, and need to simply increase the size of sda1. There is 81Gb of unallocated space, and the parts are adjacent. But, I cannot increases sda1, the option is greyed out.enter image description here

Is it possible to add this unallocated space to sda1? Or do I need to format?

I am booting via a live usb.

enter image description here

4
  • 1
    We need a little more detail to see why there is a problem with what should be a trivial operation. run df | grep -v loop in a terminal and past the result in your original question. What tool are you using to try and alter the partition? Is the partitioning gpt or MSDOS (in which case there might be an extended partition to alter too)?
    – ubfan1
    Nov 9 '21 at 17:55
  • Sorry I was meant to add a photo to the post, 1 sec
    – apkg
    Nov 9 '21 at 18:07
  • Will also add the output you request.
    – apkg
    Nov 9 '21 at 18:14
  • Am using gparted
    – apkg
    Nov 9 '21 at 18:15
4

Looks like you have an MSDOS partitioned disk and your unallocated space is inside your extended partition, so that's why you cannot just expand your sda1 into that space.

First backup any important files, changing partitions can go badly wrong with just a typo.

Next, shrink the extended partition from the left, so it does not include the unallocated space. A GUI partition tool may be easy, but using a text based tool allows you to select the sector start for the shrunken extended partition -- your choice, no matter if you don't free every last sector.

Finally, the sda1 partition now is next to unallocated space that is not within the extended partition, so may be expanded by dragging the right end to the new start of the extended partition.

Some partitioning tools will expand the enclosed filesystem when you expand on the right, some don't. Check that your filesystem size is larger, like you expected, otherwise, you will have to manually run the /sbin/resize2fs

1
  • Ok I see, you can resize the "extended" block by adding free space at the beginning, then it can be reassigned. Thank you
    – apkg
    Nov 9 '21 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.