
Originally Posted by
durand
Thats ok, I appreciate it. I don't use wubi either but I might have to install it to see what works.
Thanks.
You can resize the root.disk. It's not strictly speaking a resize - you have to create a new bigger one and copy the data across (i.e. to make a 5GB disk 7GB, you need 7GB free space, not 2GB). It might be better to split the /home into a new virtual disk.
The problem with lvpm is that it requires grub-legacy due to the way the transfer to partition part works (or doesn't work anymore, to be precise). The resize part is fairly simple. I've just run a test on it and it works (I made my new.disk 5GB):
Code:
sudo -i
cd /host/ubuntu/disks
dd if=/dev/zero of=new.disk bs=1M count=5000
mkfs.ext4 -F new.disk # use ext4 with new installs on 9.10 or later
mkdir /media/extra
mount -o loop,sync /host/ubuntu/disks/new.disk /media/extra
rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' / /media/extra
umount /media/extra
rmdir /media/extra
exit
#reboot to windows, rename root.disk to root.disk.old and new.disk to root.disk
Caution should be used getting someone to run commands as root or using dd and mkfs - but you could easily put it in a shell script.
Bookmarks