Comparison of Disk Partitions In Windows and Linux

Source: Internet
Author: User

Comparison of Disk Partitions In Windows and Linux

In front of this article: it is easier to understand disk partitions in Windows. In Linux, there will be a Mount concept, which is difficult to understand, but it can be compared with Windows, sort them out in a popular way.

==== Body start ====

After the computer disk is initialized, You need to partition it. Due to the MBR Partition Table restrictions, it can be divided into up to four primary partitions. If you want more partitions, it can be divided into three primary partitions and one extended partition. The extended partition is then divided into multiple logical partitions.

Next, if Windows and Linux systems want to access disk partitions, you need to do the following:

1. Windows users want to access

(1) assign a file system type to the partition, for example, set it to FAT16, FAT32, or NTFS.

(2) assign a drive letter to the partition, such as drive D. You can also imagine attaching a partition to the directory of my computer or drive D.

Next, perform operations on the d disk, such as writing a file, in the corresponding disk partition.

2. Linux

(1) Assign the file system type to the partition, for example, set it to ext2 or ext3.

(2) Since we cannot directly access the disk partition, we need to mount the corresponding partition to a directory. In Windows, you can view each partition in the graphic interface (Disk Manager), and then assign a drive letter. However, you cannot see the partition in Linux, but give a name to each partition, it exists as a file, for example (sda1, where sd indicates the disk of the sata interface, hd indicates the disk of the IDE interface, a indicates the first disk, and B if there is another disk; 1 indicates the first primary partition of the disk. 2, 3, 3 indicates 2nd, 3, and 4 partitions. 5 indicates the first logical partition .) Next, you can mount a partition of the disk to a specific directory, for example, Mount sda2 to the/home directory.

Next, perform operations on/home, such as writing files, in the corresponding disk partition.

Similarly, if the computer has another USB flash drive, then:

(1) Windows can access it by assigning a drive letter to it, and its specific devices can be viewed in the Device Manager;

(2) Linux can mount it to the/media Directory for further access, and its specific devices can be found under the/dev directory.

In a word, in Windows, you can understand it without thinking deeply. in Linux, all the things (mouse, hard disk, U disk, process, etc.) are regarded as files one by one, it can also be well understood.

This article permanently updates the link address:

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.