Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-02-2013, 07:54 AM   #1
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 07:55 AM.
Old 01-02-2013, 08:30 AM   #2
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 970
Blog Entries: 2

Rep: Reputation: 233Reputation: 233Reputation: 233
I suspect you are falling victim to binary measurements ( ) where
2^20 = 1048576 or about 1.05 * 1000000


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 07:16 PM
Is there a way to partition with fdisk and specify size in MB? Thaidog Linux - General 3 03-19-2009 06:30 AM
unable to specify size for new partition using fdisk fedora_user Linux - Software 3 05-14-2007 12:09 PM
kde and fdisk disagree on a partition size Tortanick Linux - Hardware 2 04-25-2007 07:30 AM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 04:10 AM

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration