<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Mirio Togata</title>
        <link>https://paragraph.com/@mirio-togata</link>
        <description>undefined</description>
        <lastBuildDate>Sat, 18 Apr 2026 17:44:55 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[The file you deleted is it actually deleted?]]></title>
            <link>https://paragraph.com/@mirio-togata/the-file-you-deleted-is-it-actually-deleted</link>
            <guid>8xjTE5dv3IKZIrEkawKh</guid>
            <pubDate>Sun, 12 Dec 2021 16:37:50 GMT</pubDate>
            <description><![CDATA[Have you ever deleted an important file by accidents? How does computer&apos;s memories work? How technician support sometimes can retrieve your deleted data? We knew that computers understand things originated from binary digits, 0 and 1. They encode the binary serial somewhere as memories. There are two types of memories including primary memory and secondary memory.Primary Memory (Main memory): It&apos;s a short term memory remembering current activities that we are working on. This type o...]]></description>
            <content:encoded><![CDATA[<figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/71f088c79e31a00088138f1e39ab481010e244637344ff5a45bf046740a5050d.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>Have you ever deleted an important file by accidents? How does computer&apos;s memories work? How technician support sometimes can retrieve your deleted data?</strong></p><p>We knew that computers understand things originated from binary digits, 0 and 1. They encode the binary serial somewhere as memories. There are two types of memories including primary memory and secondary memory.</p><blockquote><p>Primary Memory (Main memory): It&apos;s a short term memory remembering current activities that we are working on. This type of memory needs power to store temporary data (short term). RAM would be an example.</p><p>Secondary Memory: It&apos;s a long term memory that&apos;s used for storing data/information permanently. This type doesn&apos;t need power to store data. Hard Disk would be an example.</p></blockquote><p>In this article, we will talk about secondary memory or permanent memory. How do we register serials of 0 and 1 into physical devices like hard disk and CD-ROM?</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/06e4cc15597912ee6b8e4add88fd2c1f5d8d7835f2109983d0f7717d8a7508fe.jpg" alt="Hard drive components" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Hard drive components</figcaption></figure><p>Data will be registered in the area of “disk”, called platter which is hold by a spindle. Spindle will manage where to keep the data and spin the platter to physical address that computer want to assign data. The actuator will move read/write header to be able to access all of the areas on the disk. So spindle and actuator are working together. Then the header will write 0 or 1 on the platter. The state that we call “writing” is just the change of magnetic state (North/South) on the tiny areas of platter.</p><blockquote><p>The platter is a disk that stores data. Since it is a magnetic surface, bringing magnetic material close to it might cause some changes in data state. Additional it might cause damage to your device and loss of data.</p></blockquote><p>When the data/files have been written. The physical addresses are recorded corresponding to virtual addresses. So now a computer has some cheat sheet to look at where files are stored. Look some things like this:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/1b4ebe3ccbfc00b179c30bb7334fafcbca70c7513502411308a825ac5e56067c.png" alt="Computer cheat sheet: the record of data location. The table records the binary number represented in hexadecimal number. \*\* Note that I just made up the table and the number to explain the concept of computer memories. It&apos;s not exactly this. \*\*" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Computer cheat sheet: the record of data location. The table records the binary number represented in hexadecimal number. \*\* Note that I just made up the table and the number to explain the concept of computer memories. It&apos;s not exactly this. \*\*</figcaption></figure><blockquote><p>Virtual address: The virtual location for computer to remember where the data is.</p><p>Physical address: The location where data is stored on the real disk</p></blockquote><p>As you see, the first file is stored in virtual address: [0x00000000-0x00010000] that corresponding to the physical address: [0x00000000-0x00005000]. And the second file is store in virtual address: [0x00012000-0x00036000] corresponding to the physical address: [0x00006000-0x00005000]. Let assume that you accidentally delete the first file. What computer do is just forget the virtual address of that file. So the memory table will look something like this.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/65876c4155f1dae0f02e46d738489b18c854dfa7a0024f25da2d9be6807e38b1.png" alt="Memory table after deleting the first file." blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Memory table after deleting the first file.</figcaption></figure><p>The computer seems to forget the reference address of the first file. However, data are still there (in physical device). If you want, still can get it back somehow. The binary digits of 0 and 1 are still on the disk ([0x00000000-0x00005000]). But what if a new file is written? In this case, data hasn’t been deleted from the physical device, are there enough room for a new coming files?</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/5a1c448c8550104e1ee23f5ba391677af9065fc4207e843721df70e78ad01a80.png" alt="Memory table after inserting a new file." blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Memory table after inserting a new file.</figcaption></figure><p>The new virtual address has been created [0x00000000-0x00002500] for a new file. There could be a chance that the old physical address has been replaced by the new physical address of a new file. And it really does in this case!! The physical address of [0x0000000-0x00001250] of the old file has been replaced. In this case you can’t get it back.</p><p>Now I hope this article will help you understand better of how computer memory work. “Deleted” means to delete from virtual memories but “To Replace” from the actual devices.</p>]]></content:encoded>
            <author>mirio-togata@newsletter.paragraph.com (Mirio Togata)</author>
        </item>
    </channel>
</rss>