How to merge unallocated partition with primary linux partition - eviltoast

I recently removed windows 10 from my pc, how can i merge the unallocated space with /dev/nvme0n1p5? There’s the boot partition between so i can’t just adjust one of them and merge with the other using the resize/move button. How can i do it?

  • Floey@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    If you’re worried about messing anything up the safest option is to simply format the unused space and set it’s mount point to some directory of your choosing.

    Another option I think would be to clone your boot partition to the beginning of the unallocated space, clone your root partition to the unallocated space after that, delete the old partitions, grow your root partition, and then reinstall and reconfigure your boot loader. All this should be done from a portable Linux install.