Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

A friend couldn't seem to get Norton Ghost to clone a disk usably. I suggested using GParted, and (after running chkdsk /f on the NTFS partition - possibly the cause of Norton's problem) took the following steps:

  • Copied the recovery partition (at the end of the original drive) to the end of the new drive.
  • Copied the system partition to the start of the new drive, and 'stretched' it to fill the empty space.

After the clone was finished (and I had left), he tried to boot, got an error and did the fixmbr/fixboot process. After that Windows XP would start to boot, but give a 'missing hal.dll' error.

What happened?

share|improve this question
1  
Possible answers depend on which version of Windows. –  Darth Satan Sep 2 '09 at 23:18
    
Good point, added the OS. –  Tim Lytle Sep 4 '09 at 14:03

1 Answer 1

up vote 0 down vote accepted

(I'm asking/answering this because I thought it might be helpful to others.)

The problem was the boot.ini.

I copied the recovery partition (which was at the end of the drive) first because I wanted to copy and resize the system partition in one step. I figured that it would be faster than having GParted copy the system partition, then copy the recovery partition, then resize the system partition to fill the space.

Because of this order the partition numbering was different that the original. The first partition (at the beginning of the drive) was number 2, and the partition at the end of the drive was number 1.

The boot.ini simply had to be updated to reflect that. From:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Window"

To:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Window"

Hopefully that helps anyone else in the same situation. Next time I might just use dd, then gparted to grow the partition. Really not sure what would be fastest.

share|improve this answer
    
Yup, hence the version of Windows question. ;) –  Darth Satan Sep 2 '09 at 23:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.