To ensure that our target system boots up successfully after the /root, /usr, and /home data has been migrated. A series of cleanup tasks will need to be performed.
rm -r /mnt/devices/* rm /mnt/dev/dsk/* rm /mnt/dev/rdsk/* rm /mnt/etc/path_to_inst
touch /mnt/etc/path_to_inst drvconfig -r /mnt/devices -p /mnt/etc/path_to_inst devlinks -r /mnt disks -r /mnt tapes -r /mnt ports -r /mnt
cd / tar cf - devices | (cd /mnt/; tar xpf -)
In the earlier section, Target Environment Disk Preparation: Geometry and Partition, we ensured that Target disk geometry and partitions were configured the same way as the Source environment. Proper preparation made this migration exercise straightforward. However, it is best practice to verify the partition table before unmounting the temporary mount points and booting up the target environment.
Unmount the temporary mount points.
umount /mnt/home umount /mnt/usr umount /mnt sync