What is a USB flash drive hidden partition?

Source: Internet
Author: User

Now use a USB flash drive to start the installation system is very common, and the boot file of the U disk is generally installed in the hidden partition of the U disk, you can prevent the virus intrusion. Let's take a look at this hidden partition of the U disk in detail now.

In fact, the hidden partition of the U disk is also called UD file system, UD file system is relatively simple. Developers often deal with problems in ways that are simple to program. To understand this, many questions are naturally explained.

1. Do you want to allow file names with spaces?

First declare that we have not carefully examined whether or not to allow the space, I would like to say, even if the space is not allowed, it is natural and reasonable.

Filenames and directory names with spaces are more complex than no spaces.

For example, if you allow a file name with a space, then

Copy A B C

Do you mean to copy the file "a B" to "C" or "a" to "B C"?

Since this is ambiguous, then this convention: the user must add the file name with double quotation marks, such as:

Copy "A B" "C"

This is clear.

But users will complain that my files have no spaces, but also to add quotes, annoying. When displaying a list of files, it is annoying to display so many quotes. More people: I want to put the double quotes itself as part of the special file name, can you support it?

It seems that double quotation marks also have trouble with double quotes.

So what's the simple thing about being a developer? Specify that the file name is not supported in UD the simplest!ud is new, and the author can make the rules of the game.

What do you do if you have to drag in a space? Compromise, change your name and put it in.

Everyone in IE may have experience, when saving Web pages, if the title has a colon, number and other special characters, then some sites will help you to transfer to other legal characters let you save, some sites do not help you to turn, the results save the Times wrong: The file name has illegal characters.

2.0-byte file

Too special, there is no practical significance, if dealing with trouble, do not support forget it.

3. Understanding the Directory of UD

Managing the directory hierarchy is more complicated. Do not support forget it.

But more files, according to multi-level directory management is necessary, how to do?

Get a fake (simulated) multi-level directory to deal with, in fact there is only one directory hierarchy.

You want to put 0pe.gz in the 0PE catalogue? OK, I put this file in the root directory (in fact there is only one directory hierarchy), but the file name is "0pe/0pe." GZ ", note the"/"number you looked at as if it were a directory delimited, in fact, just one of the multiple characters that make up the file name. Then, Fbinttool according to the characteristics of the file name, the tree structure to graphically display the files in UD, so that you look very "layered" feeling, really think UD has a directory level.

In fact, all the files in UD are placed in Higo, at one level, but some filenames have one or more "/" numbers. This word diggers snaking along, manage how simple ah, really get the hierarchy structure, it is more complex. What if you're a developer? You don't want to save something? Even if you have the power to complicate, think of no, the more complex the more error-prone, difficult to maintain, endless ah. Besides, how much is it necessary to be so complicated?

Now you can understand why UD does not support empty directories. That is, if you delete the files in a directory, the directory does not exist.

It's easy to experience these. You right-click on the UD Reagan directory Grldr file in Fbinsttool, rename it to Abc/grldr, you will find that Fbinttool show UD more than an ABC directory, GRLDR ran to the ABC directory.

In fact, GRLDR is still in place, but the name changed to take "/" number, you see GRLDR in the ABC directory, that is fbinttool according to the file name, the same level of files, according to the tree-like display of different levels of structure, cheat you, good point called "simulation", of course, we are also willing to this when.

Because there is no ABC directory in UD, there is only one file named "Abc/grldr", and the directory is attached to the file and is emulated. When you use Fbinttool to delete the Grldr file in the ABC directory, it corresponds to delete the "Abc/grldr" This file, deleted, no file name to abc/the beginning of the files, so the directory of ABC disappeared.

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.