VirtualBox extended Ubuntu disk space

Source: Internet
Author: User
Tags gparted

Sometimes when we use a VirtualBox virtual machine, when we create a virtual machine, we do not take into account the size of the hard disk, and then we may not have enough disk space.

The following methods can help you expand the storage space for your virtual machine (for example, Ubuntu).

1. In the host machine into the VirtualBox installation directory (usually in C:\Program Files\oracle\virtualbox), execute the following command

>vboxmanage.exe modifyhd "F:\VirtualBox vms\ubuntu 14.10\ubuntu 14.10.vdi" --resize 35840

(Please modify the Red Section yourself.) )

2. Go to Ubuntu virtual machine, download gparted partition editor

>sudo apt-get Update

>sudo Apt-get Install GParted

3. Open GParted, you can see the following interface, the disk has a unpartitioned space, select this unpartitioned space to create a new. (Partition/dev/sda3 is the partition I just created)

4. Mount the new partition. For example, I have mounted the new partition in the/home/android directory.

Add the following configuration by editing the/etc/fstab file

/DEV/SDA3/HOME/ANDROID/EXT4 Defaults 1 2

5. Execute the Mount partition.

>sudo mount-a

VirtualBox extended Ubuntu disk space

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.