Article Title: Increase the disk space of virtual machines in LINUX under VMware. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The vmware6.0installation directory contains a command line tool vmware-vdiskmanager.exe program that can be used to modify the disk size of a virtual machine. The method is as follows:
1. Shut down the Virtual Machine. Start the command prompt interface in Windows;
2. Enter the installation directory of VMware (for example, D: \ VMware), enter "vmware-vdiskmanager", and press the Enter key to display instructions on this command.
3. run the following command: vmware-vdiskmanager-x 20 Gb "J: \ VMware Space \ SUSE Linux 64-bit.vmdk" parameter-x to expand the hard disk Space of a virtual machine; the following number refers to the size to be expanded (for example, 20 Gb, indicating the total disk volume, including the original disk capacity). Finally, it refers to the specific file of the Virtual Machine Linux to be operated. If the path name contains spaces, it must be enclosed in double quotation marks.
Wait about 20 minutes. After the command is executed, exit the Command Prompt window and restart VMware. The hard disk space of the VM has changed to 20 GB. During this process, the installed Linux system will not be damaged.
If the original Virtual Machine hard disk has been divided into multiple partitions, then after expanding the hard disk space through the vmware-vdiskmanager.exe, you also need to add partition, formatting in the Virtual Machine System.
4. Start the Virtual Machine System, log on to the system as root (all subsequent steps should be logged on as root), and run fdisk-l on the command line to view details. Because the original space size is directly modified here, we can see that the/dev/sda space is changed to 21.4 GB. If you add a virtual hard disk from the VMware menu, one more/dev/sd ?, Here? Indicates the hard disk number. The first hard disk number is a, that is, sda, the second is sdb, and the third is sdc. In general, if the hard disk has not been added before, the original hard disk is sda, and the virtual hard disk number added through the VMware menu is sdb. If the second hard disk is an IDE hard disk, you should see hdb. If it is a SCSI hard disk, you should see sdb.
Hawkzy :~ # Fdisk-l
Disk/dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0x00067588
Device Boot Start End Blocks Id System
/Dev/sda1 1 95 763056 82 Linux swap/Solaris
/Dev/sda2*96 868 6209122 + 83 Linux
/Dev/sda3 869 1958 8755425 83 Linux
[1] [2] [3] Next page