Results 1 to 10 of 10

Thread: ~40GB Discrepancy between used and available hard drive space

  1. #1
    Join Date
    Jan 2009
    Beans
    82

    ~40GB Discrepancy between used and available hard drive space

    Yes, I ran searches. Didn't find anything.

    I have a ~200GB partition on my laptop that I share between Windows 7 and Ubuntu 12.04. In order to make space to back up files from another computer I deleted at least 10G of unused movies, files, etc, and that deleted space is not showing up. If I "select all" in the root folder for that partition I get 138.4 GB used of 202, but if I right click on that partition, and go to properties, it shows 175.2 used. The attached photo show the discrepancy between the space listed in "Contents" and the yellow "Used" space. I've emptied the Trash on Ubuntu and Windows multiple times, looked for hidden files, rebooted a few times too.

    Any help?

    Funnily, Windows shows it as a 188GB partition, and Ubuntu shows it as 202.


  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    7,002
    Distro
    Ubuntu

    Re: ~40GB Discrepancy between used and available hard drive space

    Feels like the usual gibibyte versus gigabyte thing.
    One lists kilobytes as 1000 and the other 1024, I think.
    Something like that.

    Also possible contents froze.
    Last edited by deadflowr; June 8th, 2013 at 10:22 PM.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Apr 2006
    Location
    ::1
    Beans
    629
    Distro
    Ubuntu Development Release

    Re: ~40GB Discrepancy between used and available hard drive space

    138.4 GB is the total size of the files in the directory or in this case the partition as it's a mounted partition.

    175.2 GB is the total amount of space used on the partition.

    What type of partition is it? I suspect the discrepancy is due to reserved blocks or file allocation table depending on the partition type.

    Quote Originally Posted by deadflowr View Post
    Feels like the usual gibibyte versus gigabyte thing.
    One lists kilobytes as 1000 and the other 1024, I think.
    Something like that.
    This is all Megabytes as depicted by MB. Megabits are expressed as Mb.
    Last edited by bluenova; June 8th, 2013 at 10:59 PM.

  4. #4
    Join Date
    Jan 2009
    Beans
    82

    Re: ~40GB Discrepancy between used and available hard drive space

    It's an NTFS partition. 1000 vs 1024 isn't going to cause a 40 gig difference on a 200 gig partition, right?

  5. #5
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    3,315
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: ~40GB Discrepancy between used and available hard drive space

    Quote Originally Posted by jjjjeremy View Post
    It's an NTFS partition. 1000 vs 1024 isn't going to cause a 40 gig difference on a 200 gig partition, right?
    1.024^3, because we are talking about gigabytes or gibibytes, wich is 1000^3 or 1024^3 bytes. 188*1.024^3=202, so it matches exactly.

    Edit: This explains the size difference as reported by Ubuntu or Windows.
    Last edited by Impavidus; June 9th, 2013 at 11:03 AM.

  6. #6

    Re: ~40GB Discrepancy between used and available hard drive space

    I think what the OP is meaning is that he has 40 GB of unaccounted space.

    the screenshot shows 138.4 GB of space being used at the top, and in the chart it shows 175.2GB

    is this a network drive, or is it a mounted partition?
    please check out my blog I have a linux tips section

  7. #7
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,077
    Distro
    Xubuntu

    Re: ~40GB Discrepancy between used and available hard drive space

    The 1024 vs 1000 thing explains the difference between the windows and linux reports of the partition size (188 vs 202). Windows can't count, and thinks a billion is 1073741824. I wonder if MS's accountants use that when they report how many billions profit they made to the tax authorities.

    It does not explain the discrepancy between Contents:138GB and Used:175GB. Both reported in the same tool. The figures are derived in different ways. The Used figure is taken from the filesystem itself. The Contents figure is found by summing the sizes of all the files the tool can find.

    One possible cause of the difference might be that there are many small files, where the actual file content is very small but the file has still been allocated a full block or cluster of blocks. In this case, even a 1-byte file makes one or more disk blocks no longer free to be used for storing other files.

    Another possibility is that there are files that the contents scanner was unable to access for some reason. Maybe a corrupt directory entry. Maybe hidden files (I don't know if ntfs can do that). Maybe hidden data in files - I have heard that ntfs can store "alternate" contents for files, and I'm not sure that is handled by linux which doesn't seem to have such a concept. Using windows chkdsk might clean it up a bit.

    Either way, I expect that you will not be able to use more than the 27G the filestsyem says is free.

    P.S.
    As an afterthought, I might be tempted to copy everything off the drive, reformat and copy it back on again, and see what difference that makes.
    Last edited by The Cog; June 9th, 2013 at 12:18 PM. Reason: P.S.

  8. #8
    Join Date
    Jan 2009
    Beans
    82

    Re: ~40GB Discrepancy between used and available hard drive space

    I thought of doing the copy thing. Right now I'm also having other issues related to file transfers, so that's a bit iffy for now. My USB transfers consistently slow down from about 25MB/s to ~7-8MB/s over the life of the transfer, regardless of the size of the transfer as long as the transfer is large enough to trigger the transfer status window. Transferring 200GB the other day took about 6 hours even though the initial 25MB estimate said about an hour.

  9. #9
    Join Date
    Jan 2009
    Beans
    82

    Re: ~40GB Discrepancy between used and available hard drive space

    Quote Originally Posted by localhost8080 View Post
    I think what the OP is meaning is that he has 40 GB of unaccounted space.

    the screenshot shows 138.4 GB of space being used at the top, and in the chart it shows 175.2GB

    is this a network drive, or is it a mounted partition?
    This is a mounted partition, shared between Windows and Ubuntu. If it helps, I think the drive was at about 175GB, then I deleted a bunch of stuff (maybe 20-30 gigs, which is when I noticed the usage discrepancy. I was trying to make a copy of some of my girlfriend's stuff, didn't have enough space, deleted unnecessary media files, no space, or very little space recovered.

    Deleted/unmounted/turned off/reboot in different OS/emptied trash in both OSs over and over again with no avail, in different combinations.

  10. #10

    Re: ~40GB Discrepancy between used and available hard drive space

    Quote Originally Posted by jjjjeremy View Post
    Deleted/unmounted/turned off/reboot in different OS/emptied trash in both OSs over and over again with no avail, in different combinations.
    damn. there go all my suggestions
    please check out my blog I have a linux tips section

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •