LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 09-22-2016, 04:24 AM   #1
Kim Gu
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Rep: Reputation: Disabled
Is there a standard for flash memory's real capacity?


For example... 16GB USB flash drive's real capacity is almost 14.8~15.4 GiB.

these are different by each manufaturers or models.

In this situation.... How can I expect real minimum capacity?(GiB or Sectors)

Is there a standard? or de facto?

(I know 'LBA1-03' standard of IDEMA. But that is for only SSD/HDD, not USB flash drive/sdhc)
 
Old 09-22-2016, 07:27 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,876
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Short answer is "No".

But actual the true standard is the calculation of what 16 GB works out to in real bytes. However since they do not adhere to what they claim, then it is a Sales and Marketing issue.
 
Old 09-22-2016, 08:51 AM   #3
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
Depends how you define a GB
Is a Kb 1000 bytes or 1024 bytes?. It is then multiplied up.
Is it raw capacity or formatted capacity??

Marketing will ALWAYS use the terms that give the largest numbers and often round them up as well.
Life tells you NEVER to believe what a marketing man tells you. Always check for yourself from an alternate source.
 
Old 09-22-2016, 09:22 AM   #4
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Take a look at the back of the box. There's a little table there that lists something like this:
Quote:
1 KB = 1000 bytes
1 MB = 1000 KB
1 GB = 1000 MB
1 TB = 1000 GB
That's nice and all, but that isn't how your computer sees it. Your computer works with something like this:
Quote:
1 KB = 1024 bytes
1 MB = 1024 KB
1 GB = 1024 MB
1 TB = 1024 GB
So if we do a little math...
Code:
$ bc -q
scale=4
a=16*1000*1000*1000
a
16000000000

c=16*1024*1024*1024
c
[b]17179869184[b]

b=a/1024/1024/1024
b
14.9011
The drive has 16,000,000,000 bytes available. But for the drive to show up on the computer as actually 16 GB, there would need to be 17,179,869,184 bytes.
When you divide the number of bytes back out as the computer sees it, then you get your 14.9 GB of actual space.

On top of that, as Dave mentioned, your partition table and filesystem need to use some of that space, so you end up with even less than that. (Though the overhead is pretty small compared to what you "lost" in the marketing explained above)
 
Old 09-22-2016, 09:26 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,609
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
The correct measure is "a power of two." A kilobyte is 1,024 (2 to the 10th power) bytes. A megabyte is 1,024 kilobytes. And so on.
 
Old 09-22-2016, 10:10 AM   #6
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,774

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by sundialsvcs View Post
The correct measure is "a power of two." A kilobyte is 1,024 (2 to the 10th power) bytes. A megabyte is 1,024 kilobytes. And so on.
Since "mega" is the SI prefix for 10^6, there is some effort to define 2^20 as a Mebibyte.
 
Old 09-22-2016, 10:15 AM   #7
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
Won't happen!! At least in general conversation.
 
Old 09-22-2016, 07:48 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Drives are actually what they are claimed to be (generally in small print) but unless you use the drive "RAW" then you won't get that amount and it has been that way for a very long time.

If you want the extra space then use it raw. Might still be in the code.

Last edited by jefro; 09-22-2016 at 08:06 PM.
 
Old 09-22-2016, 08:53 PM   #9
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,770

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
Quote:
Originally Posted by jefro View Post
If you want the extra space then use it raw.
Old tongue-in-cheek question about some floppy diskettes:
"These disks say they are 2 MB unformatted, 1.44 MB formatted. Anyone know of a good unformat utility?"
 
Old 09-22-2016, 09:41 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
That is both old and funny. I never heard it.
 
  


Reply

Tags
capacity, flash drive, usb drive


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Missing capacity on flash drives maples Linux - Newbie 8 04-30-2014 03:52 PM
[SOLVED] Why doesn't fdisk show full capacity of my flash drive? EStyles Linux - Hardware 6 01-25-2013 02:38 PM
du -sh command does not reflex a real used capacity! dan.hoquoc Linux - Server 3 07-22-2011 04:15 AM
Linux memory management: Real memory or Cached buffers? gubbu Linux - Server 2 10-01-2010 01:58 AM
To see the memory capacity of machine saravanan1979 Linux - Hardware 7 05-30-2002 02:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration