Tolga
Posts: 1
Joined: Sat Mar 03, 2012 10:39 pm
Contact: Website

Re: What is the maximal limit for SD card?

Tue Mar 06, 2012 2:47 am

some products have limitations about the SD cards storages. (i.e: max 8Gb SD/microSD memory supported by some PDAs) is there any limitations at R-Pi about SD card storage? or what is our limit? what is the maximum SD card support ?

User avatar
cnxsoft
Posts: 191
Joined: Sat Oct 15, 2011 2:33 pm
Location: Chiang Mai, Thailand
Contact: Website

Re: What is the maximal limit for SD card?

Tue Mar 06, 2012 9:28 am

I'm not sure if there is a limit.

If you don't have one yet, you'd better take one of the SD cards reported to work.

http://elinux.org/RPi_Verified.....s#SD_cards

The Aussie Genius
Posts: 2
Joined: Thu Jan 10, 2013 9:52 pm

Re: What is the maximal limit for SD card?

Thu Jan 10, 2013 10:04 pm

That's easy enough to answer.

I'm surprised all of you missed the most obvious answer.

According to http://elinux.org/RPi_Easy_SD_Card_Setup, if you are using a Windows PC then you need the Win32DiskImager utility to prepare your SD card so that your Raspberry Pi can boot off it but the SD card must be first formatted using FAT32 file system and the maximum storage limit with the FAT32 file system is 32 Gb.

And that's your answer! 32 Gb should be the maximum, 32 Gb is better than the 2 Gb / 4 Gb / 8 Gb prepared SD cards that some Raspberry Pi vendors are selling, and a 32 Gb SD card is much much cheaper than a 64 Gb SD card.

Hope that this settles the question.

I am considering buying a RP myself too, and running both Raspbian and RISC OS on the RP - used to have a BBC Micro B in the 1980s, but never could afford a RISC OS computer until now.


TAG :ugeek:

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13283
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: What is the maximal limit for SD card?

Thu Jan 10, 2013 10:12 pm

If only it was that simple, but it isn't!
Only the first partition on the card is FAT32 (or FAT16), but the other partitions are linux partitions, and potentially can be much larger than 32MB! :roll:

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: What is the maximal limit for SD card?

Thu Jan 10, 2013 10:21 pm

Is it cost effective to buy the biggest SD Card possible for the Pi when you consider the wear and tear of write cycles??
So you have a simple choice:
- a cheap 8GB SD card that goes bad after excessive use
- a really expensive 64GB SD card that goes bad after excessive use
which sounds better??

Personally I would stick to 8GB memory cards there's more than enough room to host an Operating System and many media files.
Obviously if you're run out of space there's always the USB flash drive / external hard drive option.

Richard S.

plugwash
Forum Moderator
Forum Moderator
Posts: 3664
Joined: Wed Dec 28, 2011 11:45 pm

Re: What is the maximal limit for SD card?

Thu Jan 10, 2013 10:28 pm

The Aussie Genius wrote:but the SD card must be first formatted using FAT32 file system
I don't use win32diskimager myself but I know that dd on linux doesn't care what was on the card before.
and the maximum storage limit with the FAT32 file system is 32 Gb.
Not exactly the fat32 formatter in windows 2K/XP/vista/7 is artificially limited to 32GB but the filesystem itself works fine on larger drives.

I know people have used the Pi with 64GB cards succesfully.

User avatar
MattHawkinsUK
Posts: 538
Joined: Tue Jan 10, 2012 8:48 pm
Location: UK
Contact: Website

Re: What is the maximal limit for SD card?

Thu Jan 10, 2013 10:32 pm

I use a card suitable for the task I expect the Pi to perform. No point using a 32GB card if you aren't going to fill a 4GB card.

Hardware SD card limitations are usually down to whether it supports SD, SDHC, SDXC etc.
My Raspberry Pi blog and home of the BerryClip Add-on board : http://www.raspberrypi-spy.co.uk/
Follow me on Google+, Facebook, Pinterest and Twitter (@RPiSpy)

The Aussie Genius
Posts: 2
Joined: Thu Jan 10, 2013 9:52 pm

