Wednesday, January 03, 2007

Ghosting two hardrives on a laptop

Steps to Ghost a hard drive from the laptop's primary hard drive (running Windows XP) to a hard drive connected through USB that worked for me.

1. Boot up Windows and plug your unpartitioned new hard drive. (If you've already partitioned your new hard drive, jump to Step 4).
2. Partition your new hard drive using the disk management utility available in Windows. (Right click My Computer -> Manage -> Disk Management) Preferable partition the new drive the same as your old one or with larger partitions, or at least to partitions that can hold the data on your old drive.
3. Shutdown your laptop.
4. Get yourself a Norton Ghost 10.0 bootable CD.
5. Plug the new hard drive through USB
6. Boot up the laptop using the CD and it will load up the Norton OS which supports your USB drive as well, without loading up Windows.
7. Use the option under the menu to ghost legacy Ghost images.
8. Use the option under this to copy from one partition to the other.
9. Choose the original disk and the partition you want to copy and then the destination disk and partition and confirm it, and it will go through.
10. Repeat the process for all the partitions you want to ghost. The whole process might take about 1 hour based on the size of your partitions.
11. Shutdown your laptop and remove the old disk and plug in the new one.
12. Get yourself a bootable Windows 98 diskette (This is a real saviour, you should always have one around). Boot up using the floppy and go to FDISK and setup your primary partition as the ACTIVE partition.
12. Restart your computer and Windows XP should load. If when you login, it automatically logs out then you have got a problem, because XP keeps track of partitions and if your partition sizes have changed XP can't load up properly.
13. Here you have to use the saviour again, boot up your computer with the bootable diskette again, and type "fdisk /mbr" to repair your master boot record.
14. Restart your computer and Windows should load fine this time.

Note: if you used Clonezilla instead of Norton Ghost and copied one partition to another, you still have to follow the steps with the Windows 98 CD, but you might end up with a smaller destination partition appearing in Windows (same size as your original partition). You must run the following commands -

Try to boot Clonezilla live, then in the command line prompt, run:
1. sudo -i
2. /opt/drbl//sbin/ocs-resize-part sda 1 (this is for /dev/sda1, change to the corresponding disk name and partition number)

This will resize your new partition to the right size that you allocated the first time.