Understanding of Linux Partitioning

Source: Internet
Author: User

Sometimes it is necessary to partition the hard disk to facilitate the management of the hard disk or to allow multiple file systems or operating systems to be used on a hard disk. The partition of the hard disk is divided into 3 kinds: Primary partition, extended partition, logical partition. Usually, because of the limitations of the computer BIOS and MBR, a hard disk can have up to 4 partitions, and one primary partition can be replaced with an extended partition. One hard disk is known to have an extended partition that allows the user to divide more than one logical partition on an extended partition. Linux under the name of the partition is not the same, in Linux, if it is the IDE hard disk, then the first primary partition named/DEV/HDA1, the second primary partition is/DEV/HDA2, the hard disk has 3 partitions, then the extended partition is/DEV/HDA4, and the first logical partition is/ Dev/had5. If the IDE hard disk has a primary partition and an extended partition, then the extended partition is/dev/hda2, and if it is two primary partitions and one extended partition, the extended partition is/dev/hda3.

In Linux, there is a sentence: everything is file. A user accesses a device file to access hardware, different types of hard disks and interface channels, and has different device names in Linux. These device files are placed in the/dev/directory.

Linux hard disk partition corresponding to the device file, is the hard disk device file name plus partition number composition. For example, the device file name for the first logical partition of the second SCSI hard disk should be/DEV/SDB5. In addition, if some array card controllers are used, such as HP's smart Array card, the hard disk device file name may be similar to/dev/cciss/c0d0, then the second logical partition on this hard disk is/DEV/CCISS/C0D0P6. where C0 represents the first SCSI channel, D0 represents the first logical disk, P6 represents the sixth partition, which is the second logical partition.

Generally used for servers, we use four-point method.

boot partition/boot 100MB

system root Partition/>=20GB

Compiling the installation partition/usr/local >20GB

System swap partition swap physical memory twice times

This article is from the "IT Walker Pine" blog, please be sure to keep this source http://520yatou.blog.51cto.com/6642882/1538495

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.