How do I resize my partitions?

I was trying to do a huge update and I can’t do it all at once because I’m 6gb short, how do I take a bit from my secondary partition’s size (which I never use fully) and give it to the main partition where all the updates get done. Is gparted useful here?

Generally yes, but you have to be careful what type of partition you resize, and if you make it smaller or larger.
The partitions should not be mounted while resizing, so do it in live iso. The next thing to know is if you are moving the beginning or the end of a partition. The beginning is critical. UUID can change too, then you have to edit fstab and probably grub.

I recommend reading some more and making a backup.
I actually just yesterday resized my root to make it bigger, but i had it easy - i had unpartitioned space after the end of the partition…if you move the beginning it is another story.

There is always a tiny risk involved in moving partitions so if you can make a backup (not Timeshift), do that first.
Do not put the backup on the drive containing the partitions you are trying to move.

I have done it multiple times without problems, but there IS always a risk.
Do it in a live environment, the partitions needs to be unmounted.

1 Like

But I think I’m not interested in the beginnings, can’t I do it all at the ends?

you have to move the beginning of the at least ONE partition for this. (if they are next to eachother)

And I haven’t heard of gparted changing the uuid if you move the beginning in a long time.
I also got warned about this a while ago and did some research and could only find VERY old reports of that actually happening, but there are plenty of posts WARNING about it.
So I guess it’s good to know about and keep in mind ofc.

How do I backup my system?

Use clonezilla or rescuezilla.

Check tutorials first.


Have you first looked at pacman cache ? It may be quite big ! Try :
du -BM /var/cache/pacman/pkg/
You can partially empty it with
sudo pacman -Sc
or totally with :
sudo pacman -Scc

1 Like

Thanks, but I’m still 6gb short

Another thing that can free a lot of space is the journal. By default is 4 GB.

journalctl --disk-usage
journalctl --vacuum-size=50M
1 Like

Ok great, I freed 3gb. Thanks but I’m still short.

If you like to live dangerously:

You could install packages in batches with pacman -S.
Beware, that between batches, you’ll be in a very unsupported partial upgrade state, so do not reboot.

However, the safer way might be to remove large unnecessary programs (libreoffice, texlive, etc.), then do the update, and reinstall the packages you want.

Or, a fancy new idea, depending how much memory you have, you could (temporarily) mount the download location as tmpfs, and do the update from there.

1 Like

Yeah, I was thinking that (deleting programs), since resizing is too complicated and risky as it seems. I will go on on my update now. I have enough space.

Make absolutely sure your mirrors are synced too. I’m still waiting to update for Manjaro to iron out all the kinks.
I’m constantly checking and they have been turning red over and over a few times since I started checking about 10 hours ago.

Just be careful. :hearts:


yes, I update with pacman -Syyu

Well, if you did that I REALLY hope your mirrors were synced.
Ie, if you by that comment meant you did an update or checked the state of your mirrors before and got a green light, then it’s most likely fine. :hearts:

i would clonezilla to backup as others told here,
then boot a live linux with gparted in it,
and resize the partition.