22-12-2005, 09:47 AM
|
#1 (permalink)
|
|
Distinguished Member
Join Date: Mar 2005
Location: Pune
Posts: 3,783
|
'size' vs. 'size on disk' ???
in 'windows properties' of a xp folder, the figures for
size, and
size on disk
are different.
what is the difference betwn the 2 ?
eg, my c/windows shows :roll:
size as 4.70 gb but
size on disk as 3.35 gb.
anyone can share !?
__________________
> www.TheWindowsClub.com <
= www.WinVistaClub.com =
Microsoft® MVP
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
22-12-2005, 10:02 AM
|
#2 (permalink)
|
|
Human Spambot
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
|
All the files are stored not in terms of their actual size but in terms of their allocated size... Depending on the partition format (FAT16, FAT32, NTFS), the files are allocated a multiple of certain kb. Therefore, size of a file is different from the size allocated for it on the disk. For eg, NTFS uses multiples of 4kb (If I am not wrong). So, even if the actual file is only 100 bytes (many .ini files are very small), it will occuply 4 kb on the disk... If the file is 4.1kb actual size, it will occupy 8kb...
What is strange though is that the size on disk you have shown is less than actual size... Never seen that before...
Arun
|
|
|
22-12-2005, 12:09 PM
|
#3 (permalink)
|
|
In The Zone
Join Date: Jul 2005
Posts: 324
|
Quote:
|
Originally Posted by sakumar79
What is strange though is that the size on disk you have shown is less than actual size... Never seen that before...
Arun
|
I think its due to NTFS compression.
|
|
|
22-12-2005, 01:50 PM
|
#4 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Yes its due to the NTFS file system's Compression.
In FAT if u see the size on disk will exceed the actual size. :roll:
__________________
Harsh J
www.harshj.com
|
|
|
22-12-2005, 01:58 PM
|
#5 (permalink)
|
|
Wise Old Owl
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
|
yeah .. it must be NTFS file-system level compression ..
@anandk
do you have NTFS ?
does your system file show some files in blue colour ?
(those blue files are compressed files)
-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
|
|
|
22-12-2005, 06:32 PM
|
#6 (permalink)
|
|
Distinguished Member
Join Date: Mar 2005
Location: Pune
Posts: 3,783
|
thnx 4 d info sakumar. btw, i have specefied the size/size on disks correctly.
thnx puja, quertymaniac.
yes alibi, i have ntfs. and some files do show in blue lettering.
__________________
> www.TheWindowsClub.com <
= www.WinVistaClub.com =
Microsoft® MVP
|
|
|
22-12-2005, 06:59 PM
|
#7 (permalink)
|
|
Alpha Geek
Join Date: Feb 2005
Posts: 959
|
alib_i,
i too hav some blue files, thou i dint intend to do anything to make it so!  how do i revert it back? is it automatic? the process of compressing necessary files?
/legolas
__________________
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
|
|
|
22-12-2005, 07:01 PM
|
#8 (permalink)
|
|
In Pursuit of "Happyness"
Join Date: May 2005
Location: New Delhi
Posts: 3,432
|
Some system files are automatically compressed via windows.
__________________
Whenever you find yourself on the side of the majority, it is time to pause and reflect. - Mark Twain
|
|
|
22-12-2005, 07:03 PM
|
#9 (permalink)
|
|
SNIST Screamer !!
Join Date: Aug 2005
Location: Hyderabad
Posts: 1,163
|
Quote:
|
Originally Posted by legolas
alib_i,
i too hav some blue files, thou i dint intend to do anything to make it so!  how do i revert it back? is it automatic? the process of compressing necessary files?
/legolas
|
it is a system default to show all NTFS compressed file in blue
u can change it in the folder options
__________________
http://snistscreamers.blogspot.com/
http://insidevoidmain.blogspot.com/
SNIST-Blog: the Voice of SNIST... http://www.snistblog.com/
|
|
|
22-12-2005, 07:08 PM
|
#10 (permalink)
|
|
In The Zone
Join Date: Jul 2005
Posts: 324
|
Quote:
|
Originally Posted by legolas
alib_i,
i too hav some blue files, thou i dint intend to do anything to make it so!  how do i revert it back? is it automatic? the process of compressing necessary files?
/legolas
|
U don't need to revert, NTFS compression is harmless (in fact, good), takes low CPU time, but u can't use NTFS encryption though if they r compressed (u can use 3rd party encryption). U can change option in 'Folder Option' to remove the blue colour, but I think its not necessary.
|
|
|
23-12-2005, 03:57 PM
|
#11 (permalink)
|
|
Wise Old Owl
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
|
legolas,
Leave it as it is ... there's no problem with it.
Windows usually compresses only files which are rarely used.
More reading:
Read Diesel's posts in :: http://forums.aliensoup.com/showthread.php?t=6985
-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
|
|
|
23-12-2005, 09:58 PM
|
#12 (permalink)
|
|
Broken In
Join Date: Jun 2004
Posts: 164
|
I was also worried about this difference in 'size' when I was choosing avatar. BTW which size is important to be below the 10KB limit.
|
|
|
27-12-2005, 01:52 AM
|
#13 (permalink)
|
|
Wise Old Owl
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
|
I think it should be the actual size of the file.
Because mostly PHP users employ the filesize() function to calculate size of file and this function will always return the actual size in bytes.
Most people (and PHPbb too) dont take the pains to finding the 'size on disk' in these kind of cases.
But if you actually want to find the size of file on disk using PHP then you may take a look at shalless's post in THIS page
-----
alibi
__________________
What I've felt, What I've known; Never shined through in what I've shown
Never free, Never me; So I dub thee unforgiven
-Metallica
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|