I’ve never done this, always just reinstalled to do something like this. But from my understanding you’d need to move your home partition (/dev/nvme0n1p4) to right without actually shrinking it and then make your root partition (/dev/nvme0n1p2) bigger to fill the space.
GParted — Partition editor for graphically managing your disk partitions. It can be used to resize, copy and move partitions without data loss. It uses parted as backend.
You probably already know this but just in case, use a live USB.
If you have another disk:
Backup / and home to the other disk
Check it copied ok
Delete swap and home
Extend /
Recreate swap and home
Copy data back to home
Check everything copied ok
Check /, or just copy everything back to make sure
If you don’t have another disk:
Create a temporary partition using the unallocated space
Copy data from home to new partition
Check it copied ok
Delete swap and home
Extend /
Recreate swap and home
Copy data back to home
Check everything copied ok
Delete temp partition. Or keep it if you want.
Extend home. This is optional as you should already have plenty of space for now.
You may (or may not) lose data if you follow step 10 without a backup. If root was damaged during the extend you may have to reinstall (unless you have a backup)
If 8 gig will do it, the easiest will be to delete and recreate the swap.
If not, either move home, or copy the whole root to the unallocated space. I have not done it, but as a minimum you will then have to adjust the uuid in grub and fstab.
@Keruskerfuerst@andreas85 How can I move home and swapto TOP?
I cannot see the option. And also I’m afraid to break my system and ask in a new topic how to fix it xD
In the bottom are the pending operations, I did the movements and looks good but I’m afraid hahaha. I attach the image and I will wait someone confirm it’s looks good
The worst that can happen is to break the 1.34TB home volume.
P.s. and disable sleeping after 15 minutes in the power settings because this can take some time.
Thank you all for reading and helping me.
I did the whole process and after 35 min, i’m writting from my manjaro now with 120GB on my root partition :).