How to expand the capacity of VirtualBox's virtual disk vdi file (graphic tutorial)

How to expand the capacity of VirtualBox's virtual disk vdi file (graphic tutorial)

Find the installation directory of VirtualBox. There is an executable file in the directory that can be used to expand the capacity: VBoxManage.exe


Start the command window cmd in this directory

My vdi is: Windows 8.1.vdi. I installed it using the command VBoxManage modifyhd Windows 8.1.vdi --resize 25000 to expand the capacity. However, the result is:


The parameter is illegal because my vdi file name is: Windows 8.1.vdi. If you look closely, you can see that there is a space in the middle. However, in reality, I named it like this when I installed the Windows system, so it is not feasible to call the above command. So I tried to remove the space in the middle: VBoxManage modifyhd Windows8.1.vdi --resize 25000. I guess there is an error, but I provide a solution:


Combined with the error, I saw the UUID of Windows 8.1.vdi. Looking at the command format below, we can use UUID to specify our vdi file:


Open VirtualBox and you can see that the capacity has indeed been expanded:


However, when I checked Windows 8.1 in the virtual machine, the capacity of the C: drive was not expanded.


At this time, we still need to complete the last task: use GParted to adjust the partitions of the virtual machine. Download GParted: http://gparted.sourceforge.net/download.php


Use the virtual machine to start this iso file:


After startup, select all defaults (according to the Internet), and press Enter



The last card cannot be started here:


The problem occurred. I restarted several times and it was the same. Finally, I got rid of the online statement: all the startup options were default. On the homepage of the last restart, I selected the second option:



The changes are mainly in these two steps. The subsequent Configuring console-data, language, etc. are all default items. Then you can enter the gparted interface, select the disk to be expanded, right-click -> Resize/Move, and then drag the scroll bar to adjust the capacity.


Finally, select Apply:


Finally, shut down normally and select the original operating system:

After Windows is started, open My Computer and you can see that C: has been expanded.


This is the end of this article about VirtualBox's virtual disk vdi file expansion method (graphic tutorial). For more relevant VirtualBox virtual disk vdi file expansion content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to expand the OSX system disk under VirtualBox

<<:  HTML implementation of a simple calculator with detailed ideas

>>:  Responsive Web Design Learning (1) - Determining the screen size and percentage usage

Recommend

HTML head structure

The following introduces the commonly used head s...

Solution to invalid Nginx cross-domain setting Access-Control-Allow-Origin

nginx version 1.11.3 Using the following configur...

Optimized implementation of count() for large MySQL tables

The following is my judgment based on the data st...

How to run Spring Boot application in Docker

In the past few days, I have studied how to run s...

Implementation of CSS dynamic height transition animation effect

This question originated from a message on Nugget...

Learn to deploy microservices with docker in ten minutes

Since its release in 2013, Docker has been widely...

js to realize the production method of carousel

This article shares the specific code for js to r...

Docker Basic Tutorial: Detailed Explanation of Dockerfile Syntax

Preface Dockerfile is a script interpreted by the...

CSS menu button animation

To write a drop-down menu, click the button. The ...

Detailed tutorial on building a local idea activation server

Preface The blogger uses the idea IDE. Because th...

Detailed explanation of nginx-naxsi whitelist rules

Whitelist rule syntax: BasicRule wl:ID [negative]...

Classification of web page color properties

Classification of color properties Any color can ...

Analysis and solution of MySQL connection throwing Authentication Failed error

[Problem description] On the application side, th...

A complete list of commonly used HTML tags and their characteristics

First of all, you need to know some characteristi...

Summary of various postures of MySQL privilege escalation

Table of contents 1. Write Webshell into outfile ...