For advanced SD card features fat16lib \ Bill Greiman who has done extensive research has created another library SdFat (replacement for default Arduino SD library) https://github.com/greiman/SdFat
This is 4GB sd card output of Sdfat library -> Sdinfo
SdFat version: 20150324
Assuming the SD is the only SPI device.
Edit DISABLE_CHIP_SELECT to disable another device.
Assuming the SD chip select pin is: 4
Edit SD_CHIP_SELECT to change the SD chip select pin.
type any character to start
init time: 17 ms
Card type: SDHC
Manufacturer ID: 0X3
OEM ID: SD
Product: SS04G
Version: 8.0
Serial number: 0XEA5CE30C
Manufacturing date: 4/2015
cardSize: 3965.19 MB (MB = 1,000,000 bytes)
flashEraseSize: 128 blocks
eraseSingleBlock: true
OCR: 0XC0FF8000
SD Partition Table
part,boot,type,start,length
1,0X0,0XB,8192,7733248
2,0X0,0X0,0,0
3,0X0,0X0,0,0
4,0X0,0X0,0,0
Volume is FAT32
blocksPerCluster: 64
clusterCount: 120704
freeClusters: 120701
freeSpace: 3955.13 MB (MB = 1,000,000 bytes)
fatStartBlock: 14496
fatCount: 2
blocksPerFat: 944
rootDirStart: 2
dataStartBlock: 16384
type any character to start
This is 16GB sd card output of Sdfat library -> Sdinfo
SdFat version: 20150324
Assuming the SD is the only SPI device.
Edit DISABLE_CHIP_SELECT to disable another device.
Assuming the SD chip select pin is: 4
Edit SD_CHIP_SELECT to change the SD chip select pin.
type any character to start
init time: 25 ms
Card type: SDHC
Manufacturer ID: 0X3
OEM ID: SD
Product: SU16G
Version: 8.0
Serial number: 0X9F12CF20
Manufacturing date: 8/2013
cardSize: 15931.54 MB (MB = 1,000,000 bytes)
flashEraseSize: 128 blocks
eraseSingleBlock: true
OCR: 0XC0FF8000
SD Partition Table
part,boot,type,start,length
1,0X0,0XC,8192,31093648
2,0X0,0X0,0,0
3,0X0,0X0,0,0
4,0X0,0X0,0,0
Volume is FAT32
blocksPerCluster: 64
clusterCount: 485710
freeClusters: 485707
freeSpace: 15915.65 MB (MB = 1,000,000 bytes)
fatStartBlock: 8794
fatCount: 2
blocksPerFat: 3795
rootDirStart: 2
dataStartBlock: 16384
type any character to start
The reported card size in MB is more accurate with fat16lib's Sdfat library & code