Tuning Linux partition size in VMware virtual machines-using gparted

Source: Internet
Author: User
Tags gparted

Virtual machine allocated 50G size of space, recently found not enough to use, so will expand the size of the partition, check several methods are not very good, and later with the help of gparted partition space completed, the tool is simple, convenient, the following simple introduction. Extended partitions are divided into two main steps

Ubuntu merge partitions with gparted http://www.linuxidc.com/Linux/2010-06/26689.htm

Lossless tuning of Linux partitions and NTFS partitions using gparted and Acronis http://www.linuxidc.com/Linux/2010-06/26737.htm

GParted: First aid your hard drive data http://www.linuxidc.com/Linux/2011-02/32525.htm

1) Expansion of virtual hard disk capacity

There is a tool in VMware that is dedicated to managing virtual hard disks, but runs on the command line. This program is vmware-vdiskmanager.exe in the VMware installation directory. Win+r Open cmd Window CD d:\vmware (my VMware installation in D:\vmware directory) run Vmware-vdiskmanager out the following interface

You can see that if you want to expand the virtual hard disk space, you can use the parameter-X (-X <new-capacity>: Expand the disk to the specified capacity) It also has use examples: Ex 4:vmware- Vdiskmanager.exe-x 36Gb MYDISK.VMDK means to expand the capacity of MYDISK.VMDK (virtual hard disk files in the virtual machine storage directory) to 36Gb. Follow this information to extend my virtual hard disk file E:\Red hat linux\red hat linux.vmdk to 70Gb. Type the command d:\vmware>vmware-vdiskmanager-x 70Gb "E:\Red hat linux\red hat linux.vmdk"

Until after 100%, success

Here is the first question (expansion of the virtual hard disk capacity) resolved.

The next question is how to add the extra space to the specified partition.

2) Expand the specified partition

Now you have to use gaprted.

You can go to gparted home download livecd:http://sourceforge.net/projects/gparted/files/gparted/load the ISO file within the VMware Virtual Machine CD drive, VMware Worksta tion-Settings->hardware tab-&GT;CD ROM; Select Connect at power on, use ISO image, select Gparted-livecd-0.3.3-7.i         So file directory. Start VMware WorkStation, click F2 to enter the BIOS settings for the VM to boot from the CD drive, use the left key to select Boot, and then press the-/+ number to top it with Up/down. When finished, press F10 to save the exit. Note that, sometimes, press F2 can not enter the BIOS settings, then the following operation can achieve the same effect after restarting the selection "Gparted", into the Gparted software interface, easy to operate
At this point directly enter select the first item. Then depending on the contents of the disc, there may be some simple queries (such as keyboard area, display mode, etc.), generally speaking directly to the default (I believe a Linux enthusiast is not unfamiliar with these settings)

Because

You must click on the "Apply" button to really let gparted save the changes.



8. Resizing the partition (note that you must not restart the computer/terminate the program at this time.) Be patient and wait for its operation to complete!!! Otherwise it will result in data loss!!! )

Linux partition sizing completeNote: Before resizing the partition, you need to delete the swap partition and the extend partition, and then create a new swap partition after the adjustment is complete. After restarting, use the DF command to view the configuration results.

GParted Details : please click here
GParted : please click here.

Tuning Linux partition size in VMware virtual machines-using gparted

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.