Click here to Skip to main content
15,914,066 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeRe: CCC 21/5 - you win Pin
Duncan Edwards Jones21-May-18 2:53
professionalDuncan Edwards Jones21-May-18 2:53 
GeneralRe: CCC 21/5 - you win Pin
OriginalGriff21-May-18 2:57
mveOriginalGriff21-May-18 2:57 
QuestionRe: CCC 21/5 - you win Pin
megaadam21-May-18 3:58
professionalmegaadam21-May-18 3:58 
AnswerRe: CCC 21/5 - you win Pin
Duncan Edwards Jones21-May-18 4:07
professionalDuncan Edwards Jones21-May-18 4:07 
GeneralShould I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
swampwiz20-May-18 10:18
swampwiz20-May-18 10:18 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Randor 20-May-18 10:42
professional Randor 20-May-18 10:42 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
kalberts21-May-18 12:06
kalberts21-May-18 12:06 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Randor 21-May-18 12:45
professional Randor 21-May-18 12:45 
Member 7989122 wrote:
That 1K in the MFT is spent in both cases, for the metadata.


You are almost correct.

Any and all files saved on an NTFS partition will result in a 1024 byte MFT entry. So it would be correct to say that all files saved on your NTFS partition have an additional overhead of 1024 bytes for the MFT entry. But if we want to get more technically correct... it *could* result in an additional 2048 bytes if we consider the $MFTMirror. Smile | :)

Member 7989122 wrote:
Furtermore: If the file metatdata requires, say, 400 bytes, there is only 600 bytes left for file data, and a 1K file won't fit in but requires a separate 4K disk page - or whatever the allocation size is for that disk.


Correct, what happens in this case is that the filesystem driver saves the file directly into a cluster. If that cluster happens to be allocated at 16K then you'll have 15K wasted. + 1K for the MFT overhead and a possible entry into the $MFTMirror for another 1K.


Keep in mind that the topic here is 'Why does explorer report different 'Size on Disk' sizes?'

The answer is that explorer looks at NTFS cluster size, and also whether or not that file has been saved into a cluster. It will correctly round up to the cluster size to take into account the wasted space. If the file has not been saved into a disk cluster it reports the size of a single MFT entry (only on NTFS). Explorer does not even consider the $MFTMirror or take that into account.

There are even more caveats... on a regular file saved into a disk cluster... Explorer only reports the size of the disk clusters and does not report the 1K MFT overhead.

Best Wishes,
-David Delaune
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Daniel Pfeffer20-May-18 10:47
professionalDaniel Pfeffer20-May-18 10:47 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
CodeWraith20-May-18 11:49
CodeWraith20-May-18 11:49 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Daniel Pfeffer20-May-18 18:45
professionalDaniel Pfeffer20-May-18 18:45 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
kalberts21-May-18 12:35
kalberts21-May-18 12:35 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Randor 20-May-18 12:05
professional Randor 20-May-18 12:05 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Daniel Pfeffer20-May-18 18:37
professionalDaniel Pfeffer20-May-18 18:37 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Randor 20-May-18 20:56
professional Randor 20-May-18 20:56 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Daniel Pfeffer20-May-18 21:29
professionalDaniel Pfeffer20-May-18 21:29 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
kalberts21-May-18 11:44
kalberts21-May-18 11:44 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Randor 21-May-18 13:05
professional Randor 21-May-18 13:05 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
kalberts21-May-18 12:30
kalberts21-May-18 12:30 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
Daniel Pfeffer21-May-18 20:15
professionalDaniel Pfeffer21-May-18 20:15 
GeneralRe: Should I be concerned if "Size on disk" for directory is different on C: than on external drive? Pin
kalberts21-May-18 11:57
kalberts21-May-18 11:57 
GeneralHow agile are you? Pin
Sander Rossel20-May-18 0:52
professionalSander Rossel20-May-18 0:52 
GeneralRe: How agile are you? Pin
Eddy Vluggen20-May-18 2:15
professionalEddy Vluggen20-May-18 2:15 
GeneralRe: How agile are you? Pin
Sander Rossel20-May-18 8:07
professionalSander Rossel20-May-18 8:07 
GeneralRe: How agile are you? Pin
Munchies_Matt20-May-18 4:46
Munchies_Matt20-May-18 4:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.