You can go to recovery mode by turn off your device first then press and hold 3 button combo (home+power+vol.up button). When you already in recovery mode, find option which can format sdcard then select it.
You can used "minitool partition" pc software to be your sdcard as primary after detected by your phone.
Hopefully it can help you
Sent from my GT-S5570 using Tapatalk