MicroSD not able to initialize often

SurferTim, thx

added the lines like example below and it works like a charm.
I had the initialisation issue almost every boot but now only one time before it continues.
after i moved it before the while it's completly gone.

pinMode(10,OUTPUT);
while (!SD.begin(chipSelect)) {
digitalWrite(10, HIGH);
Serial.println("Card failed, or not present");}