In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to achieve cfdisk partition operation in CentOS, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.
Warning: if you are installing xp and CentOS dual systems, please do not move the disk partition under centos, otherwise it will cause the boot area to crash and you will not be able to boot both systems. If you have already done it and the system crashes, don't worry, find a PE to repair the boot area of windows, then install CentOS again, choose to go to update when you choose, and then choose to rewrite mbr!
Due to the gradual increase of my ftp, the disadvantage of the smaller partition was gradually revealed, so I had to divide a new partition on the basis of the existing partition. Due to the new contact CentOS, I did not know his way of partition, and I searched the Internet for a long time. All kinds of great gods said to use fdisk, but I tried for a long time and broke the machine!
Finally, it was found that there was also a cfdisk, an interactive character interface partitioning software.
Enter cfdisk, which shows my current disk settings, my virtual machine. I now want to split half from the last logical partition, sda5, which is basically the same as under windows. Please see the screenshot.
Delete the partition first
Press the left and right keys on the keyboard, select new, and confirm
Choose the primary partition or the extended partition. Here I choose the logical extended partition.
Choose the size, unit MB, here must not press the key on the keyboard, otherwise it will return to the first step, remember the above number, that is, the maximum capacity that can be divided, for example, I want to divide this partition into two equal size, just enter 1048 directly. Enter confirmed.
Here, begin or end directly choose begin to start dividing from the partition.
Again, when the second block is finished, select Write to write. Then choose Quite.
Don't worry after you find a mistake, as long as you don't execute Write, you can choose Quite directly without saving and exiting.
All the work is not done, now you can see the new partition here, but not in / etc/dev/, can't mount or anything else, just restart the machine!
If you are not satisfied with the partition format, you can format the partition as ext4 yourself, because the default partition format is ext2.
Mkfs.ext4 / dev/sd5
The above is how to implement cfdisk partition operation in CentOS. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.