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.
 
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Back
Top