Use Windows to describe Linux partitions and mount points

Source: Internet
Author: User

Before introducing Linux partitions and mount points, I would like to introduce a Windows example, which is familiar to all Windows users. I will use this example to illustrate what Linux partitions and mount points are.

1. deleted partitions

In WinPE, I divide a hard disk into a primary partition and four logical partitions. The primary partition assigns drive letter C, and the four logical partitions do not assign drive letter:

What will happen? The result is that on my computer, you can only see one drive C, and the other four are missing:

 

2. Load partitions into folders

Next, I created four folders in drive C: boot, home, user, and tmp:

Open disk management, and mount the first logical partition to a blank NTFS folder (C: \ boot) in the following steps ):

Then, follow the same steps above to load the second logical partition into the C: \ home folder and the third logical partition into the C: \ user folder.

 

3. Is there any change?

What will happen? Opening Drive C does not seem to have any changes:

Open the boot folder and create a txt file, as if everything is still normal:

Open disk management, we assign a drive letter D to the first logical drive, and go to my computer to open drive D:

Isn't txt in the C: \ boot folder? How did I get to drive D? Go to C: \ boot and check that the txt file is still in progress. Modify it and save it. Then, go to D: \ mzwu.com.txt and modify it!

What did you think? Yes, Open C: \ boot, and actually open the D disk. In other words, C: \ boot is the D disk portal, and so on. home is the second logical partition portal, the user is the third logical partition entry.

Let's take a look at the changes in the attributes of the C: \ boot folder before and after loading the partition into C: \ boot:

 

4. Linux partitions and mount points

In Linux, mounting partitions to a mount point is the same as mounting disk partitions to a blank NTFS folder in Windows. The Linux root directory is the upper C disk. The difference is that Windows can assign drive letters to other partitions, but Linux does not. A mount point is a folder. When a partition is mounted to a mount point, the mount point becomes the partition entry. Mount Points without partitions use the space in the root directory. partitions not mounted to the mount point cannot be accessed, for example, the fourth logical partition above.

 

Http://www.chinaz.com/server/2010/1110/142311.shtml

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.