Ok, I tried the suggested examples CardInfo and SdInfo and guess what, they both gave output on the SD cards. So I uploaded my webserver code and yes, that also "magically" worked again. I've tried to think about what I had done or changed but can't come up with anything.
However, I'm not sure about the history of these cards, I picked them up at the local phone repair shop and chances are they have been used pretty intensively in phones.
Today I put in a new unused card and I haven't had any problem since.
So my guess would be faulty unreliable SD cards?
The output from SdInfo:
On the 8GB card:
Code:
SdFat version: 2.1.0
Assuming an SDIO interface.
type any character to start
init time: 111 ms
Card type: SDHC
Manufacturer ID: 0X2
OEM ID: TM
Product: SA08G
Version: 6.1
Serial number: 0X1E260D48
Manufacturing date: 6/2013
cardSize: 7744.78 MB (MB = 1,000,000 bytes)
flashEraseSize: 128 blocks
eraseSingleBlock: true
OCR: 0XC0FF8000
SD Partition Table
part,boot,bgnCHS[3],type,endCHS[3],start,length
1,0X0,0X82,0X3,0X0,0XB,0X94,0XE7,0XAD,8192,15118336
2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
Scanning FAT, please wait.
Volume is FAT32
sectorsPerCluster: 64
clusterCount: 236096
freeClusterCount: 236079
fatStartSector: 12694
dataStartSector: 16384
type any character to start
On the 16 GB card:
Code:
SdFat version: 2.1.0
Assuming an SDIO interface.
type any character to start
init time: 8 ms
Card type: SDHC
Manufacturer ID: 0X1B
OEM ID: SM
Product: 00000
Version: 1.0
Serial number: 0X57FD9301
Manufacturing date: 10/2011
cardSize: 16007.56 MB (MB = 1,000,000 bytes)
flashEraseSize: 128 blocks
eraseSingleBlock: true
OCR: 0XC0FF8000
SD Partition Table
part,boot,bgnCHS[3],type,endCHS[3],start,length
1,0X0,0X82,0X3,0X0,0XC,0XFE,0XFF,0XFF,8192,31256576
2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
Scanning FAT, please wait.
Volume is FAT32
sectorsPerCluster: 64
clusterCount: 488256
freeClusterCount: 488223
fatStartSector: 8754
dataStartSector: 16384
On the 32GB card:
Code:
SdFat version: 2.1.0
Assuming an SDIO interface.
type any character to start
init time: 216 ms
Card type: SDHC
Manufacturer ID: 0X3
OEM ID: SD
Product: ABLCD
Version: 8.0
Serial number: 0X4C27B3B1
Manufacturing date: 3/2011
cardSize: 31914.98 MB (MB = 1,000,000 bytes)
flashEraseSize: 128 blocks
eraseSingleBlock: true
OCR: 0XC0FF8000
SD Partition Table
part,boot,bgnCHS[3],type,endCHS[3],start,length
1,0X0,0X82,0X3,0X0,0XC,0XFE,0XFF,0XFF,8192,62325760
2,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
3,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
4,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0X0,0,0
Scanning FAT, please wait.
Volume is FAT32
sectorsPerCluster: 64
clusterCount: 973584
freeClusterCount: 973567
fatStartSector: 9362
dataStartSector: 24576