[SOLVED] An interesting question about sotrage devices
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.
Every storage device has a capacity. That capacity is defined by how many spaces that the storage device has avalible to store a 1 or a 0 to (aka "bits"), right?
So, for examplle, let's say we have a storage device with 4096 bits. On an 8-bit system, this would mean it has 512 bytes, right? Therefore, I could store a 512-byte text file to it.
On a 32-bit system, that would mean there are 32 bits in a byte. Therefore, the same storage device would only have 128 bytes, right?
On a 64-bit system, there are 64 bits in a byte. The same storage device would have 64 bytes of storage.
So why does my 8 GB flashdrive show up as 8GB on both 32-bit and 64-bit systems? Is there a standard for how many bits are in a byte for storage devices?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
The number of bits in a byte does not change depending upon the OS -- there are always 8 bits in a byte.
What does change from 16 bit OS to 64 bit OS is word size (well, register size dictates this).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.