Actually you can resize the disk while active in arch linux. might work for ubuntu, raspbian, debian and other linux based ones
Delete the second partition
Create a new primary partition and use default sizes prompted. This will then create a partiton that fills the disk
Save and exit fdisk:
Now reboot. Once rebooted:
Your main / partition should be the full size of the disk now.
another method with parted