Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys. Is there an easy way to convert MIB and GIB to GB and MB, so I get an exact size that I want like 30GB? It's very confusing with some installers.
Last edited by overkill; 08-01-2021 at 12:03 PM.
Reason: text error
The problem arises because 1000 or 1K is mathematically used, but electronics uses 1024. So 1 Megabyte=1024*1024 and ever multiple is just multiplied by 1024. Gigibytes are a marketing ploy to save tome silicon but it makes very little odds.
Last edited by business_kid; 08-01-2021 at 01:50 PM.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,541
Rep:
Basically, all you need to know is that manufacturers use MB, because you get more of them, than you do with genuine standard computer sizing (MiB), which is 1024 as against 1000 units used by manufacturers - just a marketing ploy.
The problem arises because 1000 or 1K is mathematically used, but electronics uses 1024. So 1 Megabyte=1024*1024 and ever multiple is just multiplied by 1024. Gigibytes are a marketing ploy to save tome silicon but it makes very little odds.
Yea I have done that, but it's still a bit confusing.
4 GB = 3814.7 MIB
4 GB = 3.725290298 GiB
In the above example, for my swap, do I put 3725 GIB or 3814 MIB in the partitioner?
Yea I have done that, but it's still a bit confusing.
4 GB = 3814.7 MIB
4 GB = 3.725290298 GiB
In the above example, for my swap, do I put 3725 GIB or 3814 MIB in the partitioner?
usually none of them. You will tell the first/last sector. That's all. You do not need to know if it was exactly 3.73452345 GB or 3.783456245 GB (or anything else).
In the above example, for my swap, do I put 3725 GIB or 3814 MIB in the partitioner?
1) Don't forget the decimal point: 3814MiB=3.725GiB;
2) For swap size, I'd prefer "round" "binary" numbers anyway, i.e. 4GiB or 4096MiB.¹
________
¹ When dealing with computers, I perceive powers of two rather than powers of ten as round numbers. So e.g. 4096 to me is a nice, perfectly round number, while 4000 not so much. FYI, 1GiB=1024MiB=1048576KiB
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.