LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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 01-02-2013, 06:54 AM   #1
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
fdisk partition size


Hi. I'm a bit confused about something, and was hoping for some clarification. I created a raw image file (a zeroed-out file) and used fdisk to partition it. However, even though it asks me exactly how large I want the partition to be, the actual size of the partition ends up being larger (as reported by fdisk itself). E.g., if I request 100M partition, it ends up being 105M. I'm confused by this because I didn't think that a partition had any kind of "add-on" structure; they are just space on the disk, with start and end locations recorded in the partition table, correct? So why does fdisk need to make my partitions larger than I requested? Or is there something funky here about the way fdisk calculates and reports the size?

Last edited by hydraMax; 01-02-2013 at 06:55 AM.
 
Old 01-02-2013, 07:30 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 759
Blog Entries: 2

Rep: Reputation: 196Reputation: 196
I suspect you are falling victim to binary measurements ( http://en.wikipedia.org/wiki/Binary_prefix ) where
2^20 = 1048576 or about 1.05 * 1000000
 
  


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
[SOLVED] CentOS 6.3 x64 - cannot create a second size-identical partition (fdisk) da1 Linux - General 1 12-23-2012 06:16 PM
Is there a way to partition with fdisk and specify size in MB? Thaidog Linux - General 3 03-19-2009 05:30 AM
unable to specify size for new partition using fdisk fedora_user Linux - Software 3 05-14-2007 11:09 AM
kde and fdisk disagree on a partition size Tortanick Linux - Hardware 2 04-25-2007 06:30 AM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM


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