PartImage is a pretty good tool for clonning computers, however, it may be used for migrating your hard drive.
To upgrade to a new hard drive, which has more space, you will encounter some problems. (I dual boot windows and Gentoo on mine.) I used SysrescueCD which comes with partimage, partclone and ntfsclone. I haven't tried partclone yet. Some gotchas:
- The target partition must be of the same size or bigger
- The partition numbers /dev/sdaX should match to make the job easier. Otherwise you'll have problems with booting linux, however, you can always modify the /etc/fstab file to assign the new device letters.
- Reshuffling partitions may cause other problems. For instance my windows partition was first because it came with the laptop, and my linux partition followed. Since, I use linux more I figured I'd put it first.
- Once you restore a partition from say a 100GB partition into a 200GB parition, the filesystem will assume there's only 100GB.
You need to use GParted and resize the 200GB partition a little and then resize it back to 200GB. It worked fine for both windows and linux. - If you run Windows 7, you will most likely not boot. Here's what I did:
- I installed windows 7 using its DVD. It will create 2 new partitions. One is the boot partition, the other is the OS.
- The used partimage to load the new image into the OS partition.
- Loaded GParted to resize down and the expand back the windows partition.
- Installed grub again
- Changed grub.cfg according to the new drive letters
It all works well.
MeasureIt