Home > System Tutorial > LINUX > body text

Detailed explanation of the operating steps of the partition tool cfdisk under CentOS

WBOY
Release: 2024-01-14 15:24:06
forward
1338 people have browsed it

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.

Detailed explanation of the operating steps of the partition tool cfdisk under CentOS

Delete partition first

Detailed explanation of the operating steps of the partition tool cfdisk under CentOS

Press the left and right keys on the keyboard, select new, and confirm

Detailed explanation of the operating steps of the partition tool cfdisk under CentOS

Select primary partition or extended partition, here I choose logical extended partition

Detailed explanation of the operating steps of the partition tool cfdisk under CentOS

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.

Detailed explanation of the operating steps of the partition tool cfdisk under CentOS

Select begin or end here to start dividing from the partition.

Detailed explanation of the operating steps of the partition tool cfdisk under CentOS

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!