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.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
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