LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-04-2014, 11:03 AM   #1
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
An interesting question about sotrage devices


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?
 
Old 05-04-2014, 11:12 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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).
 
1 members found this post helpful.
Old 05-05-2014, 04:21 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I agree. Bits are still bits. Words are different length but the amount of bits remain constant.

No storage is sold as so many words in length.
 
Old 05-05-2014, 04:30 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
A byte is always 8 bits, that never changes, it's the definition of a byte.
 
Old 05-05-2014, 09:18 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
The OP is using wrong terms. A word length of 8,16,32 or 64 is not termed bytes. It is word length. I used to work on a 40 bit word length system.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: New Toys: Interesting Mobile Linux Devices at CES LXer Syndicated Linux News 0 01-12-2010 04:20 AM
Interesting C Question ar1 Programming 2 05-07-2005 10:24 AM
Interesting (My)SQL question rjlee Programming 9 03-07-2005 08:23 AM
Interesting Java question deveraux83 Programming 6 07-08-2004 01:06 PM
One interesting question palanisaravanan Linux - Networking 2 04-21-2004 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 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