[Linux]-Virtualbox-centos dynamic increase of partition space method

Source: Internet
Author: User

VirtualBox in use, sometimes because of the lack of allocated space caused problems, you can use the following ways to increase the partition space:

First, VirtualBox settings:

1) go to VirtualBox's installation directory to find this command EXE file: Vboxmanage.exe

2) Run command: vboxmanage modifyhd centos_sp.vdi--resize 100000

Resets the virtual machine size to 100G

If you re-mount the existing virtual machine VDI, there will be a problem with the UUID, and the workaround is to use the command:

" F:\VM\CentOS_SP.vdi "

Second, the CentOS setup:

1) Use Fdisk to add space:

fdisk/dev/SDANP3tW

N: New partition, P: Primary partition, 3: Can enter directly, T: also direct return, W: Write

2) Continue the command:

/dev//dev/-L+100g/dev/centos//dev/centos/root

3) View the completed partition space:

DF -hl

Reference article:

Http://serverfault.com/questions/717693/centos-cant-grow-partition

[Linux]-virtualbox-centos dynamically increase the partitioning space method

Related Article

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.