I’m in the process of putting together a VirtualBox virtual machine for me and my co-workers to use so we can access our Outlook email accounts without rebooting into Windows and so that the web developers can test the pages they work on in IE.
Things were going well with VirtualBox until I realized I didn’t make the size of the disk large enough. I had it set at 5GB, thinking that’d be enough for what we need it for, but apparently not. So I wanted to figure out how to resize the disk without having to go through creating an entirely new one and having to sit through the installation process all over again. I found this post in the VirtualBox forum about it and followed those directions and elaborating on them with some lovely screenshots.
- The first thing you want to do is create a new disk like you would if you were starting over. File -> Virtual Media Manage -> under Hard Disks click new. I’ll avoid explaining that process since I’m assuming you already know it if you’re looking to resize it.
- Download System Rescue CD.
- The next thing you want to do is set it so that the new disk you created is attached to your current virtual machine and change it so the System Rescue CD iso file is mounted. See the screenshots below:
For the CD click the little button next to the drop down list.
Click the add button, and go to wherever you saved the .iso file.
Press select and you’re done with this part.
- Now start the virtual machine and boot it to the CD you mounted. You have to hit enter a couple times, but once you’re prompted type in startx and hit enter.
- When the terminal pops up type in gparted and hit enter.
- Right-click on your ntfs partition and click copy, then select the 2nd disk you created and paste over it.
- When it prompts you for the size of the disk make sure to pull the arrow all the way over to the right so that the
free space followingsays zero and click paste.
- Once you tell it to apply the changes it will take awhile so I suggest getting up and going to do something else. I left work and came back in today to finish this up. I have no idea how long it took.
- When it is finished you need to tell it to use the new disk as the boot partition. To do that right-click on it and go to manage flags and check the boot box then close it.
- Now all you have to do is close out gparted and shut down the virtual machine and change some of the settings from step 3.
After shutting it down what you want to do is go back to step 3 to make your larger HD the primary master, remove (and delete to get that hard drive space back) the old one, and change it back so that you are using the CD drive and not booting off the rescue CD anymore. I wanted my space back since I wasn’t going to be using that smaller one.