Disk Partitioning and principles

Source: Internet
Author: User

1. Partition the disk before use

2. The partition has a primary partition, extended partition and logical partition, a hard disk can have up to four primary partitions, one of the primary partition with extended partition to replace, a disk can only yo piece of extended partition. 3p+e, (table 3 primary partitions, one extended partition)

3. The extended partition is not available, the logical partition must be partitioned in the extended partition and then formatted (creating the file system) before the data or system can be stored.

File system:

4.SCSI interface Hard Disk/DEV/SDA SD represents a SCSI interface disk, a for the first disk, if the second block is SDB, a disk of different partitions with a number of disks to differentiate partitions, such as SDA1,SDA2, partition number 1-4 can only be left to the primary partition or extended partition, The number of logical partitions is based on the extended partition, so its numbers only start at 5. Note: The extended partition is not numbered.

5.scsi,sas,sata,usb interface Hard disk device name has been/DEV/SD beginning, the number of different hard disks is/DEV/SDA,/DEV/SDB,/dev/sde and so on.

Speed Performance: Ssd>sas>sata

6.linux Common External device file name:

Floppy/dev/fdn (N = 0,1,2 ...)

Optical drive (IDE)/dev/cdrom (/DEV/HDX)

Optical drive (SCSI)/dev/scdn (n=0,1,2 ...)

Hard disk (IDE)/DEV/HDX (X=a,b,c ...)

Hard disk (SCSI)/DEV/SDX (X=a,b,c ...)

U disk/DEV/SDX (X=a,b,c ...)

7.linux Zoning Requirements

(1) Minimum of/and swap two partitions

(2) file system must be created after partitioning

(3) Swap (swap partition) role: virtual memory, swap partition size =1.5* physical memory capacity (file memory is less than 8G)

(4) It is recommended to set up a separate/boot partition (Linux boot partition, the system boot information, such as the Linux kernel, etc., all file size is generally only dozens of m, so the partition refers to 100-200m. )

Disk Partitioning and principles

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.