Different in File Size & Size on Disk

Page 2 of 2 FirstFirst 12

  1. Posts : 1,170
    XP Pro SP3 X86 / Win7 Pro X86
       #11

    iUnique said:
    But the prob is, I was moving the file, not copying the file... when I checked back the original hard drive, the file is gone.. but it present in the destination hard drive... have same file size (as what I have remembered)... But I'm getting suspicious about the file size & size on disk... By the way, the file is .iso, when I opened it with PowerISO, I get no error message... It means that there's no prob at all, am I right?

    So, the file is actually normal, right?
    That's very hard to say... If it's an ISO see if PowerISO can extract it without error... merely opening it only verifies the internal directory.

    If you can confirm the file is OK... then the disparity in size and disk usage is not a problem... Simply defragment the disk.
      My Computer


  2. Posts : 13,354
    Windows 7 Professional x64
       #12

    arkhi said:
    EDIT: Considering the power outage, try doing a chkdsk /f and see if it find errors, else you'll have to copy the files all over again.

    -Original post by me:
    Two possibilities: Compression using the default windows .zip interface and sector size. I would go with the latter. It's like this:

    Compression is fairly easy to explain. "Size" dictates what the actual size is, and the "size on disk" dictates how much space it is occupying the hard disk after being squished in to a very small size.

    Sectors are a bit more complicated. Your hard drive is divided in to many, many things. The smallest and most important are the sectors. Think of sectors as honeycombs in a bee's hive. They combine together to form an actual hive of honey.

    Now, Windows 7 has a default sector size of 4KB. That means that for every block of data, it divides it into a 4KB pieces. Now if you have a 6KB file, the first 4KB will occupy sector 1. The next 2KB will occupy sector 2. You cannot add another file on sector 2 since it is already occupied by a file. Considering that, file 1 is actually occupying 8KB even though it is only 6KB.

    To give you an example, I'll show you a screenshot of my PC. My sector size is at 32KB (the bigger, the better in performance :P)


    See how even if it's 1 byte it takes up 32KB? It's because of my sector size.


    That's a loss of 32,767 bytes. Of course, the effect stacks up. Now see what happens when I copy that file 237 times.



    Hopefully that should give you a basic understaning on why there's a big difference on "Size" and "Size on disk".
    Very informative arkhi!

    How could you change the sector size?
      My Computer


  3. Posts : 1,170
    XP Pro SP3 X86 / Win7 Pro X86
       #13

    Jonathan_King said:
    Very informative arkhi!
    How could you change the sector size?
    You cannot change the sector size of the disk that's hard-coded at the factory.
    Currently hard disk sectors are 512 Bytes. The new Advanced format disks will be 4k sectors.

    You CAN change the cluster size (number of sectors per allocation unit) when you format...


    Moreover; larger cluster sizes do NOT give better performance... they simply waste disk space.
      My Computer


  4. Posts : 761
    Windows 2000 5.0 Build 2195
       #14

    CommonTater said:
    Jonathan_King said:
    Very informative arkhi!
    How could you change the sector size?
    You cannot change the sector size of the disk that's hard-coded at the factory.
    Currently hard disk sectors are 512 Bytes. The new Advanced format disks will be 4k sectors.

    You CAN change the cluster size (number of sectors per allocation unit) when you format...


    Moreover; larger cluster sizes do NOT give better performance... they simply waste disk space.
    Oops, forgot I confused clusters with sectors. Anyway, they DO increase performance, more especially on a setup with huge files. I believe the most should be at 32k as 64k would be too much.

    @Jonathan_King
    You have to do it at initial setup via command prompt with diskpart or "format /a:32k"
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:57.
Find Us