But with cluster size 16, you'll need a larger File Allocation Table... I don't think that in the file properties dialog it's written also the space needeed in the FAT for that file
How many files are you planning on storing for fcuks sake? Slack space might be an issue if you have millions of files that each cause you to lose a couple of k, but with storage over GB's then its hardly a problem is it
How many files are you planning on storing for fcuks sake? Slack space might be an issue if you have millions of files that each cause you to lose a couple of k, but with storage over GB's then its hardly a problem is it
Just right now about 25 thousand files, the disadvantage against NTSF ist about 300 MB.
But with more files, FAT32 makes a 7 GB SD-card out of my 8 GB SD-card because of the wasted space.
Just right now about 25 thousand files, the disadvantage against NTSF ist about 300 MB.
But with more files, FAT32 makes a 7 GB SD-card out of my 8 GB SD-card because of the wasted space.
25 thousand files on an SD? huh?
With that much and a real need for it then surely you're using a proper file system on it such as ext2/3 and a real OS such as linux on the pc to handle that much?
I remember when big fat harddisks had to be partitioned no bigger than 32 megs. We thought that wasn't a problem, until we had disks bigger than that.
25'000 files on an SD card used in a mobile phone is nonsense. You're obviously using your phone for something extraordinary, which is exactly why people don't understand why you are complaining about the wasted space.
25'000 files on an SD card used in a mobile phone is nonsense. You're obviously using your phone for something extraordinary, which is exactly why people don't understand why you are complaining about the wasted space.
To carry around the 2,5 kg lead acid battery for enough run time of the notebook was no longer necessary, I purchased my first cell phone.
But I found it still necessary to have my notebook always with me.
2009 was the next big step: the Android cell phone.
First task was a complete offline version of my web site. So I can show when I am underway somebody important pages while I discuss themes covered by my web site.
It has to be an offline version, because we have in Europe extreme penalties for using mobile Internet in other countries. 12,000.--EUR per GB.
This offline version
1,7 GB files
1,99 GB on the SD card, the mentioned 300 MB loose because of FAT32
17251 files
776 folders
OP, not much you can do other than take the storage hit. I agree it is a bit disappointing though. While I think Android should use FAT32 as the default filesystem for SD cards to ensure maximum portability, it should at least support the option of other filesystems (it's built on Linux, I don't think adding ext3 support should be overly difficult)
Device(s): Note 2, SG S2 & S3, Evo 3D & 4G, Epic 4G, Captivate. (Moment, LG Optimus S, Vibrant)
Carrier: verizon / sprint / at&t
Thanks: 488
Thanked 477 Times in 349 Posts
How about zipping it up into a big file, and then using a zip file viewer on Android to view the files?
You're gonna be stuck with FAT32 due to its universal compatibility. Your case is probably among the rarest of the rare of someone having to carry that many files.
If it bugs you that much, just carry extra SD cards and be done with it.
To carry around the 2,5 kg lead acid battery for enough run time of the notebook was no longer necessary, I purchased my first cell phone.
But I found it still necessary to have my notebook always with me.
2009 was the next big step: the Android cell phone.
First task was a complete offline version of my web site. So I can show when I am underway somebody important pages while I discuss themes covered by my web site.
It has to be an offline version, because we have in Europe extreme penalties for using mobile Internet in other countries. 12,000.--EUR per GB.
This offline version
1,7 GB files
1,99 GB on the SD card, the mentioned 300 MB loose because of FAT32
17251 files
776 folders
Some other applications, and it's about 25.000 files on my card.
What is at this applications extraordinary?
Because of the limited space, I did not copy my photos on the phone
Do you really show someone your mobile website on your phone all the time?
If it's that important carry an extra SD card for the mobile website when you need to, or carry a Netbook to show the website with much better screen display.
Last edited by AndroidSPCS; January 7th, 2010 at 11:39 AM.
I meant if the Windows plug-in/driver couldn't write to the card, i.e. it could only read it, it would be useless.
If you're running linux then it doesn't matter. Linux can read and write to it either way no matter what you format it to. Windoze doesn't matter in that case cause it isn't being used.
'cides, I doubt that Windows could even read it unless it was FAT/FAT32/NTFS. Windows is useless in that case, not the format.
That being said I usually format to FAT32 so that I can hand my card to a poor Windows user if I want. Other wise linux works with that and any other format I care to use. If you want to get into SD swap or running apps from SD you'll want ext2.
The vast majority of people run Windows, not Linux. In the case of this thread, the OP wants a more efficient format and ext2 or ext3 was suggested. For most people, that's not real feasible as it won't work out-of-the-box with Windows. An option is available and I was pointing out (1) potential problem with it.
I used such a driver many years ago. I ran Linux for almost 10 years, by the way... Here's one that looks updated: Ext2Fsd Project
Fat32 and large amounts of small files / Wasted space
Founder, firstly I am surprised that people write replys that are rude, incorrect, irrelevant and often stupid. I understand your problem.
I have just produced offline google street maps for Singapore down to level 19. That is over 137,000 files. Loading them onto a 16gb SD card formatted to standard FAT 32 took up 11.2gb of space.
The problem is that a default FAT 32 format makes clusters of 32k each and each cluster can only have one file in it. The .png tile files are slightly less than 1k but each one uses 32k of space.
But FAT32 format can be made to use different cluster sizes : -FAT32 supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K,128K, 256K. I formatted my SD disk with a cluster size of 4096, I could not use a smaller size as there is a maximum of 4177918 clusters allowed on one disk.
Copying the files over they now use 1.8gb of space. But the maps load too slowly on my Phone. It does work though. Because of the time it takes to copy the files over on my present (slow) laptop (9hrs) I will be delaying any further experimentation for a while, but I am going to reformat the disk with 8192 size clusters and see how that works, I want to get it down to about 4-6 gb as I hope to load several other map areas on the disk, possibly going up to 500,000 files - but I will have to check as there are also limitations on the number of files in directories etc.
Opening a DOS cmd window (Start / Run and type cmd in the small window) the command to use is FORMAT X: /FS:FAT32 /A:4096 where X: is the letter corresponding to your SD disk and the last 3/4 characters are the cluster size you want (512, 1024, 2048, 4096, 8192, 16K, 32K)
I hope this helps, I will post the results of further formatting trials in the not too far off future
Mike
The Following User Says Thank You to mikebowe For This Useful Post:
25'000 files on an SD card used in a mobile phone is nonsense. You're obviously using your phone for something extraordinary, which is exactly why people don't understand why you are complaining about the wasted space.
No it's not.
My Maverick Maps tiles folder has 150,000 files in 3,500 folders taking up 1.1 GB (1.4 GB on disk). This is with 4,096 bytes in each allocation unit.
Device(s): Galaxy S3 16GB Blue (x2) 4.1.1 ******
Galaxy mini ******
Galaxy Tab 8.9,
******
Galaxy Portal 2
Carrier: T-Mobile UK!
Thanks: 667
Thanked 1,792 Times in 1,414 Posts
No matter what the file system is, you will lose space once formatted.
Yes fat 32 is 32k cluster size,
Yes ntfs can go as low as 512b cluster size
But an 8gb sd card will always give you about 7gb usable space.
My spica has an 8gb sd card, with a 1gb ext2 partition for the os and 7gb fat32 for storage.
It sounds as if you only need about 4-5gb anyway.
If you really do need more space, then just buy a bigger sd card. Or if you haven't already, revamp your site to use .png images instead of .jpg or you could just produce a .pdf catalogue to keep on your phone to show clients. I'm sure that will need less space.
Device(s): Galaxy S3 16GB Blue (x2) 4.1.1 ******
Galaxy mini ******
Galaxy Tab 8.9,
******
Galaxy Portal 2
Carrier: T-Mobile UK!
Thanks: 667
Thanked 1,792 Times in 1,414 Posts
Um, seriously, yes, because formatting the drive creates your Fat & MBR and this is why the 'usable space' of a drive is always lower. An 80gb drive only gives you 76.x gb because the fat & mbr need to use space.
Your probably thinking that of the 'usable space' you probably want to make best use of it with the smallest sector size possible. This would be on ntfs 512 bytes so the most any one file will waste is 511 bytes and this will also add up.
This is why the 'space on disk' is always larger than the stated used space, no matter what format the dive is using.
Um, seriously, yes, because formatting the drive creates your Fat & MBR and this is why the 'usable space' of a drive is always lower. An 80gb drive only gives you 76.x gb because the fat & mbr need to use space.
Your probably thinking that of the 'usable space' you probably want to make best use of it with the smallest sector size possible. This would be on ntfs 512 bytes so the most any one file will waste is 511 bytes and this will also add up.
This is why the 'space on disk' is always larger than the stated used space, no matter what format the dive is using.
That's totally wrong. The MBR takes up 512 bytes. It's tiny. The rest of the FAT32 overhead would be a couple of megabytes at most (in an average filesystem). In rare exceptions (where a partition contains thousands of files smaller than the cluster size), the overhead might grow to a couple of hundred megabytes. It would certainly never even come close to gigabytes of space.
The reason that drives advertised as 80GB only have ~74.5GB is because drive manufacturers use a different unit of measurement to operating systems:
When a drive manufacturer advertises an 80GB drive, they're saying it has 80 * 10 to the power of 9 bytes, which is 80,000,000,000
When you plug that drive into Windows, the OS measures how many gibibytes it has. A gibibyte is 2 to the power of 30 bytes, or 1,073,741,824 bytes.
So Windows tells you that the drive has 74.5 gibibytes which is the same as 80,000,000,000 bytes. It's absolutely nothing to do with the format of the drive
The Following User Says Thank You to 28064212 For This Useful Post: