How to use Linux partitioning Tools _unix Linux

Source: Internet
Author: User

In the process of learning Linux, installing Linux is the first hurdle for every beginner. In the middle of the process, the biggest confusion is to partition the hard disk. Although the various versions of Linux now offer a friendly graphical interface, many people still feel like they can't do it. The main reason for this is the unclear zoning requirements for Linux, and the most effective partitioning tool-fdisk to use below it. Here are two aspects to explain this problem that bothers us all. Zoning rules for Linux 1. Device management in Linux, each hardware device maps to a system file, which is no exception for IDE or SCSI devices, such as hard drives, optical drives, and so on. Linux assigns a variety of IDE devices to a file made up of HD prefixes, and for a variety of SCSI devices, a file that consists of an SD prefix is assigned. For example, the first IDE device, Linux is defined as HDA; the second IDE device is defined as HDB; SCSI devices should be SDA, SDB, SDC, and so on. 2. The number of partitions to be partitioned must be done for each hardware device, possibly an IDE hard disk or a SCSI hard drive. For each hard drive (IDE or SCSI) device, Linux allocates a sequence number of 1 to 16, which represents the partition number on the hard drive. For example, the first partition of the first IDE hard disk, which is mapped below Linux is hda1, and the second partition is called Hda2. For SCSI hard drives are SDA1, SDB1, and so on. 3. The role of each partition in Linux stipulates that each hard disk device can have a maximum of 4 primary partitions (including extended partitions) constitute, any one extended partition to occupy a primary partition number, that is, on a hard disk, the primary and extended partitions are a total of 4. For earlier DOS and Windows (previous versions of Windows 2000), the system recognizes only one primary partition, and can further refine the partition by increasing the logical disk character (logical partition) on the extended partition. The primary partition is used by the computer to start the operating system, so every operating system startup, or boot, should be hosted on the primary partition. This is the biggest difference between the primary partition and the extended partition and the logical partition. The best example of this is to specify the primary partition when installing the bootloader to boot Linux. Linux requires that the primary partition (or extended partition) occupy the first 4 digits of 1 to 16th code. As an example of the first IDE hard disk, the primary partition (or extended partition) occupies the hda1, Hda2, Hda3, HDA4, and the logical partition takes up 12 numbers from Hda5 to Hda16. As a result, there are a maximum of 16 partitions per hard disk under Linux. For logical partitions, Linux requires that they be built on extended partitions (as is the case on DOS and Windows systems), not on primary partitions. As a result, we can see that extended partitions can provide a more flexible partitioning model, but not as a guide to the operating system. By removing the differences between the various partitions above, we can simply treat them equally.

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.