I want to expand my fedora partition (nvme0n1p5) by moving the unallocated space at the top of the image.
From what I understand I would have to move the unallocated space in between the fedora and linuxswap partitions, then expand the fedora partition into the unallocated space, but I haven’t found a way that works.
If there’s other information that would be helpful to include please ask.
Thanks, Ash
With btrfs, a filesystem can span multiple partitions.
So an alternative approach would be to leave /dev/nvme0n1p5 where it is, create a new partition in your free space, and use btrfs device add to add that new partition to the filesystem.
Simplest would be to use gparted and move nvme0n1p4 (/boot) to before the unallocated space, leaving the unallocated space just before p5, your btrfs partition.
Now would also be an ideal time to expand the /boot partition since fedora is very quickly expanding the default /boot to 2 GB. Issues with the initramfs image size that began with recent kernels have caused several to have space issues with a 1GB /boot partition.
Then it would be very easy to expand the btrfs file system either into the unallocated space or as noted above create another partition in that remaining space and expand btrfs across that partition as well