Originally Posted by
cello75
Well I am sorry for the inconveniance but I have made a 'special case': Before I tried to migrate my wubi-installation from /dev/sda3 with its mountpoint /media/UBUNTU I managed somehow (...) to copy my home folder from inside wubi-rootdisk to /dev/sda4. I now would like to migrate from above named directories to /dev/sd4 (second partition-in-line on second s-sata-harddrive) and swap to /dev/sdb3 (now after creating and formatting as ext4 partition /dev/sdb4 FOURTH partition-in-line.... ). BUT the move.sh gives out after typing:
ubuntu@ubuntu:~/wubi-move-2.4$ sudo bash wubi-move.sh --root-disk=/media/UBUNTU/ubuntu/disks/root.disk --homedev=dev/sda4 /dev/sdb4 /dev/sdb3
the following strange comment (not findable on internet):
wubi-move.sh: Validating migration source...
wubi-move.sh: Root disk (/media/UBUNTU/ubuntu/disks/root.disk) missing required directories.
wubi-move.sh: If the original release was prior to 9.10 then it can
wubi-move.sh: not be migrated from the root.disk.
wubi-move.sh: Validation of migration source failed
Please, WHAT is: "missing required directories"??? .... in my ubuntu folder on /media/UBUNTU/ there are 3 folders named: disks - install - winboot (in this order) ----> maybe I have to edit move.sh (with gedit, by the way?)
Thank you in advance for reading
BY THE WAY:
my rootdisk is about 31 GB in size and my new ext4 partition 32 GB - and my content of 'disks' is the folder 'boot' and the files: rootdisk and swap. In the 'boot'-folder there is only a folder named 'grub' with nothing inside..
When you migrate from the root.disk, the script checks to make sure that /home and /usr are all present on the root.disk. If not, it tries to mount additional virtual disks to see if it contains these directories. It does this by mounting the root.disk, looking in /etc/fstab and then loading each .disk file it finds. But it has limitations. First, it assumes that the path to the virtual disk in /etc/fstab is /host/ubuntu/disks/, and secondly it expects that the physical virtual disk file is in the same location as the root.disk (i.e. the path specified with --root-disk=)
So, if you have /home mounted from /media/xxx/home.disk then it won't find it; in this case the message you see is "Root disk (<filename>) missing required directories."
The way around this is to migrate from the running Wubi install, which is always the easiest option. Then /home and everything is mounted already. The root.disk migration is generally only required if you're migrating from a backup or you want to migrate over the partition that you had the root.disk on before.
You could probably manually edit the script if you're comfortable doing that. Look in check-source.sh:
Code:
# this code goes through each line in /etc/fstab
# and makes sure the virtual disks are not mounted
# and mountable. It assumes that /host/ubuntu/disks/xxx.disk
# means that xxx.disk is in the same location as the current
# root.disk that whose /etc/fstab contains xxx.disk
while read fDEV fMTPT fTYPE fOPTS fDMP fPASS; do
case "$fMTPT" in
/home|/usr)
disks_path=`echo $fDEV | sed -e "s/\(^\/host\/ubuntu\/disks\/\)\(.*\)/\1/"`
if [ "$disks_path" = "/host/ubuntu/disks/" ]; then
virtual_disk=`echo $fDEV | sed -e "s/\(^\/host\/ubuntu\/disks\/\)\(.*\)/\2/"`
if [ ! -f "$rootdiskpath"$virtual_disk ]; then
error "Root disk contains a reference to: "$virtual_disk""
error "This cannot be found in: "$rootdiskpath""
error "Please fix and retry"
exit_script 1
fi
check_disk_mount "$rootdiskpath"$virtual_disk"\ "
mkdir -p "$root_mount"$fMTPT
mount_virtual_disk "$rootdiskpath"$virtual_disk "$root_mount"$fMTPT
fi
;;
esac
done < "$root_mount"/etc/fstab
}
Bookmarks