Where Do Deleted Files Go? Shocking!

Share

Have you ever wondered where your “permanently” deleted files go?

When you get a new hard disk, you have to format it before it can receive data but what is the meaning of formatting? Or what happens when you format a disk?

When you format a partition using the GUI (Graphical User Interface) or the “format” command or the good old “Fdisk”, Windows creates a file system which means the disk is ready to accept data.

This file system is just a table which is called FAT (File Allocation Table) or NTFS (New Technology File System). This table will contain names and addresses of files stored on the disk. In other words, every file that you save will have its exact location (physical address) on the hard disk.

When you save or place any file in the disk, Windows creates some numbers representing the sectors (very small parts of the disk) in which the file reside, then place those numbers in the file system table.

When you double-click to open a particular file, Windows takes the file name and checks the table to see the numbers (addresses) of the sectors where the file is located on the hard drive and then it directs the head of the hard disk to move to those sectors and read their contents, after that the file opens.

harddisk_drive
Photo by: tested.com

When you delete a file, Windows removes the numbers (the address of the file) from the the file system table. That means, the deleted file is technically there on the hard disk but it’s location is not known.

The icon (not the contents) representing the file will be placed in Recycle Bin. The reference of the file is removed from the table but the file itself is hiding somewhere on the disk.

The sectors the file occupies will be marked as free (free space), that is why other new files can occupy those sectors.

When you use a recovery software, the software can bring the numbers back and put them in the table, making the file accessible again.

Again, when you delete all files and re-format the disk then you will have “permanently” lost the files because the entire table will be gone, but even after formatting there are some advanced tools that can recreate the table with all its contents, thus recovering all the data.


Share
, ,

Leave a Reply

Your email address will not be published. Required fields are marked *