Default Gallery - no external storage available

So yesterday i flashed Resurrection remix v5.0.6. earlier i was on neatrom , recovery philz 5 and kernal was Siyah. I also updated flashed philz 6 recovery yesterday. Note: i did a re partitioned when i flashed neatrom, that was a year back which i think is creating a problem.

The problem is that Camera is showing unfortunately, Camera has stopped. Gallery is showing No external storage available. Whatsapp is also not downloading any media. I suppose all these app are unable to access Sd card. or they are trying to access sd-ext which is showing 0b/0b in partition info.

i tried factory reset, formatting sd card, wipe dalvik cache. Nothing works. What should i do?