Expand the disk capacity of the sda1 partition where the VM Ubuntu14.10 system is located in VMware11

Source: Internet
Author: User
Tags gparted

Expand the disk capacity of the sda1 partition where the VM Ubuntu14.10 system is located in VMware11

1. Introduction to Gparted

GParted (Gnome Partition Editor) is a very compact, self-starting running disc that uses X org, a lightweight Fluxbox window manager, and the latest 2.6 Linux kernel. The GParted hard disk partition tool is useful for system maintenance.

GParted is a very powerful partition tool in Linux. It is similar to 'partition magister' in windows and has similar operations and display. GParted allows you to easily create and delete partitions, adjust the partition size, and move the partition location.

GParted supports multiple common partition formats in Linux, including ext2, ext4, fat, hfs, jfs, reiser4, reiserfs, xfs, and even ntfs. In addition, the official LiveCD and LiveUSB versions of GParted are also provided to facilitate hard disk partitioning without the primary system!

2. Download The Gparted iso Image

Iso image of Gparted:

Http://jaist.dl.sourceforge.net/project/gparted/gparted-live-stable/ or http://sourceforge.net/projects/gparted/files/gparted-live-stable/

The latest version is: 0.21.0-1, that is, to download the gparted-live-0.21.0-1-amd64.iso or gparted-live-0.21.0-1-i586.iso

3. Resize Virtual Machine Hard Disk

1. Resizing through vmware-vdiskmanager.exe

This article aims to expand all sda1 partitions, that is, all partitions of the root file system.

Go to the installation directory of the VMware11 software and find vmware-vdiskmanager.exe.

Go to DOS and execute the following command

Vmware-vdiskmanager-x 200 GB xxxx. vmdk

Follow these steps:

Vmware-vdiskmanager-x 200 GB "D: \ vms \ Ubuntu_14_10 \ ubuntu_14_10.vmdk"

Here, the parameter-x indicates resizing to 200 GB (based on your needs), and xxx. vmdk indicates the hard disk of the virtual machine.

(P.s. If the path contains spaces, enclose the path in double quotation marks)

So far, the expansion of the Virtual Machine hard disk has been completed.

2. Resize through the vmware graphic interface

First, the virtual machine is shut down before you can use the "Disk utility", click "Expand", adjust the hard disk capacity of the virtual machine, and click "OK" to save and exit.

4. Load the Gparted ISO image in the CD/DVD (SATA) of the VM.

In virtual machine settings -- CD/DVD (SATA), hook before "connect at startup" and select the gparted-live-0.21.0-1-amd64.iso image downloaded above, such:

Then enable the virtual machine, when prompted to Press ESC to enter the Boot boot menu quickly Press ESC key, the Boot menu list appears, choose from CD-ROM Driver item as the first boot device to start, such:

Press ENTER

Select 26 (Simplified Chinese)

Select 0

Then, the Gparted partition page is displayed.

5. Use Gparted to merge partitions into sda1

After entering the startup interface of Gparted,

From the above, delete the linux-swap items and extended items in sequence, and then right-click "sda1" to adjust the size of the remaining sda1 and unallocated items, adjust the disk capacity to the appropriate size and reserve 2 GB for swap Zone

Right-click "unallocated" to perform logical partitioning, format the linux-swap, and click "Submit. As follows:

OK. Exit the Gparted startup interface, that is, shut down. Set the CD/DVD (SATA) item to do not start the connection, remove the Gparted image, and restore it to the following:

6. Check whether sda1 is successfully resized in all the system partitions.

Start the VM and run the following command on the terminal:

$ Df-hl

For example, if all the partitions in the system, that is, the capacity of the sda1 disk, have been reached, it indicates success!

OK, Enjoy it !!!

Related Article

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.