In the following howto’s, <image file> should be replaced with a reference to a specific .img file.
First, make sure that the image file is not already mounted and is not already running as a xen guest. The following commands increase an image file to 2.5GB. Backup the image before attempting this.
You may then boot or mount the image to confirm the increased size. The e2fsck checks in this howto are not strictly necessary.
Mount the img file using the above howto. Assuming the destination partition is mounted at /mnt/dest, execute the following:
You will then be able to boot the filesystem using the partition instead of the image file, which should provide better performance. You will need to update the *.xen.cfg file to reference the partition instead of the img file (the disk parameter will need to change, see the Xen Manual). Also, remember to unmount partitions or img files before booting a xen guest from them!