SD card reading only possible once

Hey all,
I have some troubles using a SD card on my Arduino UNO. I can only read the Card the first time after pulling it into the SD card holer. Even witout touching anything the same programm is not able to connect to the card a second time. I tried with 3 differend SD cards, 2 separate SD card holder and 2 Example files(eadWrite.ino and CardInfo.ino). The Problem stays always the same: First time the Arduino finds the SD card (and e.g displays containing files on the SD Card for the CardInfo.ino explae file), afterwards it doesn´t.
Does anyone experience that before and knows how I could solve it?
Thanks in advance
M

I use:

Does anyone have suggestions?

Start by reading Read this before posting a programming question and follow the instructions

The OP reported my reply as "not helpful"

Sorry, but without any code to go on or details of the schematic of the project it is impossible to give any help

SparkFun microSD Transflash Breakout to Arduino UNO
CD -> x
DO -> 12
GND -> GND
SCK -> 13
VCC -> 3.3 V
DI -> 11
CS -> 8

Code (CardInfo.ino from Exaple files) (but same problem with ReadWrite.ino from Exaple files):

/ include the SD library:
#include <SPI.h>
#include <SD.h>

// set up variables using the SD utility library functions:
Sd2Card card;
SdVolume volume;
SdFile root;

// The Sparkfun microSD shield uses pin 8 for CS
const int chipSelect = 8;

void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}

Serial.print("\nInitializing SD card...");

// Note that even if it's not used as the CS pin, the hardware SS pin
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
// or the SD library functions will not work.

pinMode(10, OUTPUT);

// we'll use the initialization code from the utility libraries
// since we're just testing if the card is working!
if (!card.init(SPI_HALF_SPEED, chipSelect)) {
Serial.println("initialization failed. Things to check:");
Serial.println("* is a card is inserted?");
Serial.println("* Is your wiring correct?");
Serial.println("* did you change the chipSelect pin to match your shield or module?");
return;
} else {
Serial.println("Wiring is correct and a card is present.");
}

// print the type of card
Serial.print("\nCard type: ");
switch (card.type()) {
case SD_CARD_TYPE_SD1:
Serial.println("SD1");
break;
case SD_CARD_TYPE_SD2:
Serial.println("SD2");
break;
case SD_CARD_TYPE_SDHC:
Serial.println("SDHC");
break;
default:
Serial.println("Unknown");
}

// Now we will try to open the 'volume'/'partition' - it should be FAT16 or FAT32
if (!volume.init(card)) {
Serial.println("Could not find FAT16/FAT32 partition.\nMake sure you've formatted the card");
return;
}

// print the type and size of the first FAT-type volume
uint32_t volumesize;
Serial.print("\nVolume type is FAT");
Serial.println(volume.fatType(), DEC);
Serial.println();

volumesize = volume.blocksPerCluster(); // clusters are collections of blocks
volumesize *= volume.clusterCount(); // we'll have a lot of clusters
volumesize *= 512; // SD card blocks are always 512 bytes
Serial.print("Volume size (bytes): ");
Serial.println(volumesize);
Serial.print("Volume size (Kbytes): ");
volumesize /= 1024;
Serial.println(volumesize);
Serial.print("Volume size (Mbytes): ");
volumesize /= 1024;
Serial.println(volumesize);

Serial.println("\nFiles found on the card (name, date and size in bytes): ");
root.openRoot(volume);

// list all files in the card with date and size
root.ls(LS_R | LS_DATE | LS_SIZE);
}

void loop(void) {

}

Are the SD cards still usable in a computer? That SD card adapter does not appear to have the proper voltage level shifters for use with a 5 volt arduino board.

Arduino UNO signals are 5v but the SD card works at 3.3v. I suspect you have damaged your SD card by using that particular adapter.

Code (CardInfo.ino from Exaple files) (but same problem with ReadWrite.ino from Exaple files):

I see that you decided to ignore the advice regarding posting code properly

markd833:
Arduino UNO signals are 5v but the SD card works at 3.3v. I suspect you have damaged your SD card by using that particular adapter.

Err... I have the same problem with the topic starter.
But my SD card saved, it still could be opened, read and formatted.
And with the help of Serial.print(), now I may find the problem:

File.close().

If I closed the file, it will not be read again.
But if I restart the serial, it could be read, and be closed, and be unavailable again and again.
The test.txt file still exists, but it is empty, no data was sent in it.
So that's where I reached.

Well, your program only tries to do anything once. THere's nothing in loop()

-jim lee