Answer the question
In order to leave comments, you need to log in
How is hard disk recording done?
On HDD and SSD.
The question is not about the basic principles - head hovering, magnetization and SSD transistor memory.
Interested in recording and rewriting.
Is there a clear relationship, the logic of recording and rewriting information?
For example - if we deleted a file from the local drive C and immediately wrote a new file, then the new file will be physically located at the location (at the address) of the remote one? If it is smaller than the remote one, e.g. Who or what decides where to record on the HDD? Or is this process "chaotic"? (the head is over an empty sector - we write faster, there is nothing to wait until it reaches the file / location marked as deleted)
And how is the SSD? If part of the memory is freed there, where will the new information be written to? From the beginning, on any free place "where it fits" or on any free one?
How is hard disk recording done?
Answer the question
In order to leave comments, you need to log in
The file system driver decides first. It is he who distributes the record among clusters - the logical units of the FS. It then instructs the disk to write the cluster to specific logical sectors (LBAs). Well, then the disk decides which physical sectors (or blocks for SSDs) correspond to these logical ones.
For HDDs, this correspondence is usually hard-coded, with the exception of bad sectors, which are mapped according to a special table into backup ones.
The SSD has a current mapping table, which is constantly rebuilt so as to use memory blocks as evenly as possible (by the number of write cycles).
if we deleted a file from the local drive C and immediately wrote a new file, then the new file will be physically located at the location (at the address) of the remote one?
if we deleted a file from the local drive C and immediately wrote a new file, then the new file will be physically located at the location (at the address) of the remote one?No.
Who or what decides where to record on the HDD?File system.
How about an SSD? If part of the memory is freed there, then where will the new information be written?Everything is much more complicated there - everything is decided by the disk controller. First, he evaluates the blocks according to the degree of wear and chooses from the free ones that are the least worn.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question