Please use this thread for discussion regarding
https://help.ubuntu.com/community/Re...licateWubiDisk
Support threads should be posted in normal forums.
Thank you.
Please use this thread for discussion regarding
https://help.ubuntu.com/community/Re...licateWubiDisk
Support threads should be posted in normal forums.
Thank you.
I prefer following version:
(Assuming target size is 10GiB=2621440x4KiB)
Neither dd nor resize2fs, alone, changes the size of the image , so the concatenation part is mandatory.Code:cat /host/ubuntu/disks/root.disk /dev/zero | dd iflag=fullblock bs=4K count=2621440 of=/host/ubuntu/disks/newroot.disk fsck -y -f /host/ubuntu/disks/newroot.disk resize2fs /host/ubuntu/disks/newroot.disk 10G
I've updated the wiki for release 1.6 of the script.
There are no specific changes required to support Ubuntu 12.10, but I've added support for grub-legacy users (original install on Ubuntu 9.04 or earlier), and there's some minor cleanup.
I've also added signed checksums of the scripts so that users can verify them before using.
For the step 5 of manual resize, there's a missing quote(') at the rsync command(at the end of exclude /home)
It didn't worked for me then only I noticed that there's a missing quote and now the rsync works for mersync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/home/*/.cache/gvfs' --exclude '/root/.gvfs' --exclude '/var/lib/lightdm/.gvfs' / /media/newdisk
Why do I have to switch the disk names? if they're copied then they should be identical, right?
Grub boots by searching for a file on any partition named /ubuntu/disks/root.disk. It loads the boot menu directly from inside this file (/boot/grub/grub.cfg), and this boot menu also directly refers to it by name (and partition). By switching the disk names it will naturally start using the new copy. If you don't, it will just keep booting the old one.
Not sure why it wouldn't give you any more disk space... did you make it bigger than the old one?
You don't have to delete the old one.
If you want to delete it, delete it the same way you'd delete any file.
You can copy the root.disk to make a backup - usually I'd do this before some major update (like upgrading to the next release). Then you can just swap it back if something goes wrong. But in general, it's an inefficient way of backing up data because it copies the OS (which can be reinstalled) and even the free space on the virtual disk. So you might have 1 GB of data but you're backing up between 5 and 30 GB of root.disk.
Bookmarks