Skip to content

Could someone explain this to me?

Not downloaded yet

I used Parted to create the partitions on my fresh Arch install. I ran the commands, I had my swap space (sda1) set for 1MiB-8GiB, my root (sda2) from 8GiB-100GiB, and my home from 100GiB to 100%. I noticed when Parted made these, it made my root run to 107GiB; I realize it has to round a bit, but a full 7GB worth of rounding?

The other thing I noted is that Parted says my root partition is 98.8GB while running lsblk says it's 92GB. lsblk also says my home is 598.7GB, and Parted says 643GB. Why is there such a large discrepancy there? And why does lsblk also read the size of my harddrive as 698.7GB rather than something closer to the correct 750?

Here is a picture of the screen listing everything: http://i.imgur.com/nw3ztcR.jpg

0 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Image
ID
3602ch

Author

11
posts
13
comments
3
media
View profile

8 comments

KB = 10^3 B = 1,000 B
MB = 10^6 B = 1,000,000 B
GB = 10^9 B = 1,000,000,000 B

KiB = 2^10 B = 1,024 B
MiB = 2^20 B = 1,024 * 1,024 B = 1,048,576 B
GiB = 2^30 B = ...

Now, this is what's happening:

100 * 2^30 = 107,374,182,400

That's where the 107 comes from.

6 points

Well today I learned about gibibytes. This was a much simpler answer than I expected...

6 points

To give a visualization to the other comments, here's a few outputs on my own system. There's a size command in GNU Parted that can make it display GB (Gigabyte, 10003 bytes) versus GiB (Gibibyte, 10243 bytes) in its output. It looks like lsblk outputs in Gibibytes (or Mebibytes, or whatever relevant order of magnitude) for its sizes.

1 points

#####

######

#### Gibibyte:


The gibibyte is a multiple of the unit byte for digital information. It is a member of the set of units with binary prefixes defined by the International Electrotechnical Commission (IEC). Its unit symbol is GiB.

The prefix gibi (symbol Gi) represents multiplication by 10243, therefore:

1 gibibyte = 230 bytes = 1073741824bytes = 1024 mebibytes


Interesting: [Data rate units](https://en.wikipedia.org/wiki/Data_rate_units) | [Gigabyte](https://en.wikipedia.org/wiki/Gigabyte) | [Giga-](https://en.wikipedia.org/wiki/Giga-) | [Kibibyte](https://en.wikipedia.org/wiki/Kibibyte)

Parent commenter can [toggle NSFW](/message/compose?to=autowikibot&subject=AutoWikibot NSFW toggle&message=%2Btoggle-nsfw+cr9ghl3) or[](#or) [delete](/message/compose?to=autowikibot&subject=AutoWikibot Deletion&message=%2Bdelete+cr9ghl3). Will also delete on comment score of -1 or less. | FAQs | [Mods](http://www.np.reddit.com/r/autowikibot/comments/1x013o/for_moderators_switches_commands_and_css/) | [Magic Words](http://www.np.reddit.com/r/autowikibot/comments/1ux484/ask_wikibot/)

2 points

Some programs use 10n (decimal notation) while others use 2n (binary notation) to represent data.

See this wikipedia article.

1 points

#####

######

#### Orders of magnitude (data):


An order of magnitude is a factor of ten. A quantity growing by four orders of magnitude implies it has grown by a factor of 10000 or 104.

This article presents a list of multiples, sorted by orders of magnitude, for digital information storage measured in bits. This article assumes a descriptive attitude towards terminology, reflecting general usage. The article assumes the following:

  • The decimal SI prefixes kilo, mega etc., are powers of 10. The binary prefixes kibi, mebi, etc. respectively refer to similar multiples.

Accordingly:

  • 1 kB (kilobyte) = 1000 bytes = 8000 bits
  • 1 KiB (kibibyte) = 210 bytes = 1024 bytes = 8192 bits

Note: this page mixes between two kinds of entropies:

These two definitions are not entirely equivalent, see Entropy in thermodynamics and information theory.

For comparison, the Avogadro constant is 6.02214179(30)×1023 entities per mole, based upon the number of atoms in 12 grams of carbon-12 isotope.

In 2012, hard disks used about one million atoms to store one bit. In January 2012, IBM researchers announced they had achieved the storage of 1 bit in just 12 atoms using antiferromagnetism and a scanning tunneling microscope with iron and copper atoms. This could mean a practical jump from a 1 TB disk to a 100 TB disk.


Interesting: [Tebibyte](https://en.wikipedia.org/wiki/Tebibyte) | [Gibibyte](https://en.wikipedia.org/wiki/Gibibyte) | [Exbibyte](https://en.wikipedia.org/wiki/Exbibyte) | [Pebibyte](https://en.wikipedia.org/wiki/Pebibyte)

Parent commenter can [toggle NSFW](/message/compose?to=autowikibot&subject=AutoWikibot NSFW toggle&message=%2Btoggle-nsfw+cr9gi2h) or[](#or) [delete](/message/compose?to=autowikibot&subject=AutoWikibot Deletion&message=%2Bdelete+cr9gi2h). Will also delete on comment score of -1 or less. | FAQs | [Mods](http://www.np.reddit.com/r/autowikibot/comments/1x013o/for_moderators_switches_commands_and_css/) | [Magic Words](http://www.np.reddit.com/r/autowikibot/comments/1ux484/ask_wikibot/)

1 points

The difference in size between the two commands is due to gigabyte vs gibibyte. Try googling "750 gb to gib" and you will get 698 ish.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.