My SD card is missing 2 GB of space
Try to format the card in a device other than a computer or Android device. As example a camera that supports the card. This must solve partition / space allocation problems.