Re: What is the maximal limit for SD card?

Thu Jan 10, 2013 10:35 pm

mahjongg wrote:If only it was that simple, but it isn't!
Only the first partition on the card is FAT32 (or FAT16), but the other partitions are linux partitions, and potentially can be much larger than 32MB! :roll:
Well ... we shall see when i actually get my hands on a rp ...

User avatar
cyrano
Posts: 714
Joined: Wed Dec 05, 2012 11:48 pm
Location: Belgium

Re: What is the maximal limit for SD card?

Fri Jan 11, 2013 2:27 am

I suspect 32 GB is as big as it will get. It's the maximum supported by the SDHC standard:

http://en.wikipedia.org/wiki/Secure_Digital#SDHC

Over 32 GB it's SDXC and I don't believe that's supported by the Pi.

plugwash
Forum Moderator
Forum Moderator
Posts: 3664
Joined: Wed Dec 28, 2011 11:45 pm

Re: What is the maximal limit for SD card?

Fri Jan 11, 2013 8:12 am

AIUI the only significant difference between HC and XC is the standard filesystem but that doesn't really matter for uses like the Pi since the first thing you do is blow away said standard filesystem and replace it with a multi-partition image.

kalehrl
Posts: 350
Joined: Tue Jul 24, 2012 10:49 am

Re: What is the maximal limit for SD card?

Fri Jan 11, 2013 9:17 am

Code: Select all

