LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-05-2020, 12:03 AM   #1
starbearer
LQ Newbie
 
Registered: Jan 2020
Posts: 22

Rep: Reputation: Disabled
SSD disk capacity reported by manufacturer


I was looking at a disk manufacturer specifications using the data sheet for a SSD disk, when I came across this disk which is being marketed as 512 GB disk.

Capacity LBA Cylinders Heads Sectors User Capacity(MB)

512GB 937703088 16383 16 63 457862

This user capacity is 457 GB or 447 maybe seen on Windows, but that's quite a reduced space, more than 10% of the overall disk capacity. I'm additionally perplexed because this is being marketed as an actual 512 GB disk.

Is this over-provisioning by the SSD disk? In which case should it be marketed as 512 GB? Or is it just that the disk is really 512 GB but on WIndows it's likely to be seen as less due to WIndows' binary system calculation?
 
Old 11-05-2020, 01:07 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 22 MATE, Peppermint OS-Devuan, EndeavourOS
Posts: 4,311
Blog Entries: 48

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Gibibyte vs. gigabyte

A gibibyte and a gigabyte are sometimes used as synonyms, though technically they do not describe the same amount of capacity. They are close in size, however. A gibibyte is equal to 230 or 1,073,741,824 bytes. A gigabyte is equal to 109 1,000,000,000 bytes. One gibibyte equals 1.074 gigabytes. That's a 7% difference.

https://searchstorage.techtarget.com...n/gibibyte-GiB

https://www.gbmb.org/gb-to-gib

Last edited by beachboy2; 11-05-2020 at 01:14 AM.
 
Old 11-05-2020, 02:30 AM   #3
starbearer
LQ Newbie
 
Registered: Jan 2020
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
Gibibyte vs. gigabyte

A gibibyte and a gigabyte are sometimes used as synonyms, though technically they do not describe the same amount of capacity. They are close in size, however. A gibibyte is equal to 230 or 1,073,741,824 bytes. A gigabyte is equal to 109 1,000,000,000 bytes. One gibibyte equals 1.074 gigabytes. That's a 7% difference.

https://searchstorage.techtarget.com...n/gibibyte-GiB

https://www.gbmb.org/gb-to-gib
Yes I understand the difference, but using the data sheet, I am unable to figure out yet, if I plug this disk in Linux, which normally use decimal or gigabyte system, exactly how much capacity I'll have, since there is no indication of base or a comment like "1 Gigabyte = 1 billion bytes" in the sheet.

This is what is reported for capacity -

https://imgur.com/5zMZOAm
 
Old 11-05-2020, 03:44 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,413
Blog Entries: 1

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by starbearer View Post
Code:
Capacity    LBA    Cylinders Heads Sectors  User Capacity(MB) 
 512GB   937703088   16383    16     63        457862
What exactly produced this?

16383 X 16 X 63 (X 512 = 8063.5 MB) is an anachronism that produces a partitioning format that yields the maximum size known as the 8 GB limit. There's no corelation between 512GB and the rest of the numbers on that line, unless the 457862M is the net available space on one of the partitions.

This 512G SSD I recently installed produces this output using Ubuntu 20.04's fdisk:

Code:
fdisk -l /dev/sda
Disk /dev/sda: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: T-FORCE 512GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier:...

# gdisk -l /dev/sda
...
Partition table scan:
  MBR: protective
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1000215216 sectors, 476.9 GiB
Model: T-FORCE 512GB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID):..
 
Old 11-05-2020, 04:58 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,346

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
This is what I think is correct.

https://www.wilderssecurity.com/thre...atting.391198/

Last edited by jefro; 11-05-2020 at 04:59 PM.
 
Old 11-06-2020, 12:04 AM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
I find it hard to believe that people seem to not understand the difference between marketing speak which is based on decimal units and calls a device 500 GB and system numbers that are based on binary units which displays the exact same value as 465.66 GiB. Those of us who have been working with systems for some time (some longer than others) and those who have had training in understanding the differences between decimal and binary numbering systems see it clearly.

Yet others cannot even seem to fathom how to use a modern calculator such as the standard one on my linux distro (and I suspect is the same on most distros) that will do a direct conversion from Gigabytes to Gibibytes. 500 GB = 465.66 GiB is a fact of life. The advertised size of 500GB seems larger but in fact is equal to the usable 465.66 Gib that was displayed repeatedly above.

I have several 3TB drives, but the usable on each is "only" 2.7+TiB -- so it "seems" I lose almost 10% of the size.
Does that bother me? NO, it is a fact that advertised sizes are not stated in binary units.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-11-05 23-44-01.png
Views:	8
Size:	38.9 KB
ID:	34500  

Last edited by computersavvy; 11-06-2020 at 12:06 AM.
 
Old 11-06-2020, 12:20 AM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by mrmazda View Post
What exactly produced this?
Code:
Capacity    LBA    Cylinders Heads Sectors  User Capacity(MB) 
 512GB   937703088   16383    16     63        457862
16383 X 16 X 63 (X 512 = 8063.5 MB) is an anachronism that produces a partitioning format that yields the maximum size known as the 8 GB limit. There's no corelation between 512GB and the rest of the numbers on that line, unless the 457862M is the net available space on one of the partitions.
If you read up on newer drives, both SSD & HDD, there is no real correlation between the C-H-S numbers and the actual geometry of the drive. That is simply electronic magic that allows the system to talk to the drive in terminology that is already understood and they understand each other. As you surmised, the 457862MB (or rather MiB) is the actual usable net space on the device after allowing for unit conversion and reserved space for "bad sector" replacement.
 
1 members found this post helpful.
Old 11-06-2020, 12:44 AM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,413
Blog Entries: 1

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by computersavvy View Post
If you read up on newer drives, both SSD & HDD, there is no real correlation between the C-H-S numbers and the actual geometry of the drive.
I've known about it since last century. If you read back far enough you'll see they comprise a component of the concept of alignment, and are still relevant to those keeping 30-40 year old equipment operational. I see them, and a whole lot more, printed in every partitioning log the non-FOSS partitioner I use exclusively for writes generates.
 
  


Reply


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] I have a SSD a 500GB drive and a 2TB drive and want to move Ubuntu from 500GB to SSD greatormesby Linux - Newbie 12 07-06-2015 09:58 AM
Best capacity planning or capacity management tool decenter Linux - Software 1 03-27-2015 03:11 PM
To SSD or not to SSD jlinkels Linux - Hardware 14 10-02-2012 07:36 AM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:47 PM.

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