#1  
Old 10-27-2007, 02:19 AM
Newbie
 
Join Date: Oct 2007
Location: Buxton
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Cluster size for memory card

I saw many posts about the cluster size and formatting for the memory cards but not one person who said what size the cluster should be. I put my new 2gb SanDisk Memory card into the mem card reader and connected it to my pc and it said i should format it.
I formatted it as FAt32 and cluster size 32 bytes ( i think ).
However when i formatted my 1gb card it recommended i format it as size 16.

I wonder if someone can commment on what type of formatting the disk should be done as for my N95.

Thanks
Reply With Quote
Sponsored links
  #2  
Old 10-27-2007, 02:26 AM
Gizmoratty's Avatar
Nokia Guru
 
Join Date: Oct 2007
Location: Merry Ol' England
Posts: 3,322
Thanks: 118
Thanked 1,133 Times in 583 Posts

1000 Thanks 
Total Awards: 1

Send a message via MSN to Gizmoratty
If you want to be safe, always format memory cards from the phone itself

That way you can never blame yourself for getting it wrong ;P

Menu -> Tools -> Memory -> Options -> Format Memory Card
Reply With Quote
  #3  
Old 10-27-2007, 01:55 PM
Newbie
 
Join Date: Oct 2007
Location: Buxton
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
however.... Apart from formatting on the phone. What is the best cluster size when formatting with the pc. And could someone comment on the differences as in relation to the specifics above.
Reply With Quote
  #4  
Old 10-27-2007, 01:59 PM
AngusG's Avatar
Nokia Guru
Phone: N95-2 v20
N-Gage ID: AngusG
 
Join Date: Aug 2007
Location: Brisbane, Australia
Posts: 1,840
Thanks: 114
Thanked 241 Times in 167 Posts
Send a message via MSN to AngusG
Quote:
Originally Posted by alexredfeet View Post
however.... Apart from formatting on the phone. What is the best cluster size when formatting with the pc. And could someone comment on the differences as in relation to the specifics above.
cluster size - Google Search

FAT32's your best bet... I think I read somewhere that by default the phone will format 4 GB cards as FAT32 but anything less as FAT16... guess it must be the SHDC...
Reply With Quote
  #5  
Old 10-28-2007, 08:19 AM
Newbie
 
Join Date: Oct 2007
Location: Buxton
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
I understand it should be FAT32, and that was set as default. However my point and question was what allocation unit size to be specific. ?
A it gave me the option of choosing 4 bytes, 8 bytes.... and so on.
However i was not sure which it should be? or which is best suited for the 2gb card when used in the n95.?

As mentioned above, before formatting the 1gb card it had a lower default allocation size. But perhaps the 2gb card is best suited for a lower byte size too.
Reply With Quote
  #6  
Old 10-31-2007, 01:59 PM
Nokia Guru
Phone: N97 mini ver 10.0.020 vodafone UK branded
 
Join Date: May 2007
Location: Yorkshire
Posts: 1,422
Thanks: 100
Thanked 209 Times in 181 Posts
Quote:
Originally Posted by Gizmoratty View Post
If you want to be safe, always format memory cards from the phone itself

That way you can never blame yourself for getting it wrong ;P
If you do that with a 2Gig card and use Maps then you will lose around 100MB due to the phone using FAT16

IRT the author of this thread. Windows (assuming that's what you used) defaults to the smallest cluster size and this is what you want unless you know you will be only using the card for large files.

Larger cluster size means more potentially wasted space.
Reply With Quote
  #7  
Old 11-03-2007, 08:46 AM
Nokia User
 
Join Date: Jun 2007
Location: Bethesda, MD
Posts: 213
Thanks: 1
Thanked 26 Times in 13 Posts
The last poster knows a bit about what he is commenting on. I on the other hand have absolutely no idea whatsoever about this application, but do have some formal education on computer architectures.

The cluster size issue is something you shouldnt spend too much time worrying about, because its likely the phone will use the optimum size for its intended application.

With todays modern systems, 8/16 bit/byte (cant recall, its likely to be bit) cluster sizes really become an issue when considering backwards compatibility, this is not to say that there are no performance issues involved, there certainly are, but its likely that this will not be the bottleneck in whatever application you are using it for. One potential issue, in the case that the phone does not know the correct choice, is that you could lose half of your available space because the phone cannot address it (if you chose 16 and the phone only understood 8), I do remember reading about this somewhere but I cant recall if it was in the context of the N95 though.

Hope I didnt confuse you, and Im sorry I couldnt give you the definitive answer that you were looking for.
Reply With Quote
  #8  
Old 11-03-2007, 07:54 PM
Nokia Guru
Phone: N97 mini ver 10.0.020 vodafone UK branded
 
Join Date: May 2007
Location: Yorkshire
Posts: 1,422
Thanks: 100
Thanked 209 Times in 181 Posts
The problem with using too large a cluster size is that the smallest physical space a file can occupy is one cluster.

Maps on the N95 creates hundreds of files 1k or less in size.

FAT16 on a 2GB memory card will use a 64KB cluster so each of those 1k files will waste 63k
FAT32 will use a 4k cluster size therefore each of those 1k files will use only 4k on the card, only wasting 3k and saving 60k over FAT32.

Since the N95 supports FAT32 it makes sense to use that on all cards over 256MB
Reply With Quote
  #9  
Old 11-03-2007, 09:17 PM
Nokia User
 
Join Date: Jun 2007
Location: Bethesda, MD
Posts: 213
Thanks: 1
Thanked 26 Times in 13 Posts
Quote:
Originally Posted by Homer View Post
The problem with using too large a cluster size is that the smallest physical space a file can occupy is one cluster.

Maps on the N95 creates hundreds of files 1k or less in size.

FAT16 on a 2GB memory card will use a 64KB cluster so each of those 1k files will waste 63k
FAT32 will use a 4k cluster size therefore each of those 1k files will use only 4k on the card, only wasting 3k and saving 60k over FAT32.

Since the N95 supports FAT32 it makes sense to use that on all cards over 256MB
I dont know if what you are saying is accurate, it sounds like it could be, if it is here is a really shocking example of its implications, (just an extension of what you said).

lets say you have 1000 files which have 1k of data each.
best case scenario you use 1 Meg to store them all.

worst case - each 64k cluster only holds 1k, leading to 64Megs required to store of which 63 Megs is wasted. 98.4% Waste

other case - it requires 4Megs to store, in which case you have 3Megs of wasted space. 75% Waste

Shocking!! isnt it?

Which is why I would hope that modern systems would have moved beyond this ridiculous issue by now. But Im an electrical engineer, not computer, so really I cannot be the final word on this type of an issue.
Reply With Quote
  #10  
Old 11-03-2007, 10:47 PM
Nokia User
 
Join Date: Jun 2007
Location: Bethesda, MD
Posts: 213
Thanks: 1
Thanked 26 Times in 13 Posts
Ok so to explore the issue a bit further I performed some experiments.

Here is how it started off:

My computer- NTFS >70GB (4kB cluster size)
1byte file -> 4kB size on disk

Kingston 1GB MicroSd Original Format FAT
1byte file -> 16kB on disk

Original Nokia 1GB MicroSD FAT
1byte file -> 16kB on disk

Ok so then I tried formatting the kingston card to ntfs using various cluster sizes ranging from 512bytes to 4kB. And then I got really confused:
Surprisingly in all cases windows explorer reported the file as 1kB , hovering the mouse over the file reported its size as 1B, but right click reported the file as 16kB. And the phone complained that the card was corrupted.

Then I jumped through a bunch of loopholes to get the computer to format the card as FAT32 with 1kB and 512B cluster sizes. Phone accepted the card in both cases, but again windows reported the file size as 1Kb, 1B, and 16kB, depending on which method i used to check size. And the phone reported it as 1B.
However chkdsk at the command prompt reported the file size as 1kB and 512B, respectively.

So to double check this new development I reformatted the card to FAT on the phone, this time the same 1B file was again reported as 1B on the phone and 1kB/1B/16kB by windows, and 16kB by the command prompt.

So the conclusion of this saturday evening foray in the world of file systems and cluster sizes?

Phone accepts only FAT and FAT32 fs, with 16kB as the default cluster size for FAT, and, 512B and 1kB as acceptable cluster sizes for FAT32.

for a 1B file (1Byte=8bits).
In all Cases phone reported file size as 1B
In all Cases windows explorer reported file size as 1kB/1B/16kB.
In the case of FAT32 fs, w/ 512B cluster size, chkdsk reported size on disk of 512B
In the case of FAT32 fs, w/ 1kB cluster size, chkdsk reported size on disk of 1kB
In the case of FAT fs w/ 16kB cluster size, chkdsk reported s.o.d of 16kB

I would trust chkdsk, and and ignore both the phones explorer, and windows explorer, including hovering as well as the right click onto properties on windows explorer.

Result-> all my Microsd cards will now be FAT32 with 1kB cluster size.
(this will hopefully be a good compromise between efficient use of memory density versus excessive fragmentation)

Keep in mind that although I did relatively thorough tests for a tiny 1B file, I have no Idea how things like the camera and other applications will react to the smaller cluster sizes. So reserve judgment till you feel you have enough information.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
n95 8gb mass memory default cluster size benuk General 95 5 06-09-2008 11:50 AM
FAO Admin - Adding Phone model, and Card GB size to members profile? Micky The Lounge 20 01-08-2008 11:43 AM
Incorrect Memory Size wtf General 95 4 09-10-2007 05:51 PM
Card size hawala General 95 6 08-07-2007 09:00 PM
Memory card to Memory card Application Transfer Xkaliber Third Party Software 5 07-08-2007 09:32 AM


All times are GMT. The time now is 07:30 AM.


Style design and concept by DigitalVB.com
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
Integrated by BBPixel ©2003-2010, jvbPlugin
Ad Management by RedTyger

no new posts