Windows expansion of the size of Ubuntu virtual machines

Source: Internet
Author: User

Installing the ubuntu,8g partition on the virtual sub-region is not enough, do not wish to reload, increase the VM partition it! back up virtual hard disc files first

VMware comes with the tool: Find the VMware installation directory Vmware-vdiskmanager.exe, double-click can not open the command line under the line to execute.
vmware-vdiskmanager-x 16Gb D:\Ubuntu10\Ubuntu.vmdk
-x Extended partition
16GB Expansion Size
D:\UBUNTU10\UBUNTU.VMDK virtual Hard tray file

To adjust the partition is to add a section after the original partition:
To have 10G, and new points 16-10=6 GB of space out, the original remains unchanged, the data will not be lost.

**************************************************************************
Additional * * *

After adding the partition, Ubuntu is not recognized and requires format to be downloaded.

FDISK/DEV/SDA

A command appears

Command (M for help):

When you enter N, you become the Command (M for help): n then enter, then an option appears

Command Action
L logical (5 or over)
P primary partition (1-4)

Select P, and then appear

Primary partition (1-4):

At this point you need to check which partition number in your partition is not used, open a terminal, and then enter

sudo fdisk-l

My current list is

/dev/sda1

/dev/sda2

/dev/sda3

/dev/sda5

The Sda3 in this is my new partition, which is not normally added to the area, as shown below

/dev/sda1

/dev/sda2

/dev/sda5

But also do not rule out other circumstances, in fact, the purpose is to see from 1, 2, 3, 4 to choose a number that is not used

I didn't use the number 3rd before, so I chose number 3rd.

In primary partition (1-4): After input 3 also namely primary partition (1-4): 3 then enter

Without an error, then it appears again.

Command (M for help):

then enter W

The system can not quickly recognize the new Sda3 so restart, after the start can see if/dev/sda3 exist

Next run the next command

Mkfs.ext3/dev/sda3

To go to the home directory under the Extend file, create a new extend file in the home directory, enter the following command in the terminal

sudo gedit/etc/fstab

Add the following content
/dev/sda3/home/extend ext3 Defaults 1 2

Restart, use the parser to see the new partition size

Windows expansion of the size of Ubuntu virtual machines

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.