any idea?
This post has been edited by Reeson: May 7 2006, 07:46 PM
Q and A anyway to fool computer on a file size?
|
|
May 7 2006, 07:45 PM, updated 20y ago
Show posts by this member only | Post
#1
|
![]() ![]() ![]() ![]()
Senior Member
599 posts Joined: Sep 2004 |
i want to make a 20MB file to be read as let say 100MB in size and only occupy 20MB of storage space
any idea? This post has been edited by Reeson: May 7 2006, 07:46 PM |
|
|
|
|
|
May 7 2006, 07:48 PM
Show posts by this member only | Post
#2
|
![]() ![]()
Junior Member
119 posts Joined: Mar 2006 |
yeah, i wanna noe too!
|
|
|
May 7 2006, 07:53 PM
Show posts by this member only | Post
#3
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,616 posts Joined: Jan 2005 |
dun think its possible..... u want make it larger and at the same time occupy small space.....
|
|
|
May 7 2006, 08:07 PM
Show posts by this member only | Post
#4
|
![]() ![]() ![]()
Junior Member
329 posts Joined: Jan 2006 |
|
|
|
May 7 2006, 08:21 PM
Show posts by this member only | Post
#5
|
|
VIP
11,594 posts Joined: Jan 2003 From: Area 51 |
QUOTE(Reeson @ May 7 2006, 07:45 PM) i want to make a 20MB file to be read as let say 100MB in size and only occupy 20MB of storage space If there's such thing to "fool" the computer, I would have stored all my anime collections in my 256MB flash driveany idea? I would also like to fool my computer than I have 4GB of RAM |
|
|
May 7 2006, 09:49 PM
Show posts by this member only | Post
#6
|
![]() ![]() ![]() ![]()
Senior Member
599 posts Joined: Sep 2004 |
QUOTE(samurai1337 @ May 7 2006, 08:21 PM) If there's such thing to "fool" the computer, I would have stored all my anime collections in my 256MB flash drive LOL! i dont mean like that, you cutey.. I would also like to fool my computer than I have 4GB of RAM its not making a bigger file smaller, but the other way round.. i want to make 20MB file to be read as 100MB and it does not matter whether the file is fake/corrupt/useless whatsoever.. i just need the size trick.. This post has been edited by Reeson: May 7 2006, 09:53 PM |
|
|
|
|
|
May 7 2006, 10:18 PM
Show posts by this member only | Post
#7
|
![]() ![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
4,390 posts Joined: Oct 2004 From: Cheras, Malaysia |
i think it's possible, just that i cant think of any software which can do so. Cant see the point of writting such software too
|
|
|
May 7 2006, 10:37 PM
Show posts by this member only | Post
#8
|
![]() ![]() ![]() ![]() ![]() ![]()
Senior Member
1,705 posts Joined: Nov 2004 |
Just tell us why do you want it to be so. You want to make a virus or something?
We can provide you with alternative solutions. |
|
|
May 7 2006, 10:39 PM
Show posts by this member only | Post
#9
|
![]() ![]() ![]() ![]() ![]()
Senior Member
700 posts Joined: Aug 2005 |
There is no way of doing it unless you change the way how WinXP reads the size of your files & allows it to interprete the special header in your files to fake filesize but since we are touching about modifying closed source proprietor programs so further discussion isn't gonna help. Besides I dont know which file is responsible for process file size on HDD.
|
|
|
May 7 2006, 11:05 PM
|
![]() ![]() ![]() ![]() ![]()
Senior Member
848 posts Joined: Feb 2005 From: everywhere, yet nowhere. |
ntfs sparse file feature can do something like that.
tried it using utorrent, unfinished files shows up larger than they are. |
|
|
May 7 2006, 11:50 PM
|
|
Elite
4,541 posts Joined: Jan 2003 From: BSRPPG51 Access Concentrator |
You have to play with fsutil.exe file to create the file you want. Sparse file the way you want can be easily done if you master how to use fsutil.exe
See attachment for an example I made ith 30-second playing with fsutil.exe. If you want a tutorial on how to do it, wait after the repeat of Manchester United vs Charlton finished later tonight. Attached thumbnail(s) |
|
|
May 8 2006, 12:33 AM
|
![]() ![]() ![]() ![]()
Senior Member
599 posts Joined: Sep 2004 |
QUOTE(asellus @ May 7 2006, 11:50 PM) You have to play with fsutil.exe file to create the file you want. Sparse file the way you want can be easily done if you master how to use fsutil.exe that looks interesting.. does that mean i can freely set the size and size on disk?See attachment for an example I made ith 30-second playing with fsutil.exe. If you want a tutorial on how to do it, wait after the repeat of Manchester United vs Charlton finished later tonight. i'm waiting for the tutorial btw, off topic, RvN was not even on the bench instead he was at home during the match |
|
|
May 8 2006, 02:36 AM
|
|
Elite
4,541 posts Joined: Jan 2003 From: BSRPPG51 Access Concentrator |
The tutorial, as an example, to create a file named music.mp3 that takes only 30MB HDD space but is shown by WIndows Explorer as 100MB in size.
1. Open up Command Prompt, and navigate to where you want the file stored. In this example, it will be C:\ 2. Then at the command prompt, type:- CODE fsutil file createnew music.mp3 102400000 A file named music.mp3 with the size of 97.6MB and also takes 97.6MB of HD space will be created at C:\ Play with the 102400000 to get 100MB. 3. Then, type:- CODE fsutil sparse setflag music.mp3 This will mark music.mp3 as a sparse file. 4. Now to reallocate some space taken by music.mp3 as free space so that it will only takes 30MB of space. Simple calculation shows that 67.6MB of space taken has to be reallocated as free space so that music.mp3 only takes 30MB. 67.6MB = 67600000 30MB = 30000000 Values above are not exactly a correct conversion. Do it yourself. 5. Back to command prompt, type: CODE fsutil sparse setrange music.mp3 0 67600000 This will reallocate a continuous 67.6MB from the start of the music.mp3 file as free space, and now music.mp3 file will only takes around 30MB (well it is actually 33MB - make your own conversion) of HD space. The 0 value above can by anything really, but not exceed 30000000. |
|
|
|
|
|
May 9 2006, 07:43 AM
|
![]() ![]() ![]() ![]() ![]()
Senior Member
982 posts Joined: May 2005 |
now this is wat i call a pro
|
|
|
May 9 2006, 08:18 AM
|
![]() ![]()
Junior Member
75 posts Joined: Apr 2006 |
for some reason my command only works when i cd to my system32 folder.
how do i change it to work at every folder? |
|
|
May 9 2006, 08:44 AM
|
![]() ![]() ![]() ![]() ![]()
Senior Member
913 posts Joined: Jan 2003 From: The Dupes Heaven; Expire: Oct 2077 |
did folder system32 included in the PATH?
|
|
|
May 9 2006, 10:13 AM
|
![]() ![]()
Junior Member
75 posts Joined: Apr 2006 |
sory i dont get u, which PATH
|
|
|
May 9 2006, 10:17 AM
|
|
VIP
11,594 posts Joined: Jan 2003 From: Area 51 |
|
|
|
May 9 2006, 10:48 AM
|
![]() ![]()
Junior Member
75 posts Joined: Apr 2006 |
yes it is in the PATH
|
|
|
May 9 2006, 03:58 PM
|
![]() ![]() ![]()
Junior Member
329 posts Joined: Jan 2006 |
Are you guys sure fsutil will work? If you create 100 MB with 60 MB contains zero or null, it is still 100MB file not 40 MB file i believe.
The only way can do what the thread starter wants is intercepting system calls. However, i only knew how to do it in DOS though. Never tried system programming yet in WIN32. |
| Change to: | 0.0185sec
0.33
6 queries
GZIP Disabled
Time is now: 22nd December 2025 - 04:40 AM |