I think, fdisk command will help you
Why can the built-in disks be expanded directly? Can we use command mode to operate the software
Using fdisk to generate nvme0n1p2, but how to merge with nvme0n1p1
In my setup, used SD card in eMMC integrated module.
I tried with resize2fs command, unfortunately I could not resize the current partition (SD card) when it’s online
When I booted on eMMC, I can resize the SD card partition