当前位置:首页 > 虚拟机 > 正文

虚拟机如何对磁盘分区(怎么在虚拟机中添加硬盘分区)

How to partition a disk under a virtualbox virtual machine

The steps for partitioning a disk under a virtualbox virtual machine are as follows:

Run the virtual machine software and enter the virtual machine system.

Run the partition software in the virtual machine, select the virtual disk that needs to be partitioned, and then click the "Quick Partition" button.

Select the number of partitions, partition table, size, etc., and then click the "OK" button.

Wait a few seconds for the partitioning to complete.

Note: If there are already partitions and data on the virtual disk, the data and files will be lost after repartitioning. Therefore, you need to back up important data before operating.

How to partition the virtual machine to install the system.

The method of installing system partition on a virtual machine is as follows:

1. Search and download "Diskgen" on Baidu, open it and use partition processing on the hard disk.

2. Select partition on the menu and create a new partition, then save and exit. Enter the main interface and select the "PQ Partition" tool. Use PM to format, click to select format to open:

3. Find and select NTFS or FAT32 in the type, any option

< p>

4. Select the NTFS format, click OK to return to the main interface of PQ, and set the main boot disk

5. Then click the Execute button , return to the PQ main interface

6. Until the Ghost system can be installed, enter the installation interface again and choose to install the system to the first partition of the hard disk

7. Finally click the OK button. Click to exit and wait for the system to restart, that is, the partition is successful.

How to partition the disk when installing Linux on a virtual machine
1. The simplest method is to directly use the default partition, because it is a virtual machine and does not require too many settings.
2. Necessary partitioning method. Linux partitions must have two partitions, one is the /root partition and the other is the swap partition.
3. A more regular partitioning method, in addition to the necessary /root partition and swap partition, usually separate boot partition and home partition.
/: The root partition requires at least 8G of space, of course the more the better.
/boot: This partition is the boot partition, usually 100M~200M.
/swap: Swap partition, generally as shown below
/home partition: If you often write code in a Linux virtual machine, 10G is recommended.
Note: There is still a difference between a virtual machine and an actual physical machine. The size of the partition is not a problem for computers now, because the hard disk is now basically calculated in TB.

Win7 virtual machine installation steps

This article will introduce the installation steps of win7 virtual machine, including installation method, installation image, system name, virtual hard disk size, partition, etc.
👨‍💻Select Typical Installation Mode
Select Typical Installation Mode on the Installation Mode panel.
🖼️Select the installation image
Select the installation image and navigate directly to the location where the win7 installation image is downloaded and stored.
🖥️Select win7 system
The system name selected to install is win7, and the 32-bit win7 system is installed. Then take the next step.
💾Set the virtual hard disk size
Set the virtual hard disk size for the win7 system. Because the win7 system itself is relatively large, just use 60G according to the system default. If the hard disk space is insufficient, you can also use more than 30G. can.
🔧Complete the pre-installation preparation tools
Click Finish to complete the pre-installation preparation tools.
🔌Turn on the power of the virtual machine
Turn on the power of the virtual machine and turn on the virtual machine. The operation at this time is basically the same as the computer button. You can press ctrl+alt+enter to maximize the virtual machine, and then operate .
💽Partition the hard disk
Choose to partition the hard disk, because the hard disk is 60G. If not partitioned, there will be only one c drive after installation by default. The hard disk is partitioned. This partition is in the virtual machine. It is done inside, so it will not affect the local system.
📀Clone image installation
Start the clone image installation.
🔄Restart the virtual system
The system is cloned and then automatically restarts.