How can i fool Windows about a file weight?

Goja

Distinguished
Nov 30, 2009
90
0
18,630
How can i make Windows believe (and so show) that a file is smaller or bigger than it is really? I'm sure some people knows how to make such things, but it must be complicated... Thanks in advance :)
 

vvhocare5

Distinguished
Mar 5, 2008
768
0
19,060
You need to read up on NTFS (and FAT) file systems. What you are trying to do is to corrupt the file system. Yes you can do it, but it is not stable.

If you underreport the file size NTFS will recover the unused sectors and the extra data will be lost.
 

Goja

Distinguished
Nov 30, 2009
90
0
18,630
I want to fool it, so it wouldn't tell me there's an error or something... Somewhere on the far internet, an app for doing such thing must exist... Or someone must know how ot do it!
 


What exactly are you try to do here? I cannot imagine why you would want Windows to think a file is bigger/smaller than it actually is, unless it's for nefarious purposes.
 
You can make a file smaller by removing data from it. Open it up in Notepad, delete some stuff from it, then save it again.

You can make a file bigger by adding data to it. Open it up in Notepad, type in a bunch of stuff, then save it again.

Warning - both of these actions may render the file unusable by whatever program normally reads it.
 

Goja

Distinguished
Nov 30, 2009
90
0
18,630
I didn't even know what was a rootkit before now, thank your for upgrading my knowledge :lol: Anyway i will tell you why i need to hide something, what is it, if you can answer. So, do you know how to do that?
 

Chewbert

Distinguished
Feb 24, 2010
26
0
18,530
Ah the poor guy just wants to hide his porn stash. Just stick with archiving and renaming the files to look like temporary files, or maybe creating a separate partition that you can remove drive letter associations from so that it's "invisible" like the rest of us.
 


actually no, learn how to do it yourself, because like people above have said, there is no reason to need to do this unless you need to hide something
 

serbianem

Distinguished
Dec 2, 2010
2
0
18,510
How do you know he didn't find a hidden file on his system (like I just did) which advertised itself as 50Gigabytes smaller than it actually was?
But I guess the point of view here is to not give out information in the remote chance that someone uses it for mischief. Bunch of optimists, all of you. Make the world dumbed down so that the impact of one person with knowledge making trouble is all the worse.
Thanks guys.
 

ricno

Distinguished
Apr 5, 2010
582
0
19,010


There is actually a supported way to do this in NTFS. But if the general opinion in the thread is that there is something strange with the request then I should perhaps not name the feature.
 


9-month old thread, this. Why resurrect it?
 

mibix19

Distinguished




50Gigs smaller than it was!!!! ? What sort of files are 50Gig +
 

ricno

Distinguished
Apr 5, 2010
582
0
19,010


Few files, but I guess he meant that he had a file where someone had attached a hidden 50 GB part, but Windows reported only the smaller size.