Does Formatting a Hard Drive Truly Erase All Data?

In summary, the conversation discusses the concept of completely erasing hard drives and the File Allocation Table (FAT). It is noted that formatting a computer does not completely erase data from the disk. The FAT contains the file name and the start cluster number, similar to a memory location. When formatting a hard drive, the pointers in the FAT are erased but the data on the magnetic surface of the drive is not. This can lead to potential data overwriting in the future. While this may seem similar to a memory leak, it is not exactly the same as a memory leak occurs when the pointer to allocated memory is lost.
  • #1
Chromium
56
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
  • #2
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.
 
  • #3


1) Yes, the FAT does contain a collection of pointers to files. These pointers indicate the location of the file on the hard drive. Think of it as a table of contents for your files.

2) Formatting your hard drive does not actually erase the data from the disk, it simply removes the pointers from the FAT. This means that the data is still physically present on the disk, but the computer no longer knows where to find it. This is not the same as a memory leak, which refers to a situation where memory is allocated but not properly released, leading to a loss of available memory. In the case of formatting a hard drive, the data is still physically present and can potentially be recovered through specialized software.
 

1. What is general computing?

General computing refers to the use of computers and computing technology to perform various tasks, such as data processing, communication, and problem solving. It involves both hardware (physical components of a computer) and software (programs and applications).

2. What are the basic components of a computer?

The basic components of a computer include a central processing unit (CPU), memory, storage, input devices (such as keyboard and mouse), output devices (such as monitor and printer), and a motherboard that connects all of these components.

3. What is the difference between hardware and software?

Hardware refers to the physical components of a computer, such as the processor, memory, and storage devices. Software, on the other hand, refers to the programs and applications that run on the hardware and enable the computer to perform specific tasks.

4. How do I protect my computer from viruses and malware?

To protect your computer from viruses and malware, make sure to have a reliable antivirus software installed and keep it updated regularly. Also, be cautious when opening emails or downloading files from unknown sources, and avoid clicking on suspicious links.

5. What is the cloud and how does it work?

The cloud refers to a network of remote servers that are accessed over the internet to store, manage, and process data. It allows users to access their data and applications from any device with an internet connection. The data is stored on these remote servers, rather than on a local computer, making it easily accessible and shareable.

Similar threads

  • Computing and Technology
2
Replies
35
Views
3K
  • Programming and Computer Science
2
Replies
50
Views
4K
  • Computing and Technology
Replies
14
Views
2K
Replies
14
Views
2K
Replies
7
Views
2K
Replies
2
Views
1K
Replies
1
Views
703
  • Computing and Technology
Replies
10
Views
5K
  • Science and Math Textbooks
Replies
1
Views
923
Replies
15
Views
10K
Back
Top