Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 22-12-2005, 09:47 AM   #1 (permalink)
Distinguished Member
 
anandk's Avatar
 
Join Date: Mar 2005
Location: Pune
Posts: 3,783
Default '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
anandk is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-12-2005, 10:02 AM   #2 (permalink)
Human Spambot
 
Join Date: Nov 2004
Location: Madurai
Posts: 2,349
Default

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
sakumar79 is offline  
Old 22-12-2005, 12:09 PM   #3 (permalink)
In The Zone
 
puja399's Avatar
 
Join Date: Jul 2005
Posts: 324
Default

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.
puja399 is offline  
Old 22-12-2005, 01:50 PM   #4 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default

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
QwertyManiac is offline  
Old 22-12-2005, 01:58 PM   #5 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

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
alib_i is offline  
Old 22-12-2005, 06:32 PM   #6 (permalink)
Distinguished Member
 
anandk's Avatar
 
Join Date: Mar 2005
Location: Pune
Posts: 3,783
Default

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
anandk is offline  
Old 22-12-2005, 06:59 PM   #7 (permalink)
Alpha Geek
 
Join Date: Feb 2005
Posts: 959
Default

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.
legolas is offline  
Old 22-12-2005, 07:01 PM   #8 (permalink)
In Pursuit of "Happyness"
 
kalpik's Avatar
 
Join Date: May 2005
Location: New Delhi
Posts: 3,432
Default

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
kalpik is online now  
Old 22-12-2005, 07:03 PM   #9 (permalink)
SNIST Screamer !!
 
vijay_7287's Avatar
 
Join Date: Aug 2005
Location: Hyderabad
Posts: 1,163
Default

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/
vijay_7287 is offline  
Old 22-12-2005, 07:08 PM   #10 (permalink)
In The Zone
 
puja399's Avatar
 
Join Date: Jul 2005
Posts: 324
Default

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.
puja399 is offline  
Old 23-12-2005, 03:57 PM   #11 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

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
alib_i is offline  
Old 23-12-2005, 09:58 PM   #12 (permalink)
Broken In
 
selva1966's Avatar
 
Join Date: Jun 2004
Posts: 164
Default

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.
selva1966 is offline  
Old 27-12-2005, 01:52 AM   #13 (permalink)
Wise Old Owl
 
alib_i's Avatar
 
Join Date: Jun 2004
Location: omnipresent
Posts: 1,191
Default

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
alib_i is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sujeet
- by ico
- by Tenida
- by gohan89

Advertisement




All times are GMT +5.5. The time now is 10:48 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2