SDFat not working

I have converted a project (see Data Logger - Other Hardware Development - Arduino Forum from using SD to SDFat, the reason for doing this is that SD does not appear to sleep the SD Card properly and I am lead to believe that SDFat does.

I have run the QuickStart sketch that comes with SDFat and it works fine but if I run the ReadWriteSdFat sketch, also an SDFat library example I get the error "SD errorCode: 0XA,0X1".

So Sd2Card.init appears to work but SdFat.begin doesn't, anyone got any ideas???

OK, so I decided to reformat the Sd Card and it seems to have fixed the problem with writing.

However the SD does not sleep when the processor sleeps, it's pulling 20mA. Any ideas???

Use a P-channel MOSFET to control the power to the SD card? You can't get much better than that for power saving. Just be sure to re-initialize the card after you apply power to it again...

Yes, I was thinking of just switching it off with a FET, seems like a bit of a kludge though when the card is supposed to sleep.