About the file on the hard disk

Source: Internet
Author: User
Let's talk about the problem of files on hard disks-general Linux technology-Linux technology and application information. The following is a detailed description. Recently, I began to discuss the underlying issues in the Forum. A friend sent a hard disk boot principle a few days ago. Yesterday, the lovesickness moderator talked about simple file encryption (lovesickness encryption ), today I will talk about the representation of files on hard disks. Because they are not professionals, I am not talking about many terms in professional books, but I hope you can understand them.

For a hard disk, the first N sectors are the boot sectors, and the number N is fixed. Of course, in some new hard disks, N can be other numbers, in this way, the new hard disk has better performance. However, the hard disks we use are rarely used by family users and I cannot remember the names. So here we will only discuss the hard disks we use, which are called MBR hard disks.
The first n sectors (n
I have not thoroughly studied linux partitions (no time). Here we take fat as an example.
The file is in the fat partition. There are only two things: one is the file property value and the other is the file content. The attribute value of the earliest 8.3 naming method file is also fixed. For convenience, it is also called the attribute area, and eight file names are added with three extensions, then there is the file content, such as the creation time and modification time. The current file has exceeded the limit of 8.3 because it can occupy multiple attribute areas. However, if the file name does not fill the attribute area properly, the other files will be empty, because the file content is never recorded in the attribute area. There is also an attribute in the attribute area, that is, whether the slice is available. It is generally unavailable (indicating that the sector has a file) or can be used (indicating that the file is deleted). There are many other problems, such as the sector is broken.
Therefore, the deleted file does not clear the slice where the file is located 0, but modifies the value of "available" for this slice. Data recovery is to find the files that have been changed to "deleted" but remain in the hard disk.
Encryption technology re-computes the binary of a file to generate a new file. If your programming is good and you understand data structures and algorithms, you can try to solve others' encrypted files. (In fact, a lot of encryption software is spam, and it doesn't use algorithms at all. It just modifies some attribute values to make them invisible in the win system)
Another is the data protection software, which can clear all discarded hard disks in binary format, which increases the difficulty of data recovery (not absolute security, experienced recovery experts can recover through superb programming technologies) to protect the privacy of individuals or companies.

Finally, let's talk about the lovesickness encryption method. The effect of this method is the same as that of adding the B parameter to the copy command in win. Both files are output in binary format and then input into a new file. The output sequence of files is crucial.
Cat *. jpg *. txt> *. jpg and cat *. txt *. jpg> *. jpg
First, the jpg file is output, and the new file has the property of jpg, and then the txt file is output first. The new file property belongs to txt, but is finally output to the jpg file name, you can try it. The image cannot be opened. Because the new files are re-generated in binary code in the output order.

Some people want to ask how to check the acacia encryption method in win. There are many ways. For example, someone has returned winhex (sorry, I used a mobile phone to access the Internet and it is not convenient to search back and forth), which is the most powerful, however, let me talk about another software:

Notepad

If you use NotePad to open it, there may be encoding problems, but you can check it.

Last statement: The above was read by m a long time ago. If some statements are inaccurate or incorrect, please notify me in time to avoid mistakes. Many words (such as attribute areas) are not official languages. They are made by myself for ease of understanding. Do not talk to professionals everywhere.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.