|
2007-06-04
, 19:18
|
Posts: 165 |
Thanked: 5 times |
Joined on Jan 2007
@ Boston MA USA
|
#12
|
Originally Posted by jpjOn which system? On most systems default FAT32 cluster size is 4KB no matter the size.In fact the default FAT32 cluster size is 16KB for a 1GB SD card and 32KB for anything larger (up to the 8GB SDHC currently available).
Are you sure about this? is this result of some practical test?
While I'm not sure anything below 4KB block is supported with FAT32 at all, pure math says limits should be different. 4GB fits inside 32bits even when you address it by individual bytes, here you are addressing by clusters so why you can't have 512 bytes sized cluster with 4gb card? That should give you 2^32(=4294967296)/2^9(=512)= 8388608 clusters which should definitely fit into 32 bits of FAT32 limit. So in theory you could have 2^(32+9) bytes big card for 512 cluster size. Or if inforamation here http://www.cknow.com/ckinfo/f/FAT-Fi...tionTable.html or here http://en.wikipedia.org/wiki/File_Allocation_Table is true (and it probably is) and only 28 bits are used is still should allow 2^(28+9=37)=128GB card to have such small cluster.
Anyway making the cluster size small will make FAT table quite big. Generally it may not be very good idea to choose size below 4KB on gigabyte sized cards. Check this
http://www.storagereview.com/guide20...partFAT32.html
4GB card with 1KB block would give you FAT table size of 16MB and 512 bytes cluster will take 32MB.
Since most devices are not caching writes and keep FAT table in RAM and update it on every write this could make such card very slow and even not working in devices like PalmOS handhelds or digital cameras (due to device RAM limit).
But maybe linux is clever enough and handle big FAT tables sensibly so in N800 this could work?
|
2007-06-04
, 19:20
|
Posts: 165 |
Thanked: 5 times |
Joined on Jan 2007
@ Boston MA USA
|
#13
|
|
2007-06-04
, 21:15
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#14
|
|
2007-06-05
, 08:08
|
Posts: 10 |
Thanked: 0 times |
Joined on May 2007
|
#15
|
|
2007-06-05
, 08:49
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#16
|
the OS apparently treats these cards (and presumably other removable media types) differently from hard drives, where 4KB is the default FAT32 cluster for volumes from 257MB through 8GB.
I assume there is some architectural reason for treating flash cards differently, since the industry supplied SD card formatters also use larger clusters than the hard drive defaults. For example, if the internal write logic always uses large blocks, writing sub-blocks becomes a very wasteful read-modify-write operation.
|
2007-06-05
, 09:02
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#17
|
Would it be possible to use an ext2 fs for the map files? How would that be accomplished, other than repartitioning and such in sfdisk?
|
2007-06-05
, 15:18
|
|
Posts: 1,245 |
Thanked: 421 times |
Joined on Dec 2005
|
#18
|
Has anyone tried this? Can JFFS2 even support file systems that large? I guess the only (consumer) problem is a lack of Windows-accessible JFFS2 formatters...