Does Formatting a Hard Drive Truly Erase All Data?

  • Thread starter Thread starter Chromium
  • Start date Start date
  • Tags Tags
    Computing General
Click For Summary
SUMMARY

Formatting a hard drive does not completely erase data; it primarily removes pointers from the File Allocation Table (FAT), which retains the actual data on the disk until it is overwritten. The FAT contains file names and start cluster numbers, functioning similarly to memory references in programming. When a hard drive is formatted, the entries in the FAT are deleted, but the underlying data remains intact on the magnetic surface until new data is written over it. This process is distinct from a memory leak, where allocated memory is lost without a pointer for deallocation.

PREREQUISITES
  • Understanding of File Allocation Table (FAT) structure
  • Knowledge of hard drive data storage mechanisms
  • Familiarity with memory management concepts in programming
  • Basic comprehension of filesystem operations and data overwriting
NEXT STEPS
  • Research advanced filesystem structures beyond FAT, such as NTFS or ext4
  • Learn about secure data deletion methods and tools like DBAN (Darik's Boot and Nuke)
  • Explore the implications of data recovery techniques after formatting
  • Investigate memory management best practices in programming languages like C or Java
USEFUL FOR

IT professionals, data recovery specialists, software developers, and anyone interested in understanding data storage and deletion processes on hard drives.

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.
 

Similar threads

  • · Replies 35 ·
2
Replies
35
Views
6K
Replies
50
Views
7K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
14
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
7
Views
3K
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
6K
Replies
11
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K