Score:0

Need to resize partition by adding unallocated space from extended file system

cn flag

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

cc flag
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)?
apkg avatar
cn flag
Sorry I was meant to add a photo to the post, 1 sec
apkg avatar
cn flag
Will also add the output you request.
apkg avatar
cn flag
Am using gparted
Score:4
cc flag

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

apkg avatar
cn flag
Ok I see, you can resize the "extended" block by adding free space at the beginning, then it can be reassigned. Thank you
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.