Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 03-09-2009, 03:47 AM   #1
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Rep: Reputation: 16
Strange debian 5.0 setup disk allocation units ?


Recently I have installed debian 5.0. Everything went smoothly except disk partition size units (I used lvm, but it doesn't matter). I was unable to use sizes I wanted.
As I understand in Linux partitions begin and end on cylinder boundary so it's not possible to have exact partition size you want, but I think debian setup does worse:
lets say I have exactly 1024Mb partition so debian setup displays it as:
1.1Gb - I get similar numbers by rounding byte number value:
1024Mb = 1024 * 1024 * 1024 = 1073741824 bytes
(if partition is biger than deviation will be biger for example 28Gb partition will be displayed as 30.1Gb)

So if you create partition using debian setup specifying 1024Mb you get:
1024000000 bytes = 976 Mb

Why is that so ?

Old 03-09-2009, 12:42 PM   #2
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Are the sizes measured by 10^x or 2^x? 512M measured in base10 is 524.288M.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Disk Setup? bbennett Linux - Server 3 02-20-2009 09:13 AM
Virtual disk allocation advice requested =dn Linux - Server 3 06-30-2008 09:54 AM
FreeBSD disk space allocation help. LinuxNewbie999 *BSD 1 03-31-2008 02:08 AM
Strange units in conky (KiB, MiB, GiB) chilebiker Linux - Software 1 05-04-2007 12:44 PM
I can see shared units on Windows boxes, but can't see any files within these units emiliofil Linux - Networking 2 01-24-2005 08:13 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:55 AM.

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