How to create Partition in CentOS
It is believed that many inexperienced people have no idea about how to create partition in CentOS. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
1. Disk partition
Basics:
Hard disk classification, MBR, disk partition, disk sector, track, sector
Create Partition under 2.Linux
Fdisk-l
Fdisk/dev/sda
Press m to view help
Press p to view partition information
Press n to create a new partition
Press e to select a new extended partition
Press p to create a new primary partition
Press w to write the changes to disk
Press Q to exit
Create an extended partition for the remaining space. The screenshot is as follows:
Create a new 5G logical partition. The screenshot is as follows:
After the modification is completed, use the ls / dev/sda* command to view the disk device and find that the changes have not been displayed. You need to click partprobe/dev/sda to notify the system to probe the kernel. The screenshot is as follows:
After reading the above, have you mastered how to create partitions in CentOS? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!