Increase File Size: A Guy I Knew

  • Thread starter Thread starter anahata
  • Start date Start date
  • Tags Tags
    File Increasing
AI Thread Summary
Increasing the size of a file without affecting the actual disk space can be achieved through methods like creating sparse files or using compression techniques. For instance, a file originally sized at 200KB can be manipulated to display as 2MB while still occupying only 200KB on disk. This discrepancy arises from the difference between the reported file size and the actual disk usage, particularly in file systems like NTFS, which supports real-time compression. Additionally, altering the Master File Table (MFT) in NTFS or modifying directory table entries in FAT file systems can allow for the manipulation of file size attributes. However, such modifications typically require specialized disk editing software and cannot be performed at the operating system level.
anahata
Messages
2
Reaction score
0
Anyone know how to increase the size of a file, without actually increasing the space occupied on disk. I knew a guy who did this.
 
Computer science news on Phys.org
anahata said:
Anyone know how to increase the size of a file, without actually increasing the space occupied on disk. I knew a guy who did this.
Compression?

If you started with a 100K file, you could compress it (say, using zip) to, say, 1/10th its uncompressed size. This means you could increase the original file to 1M, then compress it so that it still took up only 100K on disk.
 
What it comes to be like this,
say the file size is 200kb, he somehow made the file size attribute ,say 2MB without changing the space on disk, ie, it still costs just 200kb disk space, but for all other purposes it acts like a 2MB file.
For example, wen uploading the file etc, it the properties will be displayed as 2MB.
 
anahata said:
say the file size is 200kb, he somehow made the file size attribute ,say 2MB
Um, are you sure it wasn't a 2000kb file (which is a 2MB file?)

Google says the answer is to either create sparse files or do a compression trick.
 
anahata said:
What it comes to be like this,
say the file size is 200kb, he somehow made the file size attribute ,say 2MB without changing the space on disk, ie, it still costs just 200kb disk space, but for all other purposes it acts like a 2MB file.
For example, wen uploading the file etc, it the properties will be displayed as 2MB.

It happens in NTFS file system (not sure if this feature is available a Linux file system...need to check that out). It has a feature to compress the files in real time demoting it's already demoted performance in some systems.

Cause of this the "size of file" and "size of file on disk" are different.

But your friend did something opposite. I think this might be possible by tampering the default MFT.
 
No idea about NTFS, but on FAT each file is described by an entry in directory table - one of the fields there is the file size. Modify just these four bytes and file will be reported as larger (or smaller) then it is in reality. It can't be done on the OS level, but any disk editing software able to deal with the disk on the sector level will do.
 
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top