The layout of my disk currently is [swap, /, /boot/efi, home].
I want to move /boot/efi to the left, delete the swap as I don't think I need it and give some space from home to /. What steps would I take to do this?
I created a live usb and used gparted but it said that if I move the partition containing boot then the system will no longer be bootable and I have made that mistake in the past.
It's a work laptop so it will have a lot of configuration and keys saved all over / so I don't want to start again with a fresh install, also my internet is painfully slow and would take about a day to get running again.
I couldn't find any definitive way to do it online, I've read about changing the UUID in fstab after moving the partition and reinstalling grub 2 but there was never an example specific to my case. I also don't have a hard disk large enough to do a full system backup, but if I deleted home partition that would cover /.
sudo fdisk -lu
– oldfred Aug 31 '22 at 13:48