To
enlarge the size of the virtual disk that you use in VirtualBox is
necessary creating a new virtual disk with bigger size and then copy
into the new disk the contents of the old virtual disk so as to keep
all configurations and the sw installed.
To make these changes follow the instructions below.
Download the
SystemRescueCd-x86-1.5.6.iso linux distribution (live-cd) is very small
but also contains GParted we will use later.
Some links for take SystemRescueCd-x86-1.5.6.iso are listed below:
In your virtual machine make sure
that the sequence of boot is:
CD/DVD
and then the Hard Drive.
Change your CD/DVD drive to point to
SystemRescueCd-x86-1.5.6.iso and add your new Virtual Disk, in my case is NewHardDisk1.vdi, see (Fig.1)
Turn
on your VirtualBox
and if you did everything correctly, you will see a menu of the live-cd
from which to launch the graphical version, the menu item n.5 (Fig. 2).
If appears a command prompt type: startx.
When
your live-cd will be running, in the command window type: gparted (Fig3)
From
the graph menu that appears select
(top right) your new HD
(/dev/sdb 50.00GiB) and then press on: Device
and then click Create Partition
Table... (Fig. 4).
Now
click on Partition and then NEW (Fig. 5).
Now go to Edit and click on Apply All Operations in order to
apply the changes.
Now go to Edit and click on Apply All Operations
Now wait patiently for the end of
copy.
When the copy is
finished, press the right mouse button on the disk and select "Manage Flags" and set the flag to BOOT.
This serves to indicate that the disc is a bootable, Fig.9 and Fig.10
Exit from GParted and turn off your virtual machine
Fig.11 and Fig.12.
Fig.11
Ricordatevi
che per riavere il puntatore del mouse dovete premere il tasto Ctrl quello di detra.
Fig.12
Change
the settings of your virtual machine so that it has again a single disc
(select the largest), uncheck the ISO image from inside the CD/DVD and
reset the CD/DVD on HW-CD/DVD on
your PC (in my case MATSHITA UJ-822Da).
Restart your virtual machine that now has a larger HD (Fig. 13).
Fig.13