Google

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    







My Amazon.com Wish List

Expanding Virtualbox Harddrive

I ran into an interesting issue the other day. My virtualbox harddrive was running out of space and I couldn't figure out how to expand it. Finally, I did the following:

1. Create a new disk using Virtual Disk Manager (in VirtualBox goto File -> Virtual Disk Manager).
2. Download System Rescue CD (http://www.sysresccd.org/Download).
3. Set the new disk image as the second hard disk and the System Rescue CD iso file as it's CD.
4. Boot from the CD.
5. At the command prompt type startx.
6. When X Windows starts, type gparted in the terminal.
7. In gparted select the windows partition and choose copy.
8. Select the second hard disk.
9. Right click on the representation of the disk and click paste
10. Gparted will prompt you for the size of the disk, drag the slider to the max size and click apply.
11. When it's done, right click on the disk and choose Manage Flags, and select Boot.
14. Exit gparted and power off the VM.
15. Change the VM settings to the new bigger disk and deselect the iso as the CD.
16. Boot the VM into your windows install on it's new bigger disk!

It's as simple as that. Go figure!

Comments
Chris's Gravatar Thank you very much! This helped me when I was in a pinch.
# Posted By Chris | 1/1/08 2:57 PM
Guigui's Gravatar Thanks you for the tips, very usefull
# Posted By Guigui | 1/2/08 6:35 AM
David Asorey ￁lvarez's Gravatar Great!
Easy!
Thank you very much!
# Posted By David Asorey ￁lvarez | 3/28/08 6:52 PM
Thom Parkin's Gravatar I am getting a very confusing error.
After 'dragging the slider to the max' and click 'Apply', a dialog complains:
"Partition cannot have sector of size -1"
Why is this happening?
# Posted By Thom Parkin | 4/19/08 12:48 AM