Hard drive size linux mint

Discussion in 'all things UNIX' started by ellison64, Sep 16, 2015.

  1. ellison64

    ellison64 Registered Member

    Joined:
    Oct 5, 2003
    Posts:
    2,587
    Is it normal that gparted ,disks ,and conky manager shows different sizes for the partitions on my laptop?.What is the reason for the differences?
    thanks
     

    Attached Files:

  2. oliverjia

    oliverjia Registered Member

    Joined:
    Jul 21, 2005
    Posts:
    1,926
    No biggie. Just different ways of calculation from bytes to MB to GB.
     
  3. ellison64

    ellison64 Registered Member

    Joined:
    Oct 5, 2003
    Posts:
    2,587
    Isnt there a difference of 19 gig on partition 3 though?.Seems to be quite a big difference.Gparted shows 251.45 gig whereas disk shows 270 gig and conky managers
    offering i dont really understand at all.
     
  4. J_L

    J_L Registered Member

    Joined:
    Nov 6, 2009
    Posts:
    8,738
    I think they meant 1000 MB = 1 GB vs 1024 MB = 1 GB.
     
  5. mirimir

    mirimir Registered Member

    Joined:
    Oct 1, 2011
    Posts:
    9,252
    The 1024 vs 1000 factor applies at byte to KB, KB to MB, and MB to GB.

    So 1.024^3 = 1.074

    And 1.074 x 251.45 = 270
     
  6. wshrugged

    wshrugged Registered Member

    Joined:
    Jun 12, 2009
    Posts:
    266
    I didn't do the math but the 19 GB difference is likely what @J_L posted. It's been a long-term standards discrepancy --- decimal vs. binary. Explanation here -- http://blog.codinghorror.com/gigabyte-decimal-vs-binary/

    Edit: @mirimir did the math.:thumb:
     
    Last edited: Sep 16, 2015
  7. ellison64

    ellison64 Registered Member

    Joined:
    Oct 5, 2003
    Posts:
    2,587
    Wow I didn’t realize how much difference the few kbs make.The link posted about hd manufactures using the larger of the two calculations is interesting too.Reminds me of audio using rms and pmpo values.
    thanks everyone for explanation
     
  8. Amanda

    Amanda Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    2,115
    Location:
    Brasil
    The good thing is that these days the Kernel actually displays the size as GiB, so it's really easy to create partitions with fdisk BEFORE comencing the install process:
    Code:
    fdisk /dev/sdX
    When you're asked about the ending sector, just say "XG", where X is the number in GiB.
    Code:
    .......
    ending sector (default 981298398):
    your choie: 60G
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.