8. Redistribute the partition space size of the Linux system in Vmvare

1. Description

Generally, when using the Vmvare virtual machine to create and configure a Linux system, the system memory is set to 4GB by default, and the hard disk size is set to 40GB. However, as more and more space is used, the memory will be insufficient. Need to re-allocate the space size, the specific operation is as follows:

2. Specific steps:

2.1 The first step:

First close the current virtual machine, open the home page, and click the Edit virtual machine settings button, as shown in the figure below: After opening the virtual machine settings page, first select the memory
insert image description here
item on the left page , and change the memory option value of this virtual machine on the right. Yes, as shown in the figure below, if you do not need to change the memory, you can skip this step: After the above operations are completed, select the hard disk option on the left, and then click the expand button on the right , (Note: If the current virtual machine has a snapshot, it is cannot be expanded), open the page for expanding disk capacity, and change the disk size here, as shown in the figure below:
insert image description here

insert image description here

2.2 The second step

After the above operations are completed, the relevant memory of the virtual machine has changed on the surface, but in fact, the virtual machine does not know that its own memory has changed, and the current virtual machine needs to be started for actual space allocation.
After starting the virtual machine, open the terminal and enter the following command to install an auxiliary tool:

sudo apt-get install gparted

After the installation is complete, enter the command:

sudo gparted

Open this auxiliary tool, as shown in the figure below:
insert image description here
Then select one of the partitions, right-click the mouse, and select the Resize/Move option, as shown in the figure below:
insert image description here
In the opened page, drag the left mouse button on the arrow on the right side of the disk strip To change the size of the space, click the Resize button in the lower right corner after the change, as shown in the figure below:
insert image description here
After the above operations are completed, the change of the memory space can be completed.

Guess you like

Origin blog.csdn.net/FY_13781298928/article/details/131913881