Virtual machine Ubuntu New mount point for disk expansion

Source: Internet
Author: User
Tags gparted

Reference:

http://m.blog.csdn.net/blog/pcsxk/38501579

First,VMware to expand the original disk space

This is more intuitive.

1. In the shutdown state, select disk---Utilities, expand

2. Change the "max disk size" to the value you need in the pop-up window [my: 25g->120g]

3. After the extension is complete, VMware will prompt you to manually partition the virtual machine system in order to use the expanded space

Second, start the virtual machine system, partition (GParted)

1, install the free partition tool GParted, execute the following command

sudo Install gparted

2. Start GParted

sudo gparted

Click "Apply Changes"

Power off restart

Third, configuration Fstab to Enable automatic mounting of newly added partitions

1. Create a new directory

mkdir /home/tingpan/myspace

2. Read the new partition's UUID (for the Sda3 created earlier)

ls -l/dev/disk/by-uuid

3. Open the Fstab in root mode

sudo gedit/etc/fstab

4, add the following at the end, please replace the value of the UUID yourself

5. Restart effective

Virtual machine Ubuntu New mount point for disk expansion

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.