Home >System Tutorial >LINUX >Detailed explanation of the operating steps of the partition tool cfdisk under CentOS
Warning: If you are installing dual systems of xp and CentOS, please do not download the disk partition in centos, otherwise it will cause the boot sector to crash and you will be unable to start both systems. ! ! ! If you have already done this and the system crashes, don't worry, find a PE to repair the Windows boot area, and then install CentOS again. When selecting, choose to update the system, and then choose to rewrite mbr! ! !
As my ftp gradually increased, the disadvantage of the original smaller partition gradually became apparent, and I had to divide a new partition on the basis of the existing partition. Since I was new to CentOS and I didn’t know its partitioning method, I checked online. For a long time, various experts said to use fdisk, but I tried for a long time and the machine was damaged! ! !
Finally, I found out at night that there is another cfdisk, an interactive character interface partitioning software.
Enter cfdisk, which displays my current disk settings and my virtual machine. I now want to divide half of the last logical partition sda5, which is basically the same as the division method under windows. Please see the screenshot.
Delete partition first
Press the left and right keys on the keyboard, select new, and confirm
Select primary partition or extended partition, here I choose logical extended partition
Select the size in MB. Be careful not to press the left and right keys on the keyboard here, otherwise you will return to the first step. Remember the number above is the maximum capacity that can be divided. For example, I want to divide this partition into two. For large ones, just enter 1048 directly. enter to confirm.
Select begin or end here to start dividing from the partition.
Same for the second block. After completion, select Write to write. Then select Quite.
Don’t worry, don’t worry when you find an error. As long as you don’t execute Write, you can exit without saving by directly selecting Quite.
All the work is not over yet. Now you can see the new partition here, but it is not in /etc/dev/. It cannot be mounted or anything else. Just restart the machine! !
If you are not satisfied with the partition format, you can format the partition yourself as ext4, because the default partition format is ext2.
mkfs.ext4 /dev/sd5
The above is the detailed content of Detailed explanation of the operating steps of the partition tool cfdisk under CentOS. For more information, please follow other related articles on the PHP Chinese website!