Score:2

Add free space available on disk to partition

id flag

I'm trying to add free 8gb available that I left when I was installing Ubuntu. I downloaded GParted iso and used Unetbootin to create USB. When I boot from USB, I can't resize dev/sda5 to add free 8gb available, it's colored gray and I can't move it to the right, to add more space. How do I do that, what am I missing?

UPD: I screened it from my Ubuntu because I can't screen it from the USB, but I'm booting from USB, when I'm trying to resize. enter image description here

UPD: Addition to PonJar's answer. I found similar answer, in short: it's the same what he said, but it leaves unnecessary 1 mb free space between partitions, in order to get rid of them you need to apply every change, as I understood, before doing the next, but it also somehow will take 1mb from your previous partition, it wasn't critical (I think so, hopefully) when moving from dev/sda6 to dev/sda5 since I have a lot of unused space in dev/sda6, but it might be critical when I was moving from dev/sda7 to dev/sda6, since it's only 95 mb, I avoided that by leaving 1 mb when moving free space and it didn't change from 95 to 94 as it was before. Read the PonJar's comments about it.

Liso avatar
sd flag
It's mounted, you need to do it via live usb.
Arzybek avatar
id flag
@Liso, I did it from USB, read the post, I can't screenshot from USB, that's why I screened it from my Ubuntu
Liso avatar
sd flag
Then what prevent you from unmount it ? From the image I see that `/dev/sda4` is swap partition.
Arzybek avatar
id flag
@Liso, I edited the post, I wanted to add the size to dev/sda5, not sda4, and as I said this screen is from Ubuntu gparted, not from the USB Gparted
PonJar avatar
in flag
GParted will ensure that your partitions are correctly aligned. That can mean that sometimes you get the 1MB gaps that you report. If it didn’t do this you would get performance issues
Arzybek avatar
id flag
@PonJar, is it bad that I got rid of them then, as I described in the post?
ChanganAuto avatar
us flag
*is it bad that I got rid of them* Time and usage will tell. They're there for a reason. It isn't a bug or quirk.
Arzybek avatar
id flag
@ChanganAuto, any ways I can fix this now? Should I worry about it?
PonJar avatar
in flag
You can check your partition alignment with the parted tool. Type “sudo parted /dev/sda” in a terminal. Then at the parted prompt type “print”. That will give you a list of your partitions and a number to use for each. Then type “align-check optimal”. You will then be prompted for a partition number. Enter that and it will tell you if that partition is aligned. Type q to exit parted
Arzybek avatar
id flag
@PonJar, thanks, if they're all aligned, it's good, right?
PonJar avatar
in flag
Yes, aligned is good. If they are not aligned it’s not the end of the world, it will work. Only consider doing something about it if the performance seems slow. Any improvement that is possible may not be noticeable
Score:4
in flag

You have to move the space first so that it’s next to sda5. To do that move sda7 fully to the right into the unallocated space. The space will then be between sda7 and sda 6. Then move sda6 in the same way. Then you can expand sda5.

Arzybek avatar
id flag
In short terms, that's correct answer, but I added some details to this answer in the post.
Score:-1
kg flag

Yes, you can't add your free 8gb to dev/sda5, because both are not neighbour drives. You can join them if they are neighbour drives. Just create a new partition for free 8gb and link it to dev/sda5.

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.