The following operations are all based on a Linux virtual machine (CentOS6.6) on a Win7 64-bit system.
When the hard disk space of the Linux virtual machine is not enough, you can add the hard disk block manually, the process is as follows:
Right-click the virtual machine and tap the "ADD" button:
Select "Hard Disk" and click "Next":
Select "Create a new Virtual disk" and click "Next":
Select "SCSI" and click "Next":
To set the hard disk size, "store disk as a single file", click "Next":
Click "Finish" to add success:
Restart the Linux system.
Using the command fdisk-l, you can view the Linux system hard disk and its partitioning situation.
The new hard drive has no partitions, cannot be used, and requires manual partitioning:
Fdisk/dev/sdb: (assuming that the new drive block is /dev/sdb)
Related Command parameters:
M: Printing parameters Help information
P: Print the current partition table
N: Creating Partitions
E: Extended partition
P: Primary partition
Allocating sectors (memory allocations)
W: Save Exit
Q: Do not save exit
To adjust a partition:
Fdisk/dev/sdb
D: Delete Partition
Linux system fdisk partition