Linux Disk Management-partitioning, formatting

Source: Internet
Author: User
First, the partition format:
MBR partitioning: Supports up to 4 primary partitions (Primary Partition). For more than 4 partitions, you can reduce the 1 primary partitions, divide the extended partition (Extended Partition), and then divide the logical partition (Logical Partition) on the extended partition.
GPT Partitioning: GPT provides a more flexible disk partitioning mechanism than the commonly used master boot record (MBR) partitioning scheme. Support more than 2Tb of hard disk, can be divided into 128 partitions.
is a GPT partition, the 3rd command can specify a partition format (Mbr=msdos).

Second, partition operation
1. Basic partitioning scheme
1) separate 1 primary partitions and one extended partition, and divide the logical partitions in the extended partition
Divide the first primary partition

Sub-extended partitions

Logical partition (only if an extended partition exists for logical partitioning and there is a maximum of one extended partition)

Enter p to print the current partition condition, W save exit Fdisk partition tool

2) formatting

formatting commands

3) Mount use

2. Low-Memory Swap solution
If this is the current memory usage (assuming that the memory is not enough)

1) Create a partition

2) Modify the partition file system ID

P Print Current partition, W save exit

3) format the swap partition and start the swap partition. Execute free to see the swap memory growth.

4) mount (Swap partition mount point fill Swap, mount the first line can write/DEV/SDC2 can also write the UUID of the partition)

3. Examples of common commands

Linux Disk Management-partitioning, formatting

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.