Then use Gparted in the guests CD to boot and increase the partition.
Originally I created a Windows XP Partition of 10GB when I installed it as a guest on my Linux system. Quickly, I realized I needed more space. I wont bore you with the details of my search for a way to do this. This is the method I used to increase my Windows XP Partion size.
Tools Required :
- A Disk Imaging Program
- Patience
- BACK UP YOUR DATA
- Install Self Image on your Windows XP Guest.
- Shut Down your Windows XP Guest.
- Create another Virtual Disk to the size you want.
- Attach your newly created Virtual Disk to your Windows XP Guest.
- Boot back into Windows XP Guest.
Windows will install the new drive and ask you to reboot. - Format the new Virtual Disk in NTFS format.
- Start up Self Image (or your Disk Imaging Program of choice).
- For Input choose Drive.
- For Input Location select the harddisk with the lowest number(entire disk), as this is your original Windows XP Guest Virtual Disk.
In my case it was: \Device\Harddisk0 (entire disk)
**MAKE SURE YOU SELECT THE ONE WITH (entire disk) OR IT WON'T WORK.** - Leave Processing at None.
- For Output choose Drive.
- For Output Location select the harddisk with the highest number(entire disk) as this is your new Windows XP Guest Virtual Disk.
In my case it was: \Device\Harddisk1 (entire disk)
**MAKE SURE YOU SELECT THE ONE WITH (entire disk) OR IT WON'T WORK.** - Click Start.
INTERLUDE: At this point, depending on the size of your original Virtual Disk and your computer, you may want to find something else to temporarily occupy your time with. - Once the imaging is done, click Exit.
- Shutdown your Windows XP Guest.
- In Virtual Box Deselect your original Windows XP Guest Virtual Disk and make the new Windows XP Guest your Primary Virtual Disk. **Do not delete the original Virtual Disk just yet.
- Boot into your new Windows XP Guest Virtual Disk.
- Windows will scan the new Virtual Disk and then reboot.
- Open your command prompt: START MENU - RUN - TYPE COMMAND - CLICK OK
- Type diskpart.exe
- Type select volume n where n is the number to your Virtual Disk.
- Type extend and hit Enter.
Windows will extend your partion to the FULL amount of the new partition as prior to this command your C:\ drive is still the size of the original Windows XP Virtual Disk. - Type exit and reboot your Windows XP Virtual Guest.