Increase disk space for LINUX virtual machines in VMware

Source: Internet
Author: User

This article will introduce you to LINUX. Today, we mainly talk about the disk space of LINUX virtual machines. If you seldom hear about the disk space of LINUX virtual machines, it doesn't matter. After reading this article, you will certainly have a lot of GAINS, I hope this article will teach you more things. 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. Run the command to 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 indicates the size of the disk to be expanded, such as 20 Gb, indicating the total disk volume, including the original disk capacity). Finally, it is 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 and log on to the system as the root user in all subsequent steps.) Use fdisk-l to view the information on the command line. 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
After completing the above steps, you will successfully increase the disk space of the LINUX Virtual Machine in VMware.

  1. Operation notes: suse faq modify XWindows resolution
  2. Details for you: Suse module knowledge
  3. Introduction to HP boot Suse 9
  4. Install Suse perfectly and experience Sobe
  5. How to use the Open Suse printer sharing settings

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.