- a cheap 8GB SD card that goes bad after excessive use 
I bought a Transcend 8gb SDHC10 card for 7 euro and it comes with a 60-month guarantee (Yeah, that's right - 5-year guarantee) so I don't care if it goes bad as long as I make regular backups.

W. H. Heydt
Posts: 13301
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: What is the maximal limit for SD card?

Fri Jan 11, 2013 8:59 pm

http://www.amazon.com/Lexar-Professiona ... s=SD+256GB
http://www.amazon.com/Lexar-Professiona ... s=SD+256GB

Those are the largest SD cards I know of. I don't think anyone has tried one in a Pi yet...but I could be wrong.

User avatar
cyrano
Posts: 714
Joined: Wed Dec 05, 2012 11:48 pm
Location: Belgium

Re: What is the maximal limit for SD card?

Fri Jan 11, 2013 9:24 pm

plugwash wrote:AIUI the only significant difference between HC and XC is the standard filesystem but that doesn't really matter for uses like the Pi since the first thing you do is blow away said standard filesystem and replace it with a multi-partition image.
That's what I figured. But the one HDXC card I have tested (64 GB Sandisk), didn't boot the RPi.

wirelessmonk
Posts: 47
Joined: Sat Sep 08, 2012 2:58 am
Location: The Colonies

Re: What is the maximal limit for SD card?

Fri Jan 11, 2013 11:15 pm

64GB SanDisk Class 10. Works just fine. Imaged on a Mac in terminal.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13283
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: What is the maximal limit for SD card?

Fri Jan 11, 2013 11:39 pm

The biggest problems you might encounter with very large SD-cards is that they need to switch to a lower working voltage, (like 1,8 Volt) at some time in their initialization sequence, and the PI cannot support that, its SD-card supply is strictly 3,3 Volt only!

wirelessmonk
Posts: 47
Joined: Sat Sep 08, 2012 2:58 am
Location: The Colonies

Re: What is the maximal limit for SD card?

Sat Jan 12, 2013 12:30 am

Intriguing...

and also why I love forums.

The only issues remotely related to the SD (Micro w/ adapter if it matters to anyone) card I've had have been immediately after removal and replacement. On the 256 RPi this is most likely due to a damaged pin on the receptacle.

I've only been putting any wear on the card in the last two months. If I see any issue arise, I'll know the probable cause. Good reason to free up this card for something else. :D

If I do have any issues, I'll be sure to mention it. Otherwise, just count me as one of the freaks running 64GB on a 512 RPi. :shock:

WeUsePis
Posts: 96
Joined: Mon Dec 31, 2012 4:02 pm
Location: Upstate New York
Contact: Website

Re: What is the maximal limit for SD card?

Sat Jan 12, 2013 5:32 pm

I know that is a cheat as answer, but if you really need a lot of storage space buy an inexpensive 8GB card and hook up an external USB drive. I have to try it, but I got an external 320GB laptop drive. Not only does that offer much more capacity, access time should be better than from SDHC as well.
Our Pi Blog - http://weusepis.wordpress.com/

goci
Posts: 12
Joined: Thu May 16, 2013 8:22 pm

Re: What is the maximal limit for SD card?

Sun Feb 09, 2014 7:38 am

I am using a Platinum 128GB SD card.

works fine:

root@b:~# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 120G 68G 51G 58% /

Curious to know if 256GB are supported.

raspberry_user
Posts: 183
Joined: Fri Jan 02, 2015 11:34 pm

Re: What is the maximal limit for SD card?

Tue Oct 20, 2020 6:51 pm

Is it true that nowadays, there is no limitation on the storage size regardless of whether one is using a sdcard, USB 3 stick, SSD or NvME SSD?

plugwash
Forum Moderator
Forum Moderator
Posts: 3664
Joined: Wed Dec 28, 2011 11:45 pm

Re: What is the maximal limit for SD card?

Tue Oct 20, 2020 8:28 pm

There are always limits, the only questions are whether those limits are theoretical or practical and whether or not there are workarounds available.

2TiB is an important break-point because it's the point where a 32-bit index/count of 512 byte (the de-facto standard size) logical sectors overflows. Afaict this will affect the Pi ecosystem in two different ways.

The first is on the SD card side, SDHC and SDXC use 32-bit sector indexes/counts. Cards above 2TiB (when they are released*) will be SDUC cards and probably will not work on the Pi as it stands today. For the Pi4 this may be fixable with a firmware upgrade, for earlier Pi models it will probably not be fixable.

The second is for booting from any medium. As far as I can tell the Pi's boot-code only understands MBR partition tables which use 32-bit sector indexes/counts. This can probably be worked around by using a MBR/GPT hybrid partition table.

I'm not positive what the limits of SATA, USB mass storage and NVME are, but I am pretty sure they are comfortably beyond the sizes of any drives produced today. The final version of the paralell ATA specification used 48 bit sector addresses (128PiB with 512 byte sectors) and I would expect SATA to be at least as good. USB mass storage is based on SCSI which seems to have a 64-bit limit (8ZiB with 512 byte sectors) on sector addresses NVME also seems to use 64-bit sector addresses.

Those are theoretical limits though, I suspect practical implementations to hit issues before then. If nothing else I expect to see issues if and when we approach 2^63 bytes (8EiB) as many APIs in Linux use byte rather than sector addressing and I suspect at least some of them use signed numbers.

* The largest legitimate micro-SD cards I can currently find are 1TB. There are cards that claim to be 2TB but given the prices and brands involved I am convinced that they are fakes.

cleverca22
Posts: 1379
Joined: Sat Aug 18, 2012 2:33 pm

Re: What is the maximal limit for SD card?

Tue Oct 20, 2020 9:20 pm

plugwash wrote:
Tue Oct 20, 2020 8:28 pm
The first is on the SD card side, SDHC and SDXC use 32-bit sector indexes/counts. Cards above 2TiB (when they are released*) will be SDUC cards and probably will not work on the Pi as it stands today. For the Pi4 this may be fixable with a firmware upgrade, for earlier Pi models it will probably not be fixable.
eeprom upgrades on the pi4 can likely fix the SDUC problems
but the rom wont understand SDUC, so recovery.bin and repairing a mis-flashed pi4 would still need a non-SDUC card
plugwash wrote:
Tue Oct 20, 2020 8:28 pm
The second is for booting from any medium. As far as I can tell the Pi's boot-code only understands MBR partition tables which use 32-bit sector indexes/counts. This can probably be worked around by using a MBR/GPT hybrid partition table.
i believe the rom, recovery, bootcode, and start4.elf now support gpt as well, the fat32 must be tagged as either "efi system partition" or "microsoft basic data"

Return to “Beginners”