bcbc / Wubi-resize

Resize the Wubi virtual disk (root.disk)
https://help.ubuntu.com/community/ResizeandDuplicateWubiDisk
GNU General Public License v2.0
13 stars 7 forks source link

Potential to run out of space on target during copy #1

Closed bcbc closed 13 years ago

bcbc commented 13 years ago

The script excludes partitions mounted under /host and /media, but it doesn't currently check for partitions under other mountpoints. This potentially can result in an out of space error during the rsync copy as it will copy data from these partitions (and they are not considered by the checks that ensure the target partition is big enough).

The script should be changed to monitor for this and reject with a warning to unmount prior to migrating. Note the rsync -x option (one file system) cannot be used as this also excludes separate virtual disks for /home.