Create Partitions in CentOS

Source: Internet
Author: User
1. basic knowledge about disk partitioning: Hard disk classification, MBR, disk partitioning, disk fan, track, and Sector 2. in Linux, create a partition fdisk & ndash; lfdisk/dev/sda. press m to view the help. press p to view partition information. Press n to create a partition. press e to create a new extended partition. press p

1. disk partition

Basic knowledge:

Hard disk classification, MBR, disk partitioning, fan, track, and sector of the disk

 

2. create partitions in Linux

Fdisk-l

Fdisk/dev/sda

 

View help by m

View partition information by p

Create a partition by n

Press e to create a new extended partition

Create a primary partition by p

Write modifications to the disk by w

Press q to exit

 

Create an extended partition for the remaining space as follows:

 

Create a 5G logical partition as follows:

 

After modification, useLs/dev/sda *Command to view the disk device and find that the changes have not been displayed.Partprobe/dev/sdaThe notification system detects the kernel as follows:

 

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.