In other words, you're using Wubi, right? As far as I know, it is currently not possible to resize a Wubi installation of Ubuntu 10.04 or 10.10.
What you can do is add another virtual disk and mount it on /home or /srv, wherever you need room. There are instructions in the Wubi guide. In a nutshell: download the wubi-add-virtual-disk script, and run the following command in a terminal (the number is the size of the new virtual disk):
sudo sh wubi-add-virtual-disk /srv 20000
I recommend moving your installation to a real partition. It'll be less hassle in the long term. In your situation, the route I recommend is:
- Boot an Ubuntu 10.10 installation CD/USB, and perform a quick installation on a separate partition. Don't bother configuring anything.
Boot your existing Wubi installation. Mount your new direct-to-partition installation. Let's call the mount point /media/new. Open a terminal and run the following commands to overwrite the new partition with your existing data from the Wubi installation, and set up the bootloader for the new partition.
cd /media/new
cp etc/fstab /var/tmp/fstab.new
rm -rf *
sudo cp -ax / .
chroot .
update-grub
grub-install /dev/sda
- Open both
/media/new/etc/fstab and /var/tmp/fstab.new in an editor. In each file, there is a line with a single / in the second column. Replace the line in /media/new/etc/fstab with the one from /var/tmp/fstab.new.
- Reboot. You should now be in the new installation. Make sure everything is ok, then you can remove the Wubi files on the Windows partition.
Keep a bootable Ubuntu CD/USB at hand, in case something goes wrong.
Whatever you do, make backups. Making backups is the only way not to lose data.