Ever wondered where the files go when you delete them from your computer or phone? Are they really gone or are they just playing an epic game of hide and seek behind those memory blocks, waiting to be recovered? I’ve got a burning curiosity and an urge to understand what actually happens at the lowest level when we delete a file. So, let’s embark on this journey of discovery… and hopefully, we’ll find out that the files aren’t just off on a tropical vacation!
To understand what happens when a file is deleted and overwritten, and how the storage system handles data at a deeper level, we need to break down how files are stored and managed on a storage device. We’ll also dive into the physical aspects of how bits and bytes are written, erased, and overwritten, and explain why they don’t “pile up” or continue to occupy space after being overwritten.
When you delete a file from your hard drive or SSD, the data isn't immediately erased. Instead, the system removes the file's reference and marks the storage space as available for reuse. On traditional hard drives (HDDs), the data remains as magnetic patterns until it's overwritten by new data. In solid-state drives (SSDs), a TRIM command marks the data for erasure, allowing faster overwriting. While deleted data can sometimes be recovered before it's overwritten, once new data replaces it, the old information is effectively lost. For secure deletion, special tools overwrite the data multiple times to ensure it cannot be restored. Understanding this process is crucial for managing storage and protecting sensitive information.
You can read my details explanation from here - My Blog
Top comments (0)