Migrate Windows Server 2008 to a new hard disk
I have a machine with Windows Server 2008. I want to change the hard disk drive, but keep everything else. I don't have a cd/dvd drive and don't want to buy it.
My first idea was to make a byte-to-byte copy of the disk with Paragon Advanced Recovery. The problem is that when I try to boot from a new hard disk, it says that there were hardware changes and that Windows must be repaired, inviting me to insert the installation disk and follow repair instructions.
I searched and found that 1:1 copy is not a correct way to do things. The correct one is to restore Windows to a new hard disk from a full system backup. But to restore, I need to have a dvd drive.
I tried to make a copy of the Windows Server 2008 .iso on an USB flash drive, but the drive is not bootable (while the same procedure applied to Paragon Advanced Recovery ISO produces a bootable recovery USB flash drive).
Now what else can I do (except buying a dvd drive)? Is there a way either to make Windows work without doing recovery or recover Windows 2008 without using a cd drive?
I PXE boot Windows PE, then use Imagex to capture the existing HD, pop the new drive in, use imagex again to write the image back, and it's good to go. But getting WinPE to PXE boot is unnecessary for a smaller shop.
For you, use Microsoft's ISO to USB Disk tool to make a bootable USB drive. You can get Imagex from the Windows AIK; copy imagex to the USB Disk. Boot from the disk, push Ctrl+F8 to bring up a command prompt. Capture the image: imagex /capture C:\ D:\MyServer.wim "MyServer"
. Change the HD. Boot again, write the image: imagex /apply D:\MyServer.wim 1 C:\
.
You can't just copy the files to the USB drive, you need to make it bootable as well.
Plug in your USB drive on a working Windows machine that contains the files from the Windows 2008 ISO, then do the following:
- Open a DOS prompt
- diskpart
- list disk
- select disk <X> (where <X> is the number of your USB drive)
- clean
- create partition primary
- select partition 1
- active
- format fs=fat32
- assign
- exit
- xcopy <ISODIRECTORY>*.* /s/e/f <USBDRIVE>:
Here is a blog post with this info as well.