Re: Harddrive used memory

From: Tim Slattery (Slattery_T_at_bls.gov)
Date: 04/14/04


Date: Wed, 14 Apr 2004 09:01:51 -0400


"Hardy" <anonymous@discussions.microsoft.com> wrote:

>Hi
>
>I have a 120 gig external hard drive which is of course displayed
> as 111 GB in Windows I don't know why but I know that is normal.
> Now the problem.

That's simply the difference between decimal gigabytes (10**9 bytes =
1,000,000,000 bytes) and binary gigabytes (2**30 bytes=1,073,741,824
bytes). Manufacturers quote disk sizes in decimal GB, the software
uses binary GB. 120 (decimal) GB = 111.76 (binary) gigabytes.

>When I check the properties of my drive it says that 99 GB are used.
>But when I click properties of all my folders including recycled,
> system volume information and _restore it tells me all those folders are 62 GB.

Ever heard of slack space? Disk space is allocated in units called
"clusters" or "allocation units". The size of those units is
determined by the file system you're using (FAT32 tends to use bigger
units than NTFS), and by the size of the partition. If you have a
single FAT32 partition covering that entire disk, then the cluster
size would be 32,000 bytes (or maybe 64,000 bytes).

Any file, no matter how small, will occupy at least one cluster. All
files end up wasting some space in their last cluster. The missing
37GB are probably being lost to slack space. (Some goes to control
structures: directories, mapping tables, things that the File System
uses to keep track of what's where.)

-- 
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov


Relevant Pages

  • Re: Finding REALLY hidden files?
    ... The disk storage for a file is allocated in fixed size units called ... This means that if the cluster is 32KB and the file length is 12 times ... but slack space is slightly different than the space ... Virtually all hard disk drives use, at the physical level, a sector ...
    (rec.video.desktop)
  • Re: 10.4.7 Has Swap Memory Usage Gone Up With the Advent of 10.4 for you?
    ... Tom Stiller wrote: ... Finder in Column View says "4KB on disk ", ... Back to an earlier poster's mention of cluster size. ... bitmap, the file system provides a larger ...
    (comp.sys.mac.system)
  • Re: How to "wipe" ALL Mac files slack space?
    ... Differences between sectors, blocks, clusters, and slack space - ... Sectors are the smallest storage units on a disk drive. ... A cluster is kind of like a block, ...
    (comp.sys.mac.system)
  • Re: win xp filesize
    ... "tony" wrote: ... The key phrase is "size on disk". ... system on your hard drive probably has a larger cluster size than the ... file system on your CD. ...
    (microsoft.public.windowsxp.general)
  • [RFC] [PATCH] OCFS2
    ... This is OCFS2, a shared disk cluster file system which we hope will be ... Included in OCFS2 is a small cluster stack. ...
    (Linux-Kernel)