Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the difference between linux primary partition and extended partition

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

In this article Xiaobian for you to introduce in detail the "what is the difference between linux main partition and extended partition", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "what is the difference between linux main partition and extended partition" can help you solve your doubts.

Differences: 1, quantity difference, the number of extended partitions can only be one, and there is at least one primary partition, up to four; 2, formatting differences, extended partitions can not be formatted, can only be divided into logical partitions by extended partitions, logical partitions can be formatted, and primary partitions can be formatted directly.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

The difference between linux primary partition and extended partition

Linux stipulates that each hard disk device can be composed of up to four primary partitions (including extended partitions), and any extended partition must occupy a primary partition number, that is, the total number of primary partitions in the hard disk is up to four. For earlier DOS and Windows (versions prior to Windows 2000), only one primary partition was recognized. You can further optimize the partition by adding a logical drive letter (logical partition) to the extended partition.

The function of the primary partition is to use the computer to boot the operating system. Therefore, each operating system boot or bootstrap should be stored on the primary partition. This is the biggest difference between primary partition and extended partition and logical partition. When we specify the boot loader to install and boot Linux, it must be specified on the primary partition, which is the best example.

Linux specifies that the primary partition (or extended partition) occupies the first four numbers from 1 to 16. Take the first IDE hard drive as an example. The primary partition (or extended partition) occupies hda1, hda2, hda3, hda4, while the logical partition occupies 12 digits from hda5 to hda16. Therefore, each hard disk under Linux has a maximum of 16 partitions.

For logical partitions, Linux states that they must be built on extended partitions (as do DOS and Windows systems), not on primary partitions. Therefore, we can see that extended partitions can provide a more flexible partition mode, but cannot be used as an operating system boot.

Because the size of the partition table is only 64 bytes, a maximum of four partition records can be recorded, that is, there can be up to four primary and extended partitions together, but there can only be one extended partition, which is the difference in number. There are extended partitions that cannot be formatted, and logical partitions can only be formatted by extended partitions, while primary partitions can be formatted.

The function of the extended partition is to make up for the deficiency of the partition table, the partition table can only record four sets of data, if you want to divide more than 4 partitions, there must be extended partitions, which are divided (extended) logical partitions. The extended partition is responsible for recording the partition information of the logical partition, so the extended partition itself can not be formatted, and the extended partition is only the carrier of the logical partition, which is the main difference between it and the main partition.

Reading here, this article "what is the difference between linux main partition and extended partition" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report