Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Q and A anyway to fool computer on a file size?

views
     
TSReeson
post May 7 2006, 07:45 PM, updated 20y ago

On my way
****
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 blush.gif
any idea?

This post has been edited by Reeson: May 7 2006, 07:46 PM
No<mans>Land
post May 7 2006, 07:48 PM

Getting Started
**
Junior Member
119 posts

Joined: Mar 2006
yeah, i wanna noe too!
Chartry
post May 7 2006, 07:53 PM

In the mood of love
******
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.....
virtual
post May 7 2006, 08:07 PM

Casual
***
Junior Member
329 posts

Joined: Jan 2006
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  blush.gif
any idea?
*
Why you wanna do that? Mind to tell us? Might have another solution for you.
samurai1337
post May 7 2006, 08:21 PM

@_@
Group Icon
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  blush.gif
any idea?
*
If there's such thing to "fool" the computer, I would have stored all my anime collections in my 256MB flash drive

I would also like to fool my computer than I have 4GB of RAM
TSReeson
post May 7 2006, 09:49 PM

On my way
****
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

I would also like to fool my computer than I have 4GB of RAM
*
LOL! i dont mean like that, you cutey.. laugh.gif
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.. sad.gif

This post has been edited by Reeson: May 7 2006, 09:53 PM
Sky.Live
post May 7 2006, 10:18 PM

Proctected Species
*******
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
blindbox
post May 7 2006, 10:37 PM

Meh
******
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.
strace
post May 7 2006, 10:39 PM

Ayy
*****
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.
trix
post May 7 2006, 11:05 PM

Enthusiast
*****
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.
asellus
post May 7 2006, 11:50 PM

#gompusas
Group Icon
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)
Attached Image
TSReeson
post May 8 2006, 12:33 AM

On my way
****
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

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.
*
that looks interesting.. does that mean i can freely set the size and size on disk?
i'm waiting for the tutorial smile.gif

btw, off topic, RvN was not even on the bench instead he was at home during the match whistling.gif
asellus
post May 8 2006, 02:36 AM

#gompusas
Group Icon
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.

Attached Image

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.

Attached Image
syyang85
post May 9 2006, 07:43 AM

Enthusiast
*****
Senior Member
982 posts

Joined: May 2005
now this is wat i call a pro
chern4ever
post May 9 2006, 08:18 AM

Getting Started
**
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?
hizperion
post May 9 2006, 08:44 AM

Average Bitch
*****
Senior Member
913 posts

Joined: Jan 2003
From: The Dupes Heaven; Expire: Oct 2077



did folder system32 included in the PATH?
chern4ever
post May 9 2006, 10:13 AM

Getting Started
**
Junior Member
75 posts

Joined: Apr 2006
sory i dont get u, which PATH
samurai1337
post May 9 2006, 10:17 AM

@_@
Group Icon
VIP
11,594 posts

Joined: Jan 2003
From: Area 51

QUOTE(chern4ever @ May 9 2006, 10:13 AM)
sory i dont get u, which PATH
*
type "PATH" in command prompt (without the double quotes), and see if "C:\Windows\System32" is one of the entries.
chern4ever
post May 9 2006, 10:48 AM

Getting Started
**
Junior Member
75 posts

Joined: Apr 2006
yes it is in the PATH
virtual
post May 9 2006, 03:58 PM

Casual
***
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.

2 Pages  1 2 >Top
 

Change to:
| Lo-Fi Version
0.0198sec    0.66    6 queries    GZIP Disabled
Time is now: 21st December 2025 - 02:19 PM