Android - SD card not detected after re-partitioning it, FAT32 + EXT4
If your phone is rooted and got ClockworkMod installed, then try formatting and creating an EXT partition in ClockworkMod. Its the most simplest and easiest way to do it. It will automatically take care of your Fat partition too.
For more info, read this article