
Have you ever deleted an important file by accidents? How does computer'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'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.
Secondary Memory: It's a long term memory that's used for storing data/information permanently. This type doesn't need power to store data. Hard Disk would be an example.
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?

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.
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.
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:

Virtual address: The virtual location for computer to remember where the data is.
Physical address: The location where data is stored on the real disk
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.

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?

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.
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.

Have you ever deleted an important file by accidents? How does computer'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'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.
Secondary Memory: It's a long term memory that's used for storing data/information permanently. This type doesn't need power to store data. Hard Disk would be an example.
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?

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.
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.
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:

Virtual address: The virtual location for computer to remember where the data is.
Physical address: The location where data is stored on the real disk
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.

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?

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.
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.
Share Dialog
Share Dialog
Subscribe to Mirio Togata
Subscribe to Mirio Togata
<100 subscribers
<100 subscribers
No activity yet