Micro SD card not initializing

teh1994:
What does that mean?

If you have not done so already, download and keep a pinout diagram for the UNO and Mega.

Then compare the UNO and Mega pinouts and see where the SPI pins, SCK, MOSI and MISO are.