Does Formatting a Hard Drive Truly Erase All Data?

  • Thread starter Thread starter Chromium
  • Start date Start date
  • Tags Tags
    Computing General
AI Thread Summary
Formatting a hard drive does not completely erase data; it primarily removes pointers in the File Allocation Table (FAT) that reference files, rather than deleting the actual data stored on the disk. The FAT serves as a directory, containing file names and the starting cluster numbers, which are akin to memory locations. When a drive is formatted, the entries in the FAT are deleted, but the underlying data remains on the magnetic surface until it is overwritten by new data. This process is distinct from a memory leak, which occurs in RAM when allocated memory is no longer accessible due to lost pointers, preventing it from being freed or reused. In both cases, previously stored data can remain until it is explicitly overwritten.
Chromium
Messages
56
Reaction score
0
I've been reading the thread on completely erasing hard drives as well as a bit on the File Allocation Table (i.e. FAT). Apparently formatting your computer does not completely erase your data from the disk. So I have some questions:

1) Does the FAT contain a collection of "pointers" to files? Perhaps it's similar to a reference in Java where it simply tells you where something lives in memory?

2) So formatting your hard drive just erases pointers from the FAT, and doesn't actually delete the file from memory? Isn't that the same as, or at least similar to, a memory leak?

--Jonathan
 
Computer science news on Phys.org
Chromium said:
1) Does the FAT contain a collection of "pointers" to files? Perhaps it's similar to a reference in Java where it simply tells you where something lives in memory?
Sort of - the FAT contains the file name and the start cluster number which is analogous to a memory location. The drive maps that cluster to a particular head/cylinder/sector to get the actual data

2) So formatting your hard drive just erases pointers from the FAT, and doesn't actually delete the file from memory? Isn't that the same as, or at least similar to, a memory leak?
It doesn't delete the data from the magnetic surface of the drive. It just deletes the entry in the FAT. When the OS comes to write more data it will use the next free cluster, which might overwrite previously deleted data. The strategies for cluster reuse get a bit more complex in more modern filesystems.

A memory leak (in memory) occurs when you have marked some memory as 'in use' by allocating it but have lost the pointer that stored where that memory is an so you can't ask for it be deallocated/free'd when you don't need it - not really the same thing.
The leak comes from the fact that you can't allocate that memory for anything else while it is in use.

In fact when you free memory in and ask for some more you might get back memory that contains the previous data, exactly like reusing disk space - since freeing memory doesn't generally set the contents to 0.
 
This week, I saw a documentary done by the French called Les sacrifiés de l'IA, which was presented by a Canadian show Enquête. If you understand French I recommend it. Very eye-opening. I found a similar documentary in English called The Human Cost of AI: Data workers in the Global South. There is also an interview with Milagros Miceli (appearing in both documentaries) on Youtube: I also found a powerpoint presentation by the economist Uma Rani (appearing in the French documentary), AI...
Back
Top