There are 4 32GB cards and 2 64GB Cards listed as Approved on page 207 of the D5100 Users Manual. Therefore the capacity of the card is not the problem. Did you format the card in the camera? If so, I would suspect the card is defective or corrupted. Is it a ProSpec card purchased at Calumet? Good Luck and Enjoy your Nikons!