LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-26-2009, 06:14 PM   #1
vofka
LQ Newbie
 
Registered: Jun 2009
Distribution: RHEL-5.2
Posts: 26

Rep: Reputation: 15
Question fdisk partition table representation


Hello! Can anybody give me the answer on the following question:
I have the disk partition size 1G or 1024MB
But when i run the fdisk its receive the following info:
fdisk -l
Disk /dev/hdd: 1073 MB,1073741824 bytes
......
As i understand this is another representation of the 1024 value in another counting system. Please explain me how its calculates, what is it a system?
 
Old 06-26-2009, 06:19 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.16.2
Posts: 1,566
Blog Entries: 13

Rep: Reputation: 178Reputation: 178
1024*1024*1024=1073741824 bytes
It has to do with K standing for kilo, which is 1000 base 10, but 1024 or 2^10 for KB; same with MB for megabytes and GB for gigabytes...

Last edited by mostlyharmless; 06-26-2009 at 06:21 PM.
 
Old 06-26-2009, 08:09 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Kilo to normal people means 10^3 or 1000

Computer people are not normal--they evolved with two toes on each foot, and can only count in base two. But they WANT to be normal, so they tried to get as close as possible. The figured out that 2^9.9658 was VERY close, but then they discovered that they could not make the CPU do non-integer exponentiation. Sadly, they had to settle for 2^10 = 1024.

Life is full of compromises........
 
Old 06-27-2009, 04:20 PM   #4
vofka
LQ Newbie
 
Registered: Jun 2009
Distribution: RHEL-5.2
Posts: 26

Original Poster
Rep: Reputation: 15
I understood! Thank you for reply!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
fdisk - invalid DOS partition table... hjogoo Linux - Hardware 12 01-22-2009 12:08 AM
Hosed partition table with fdisk. Any way to restore from memory? Vanyel Linux - Server 7 10-08-2008 04:06 PM
fdisk will not write partition table winter_wizzerd Slackware 5 01-06-2007 12:08 PM
fdisk said my HD didn't have valid partition table??? bombman Linux - Newbie 6 08-28-2006 12:53 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 03:12 PM


All times are GMT -5. The time now is 12:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration