Xcopy Windows to a new hard drive #

While imaging a 160GB drive with four partitions (Dell Diag, Recovery, OS, MediaDirect) to a new 500GB drive via an Acronis True Image boot CD, something went terribly wrong. Long story short, neither drive would boot (stuck in perpetual reboot loop) though files were visible on both drives. After wrangling with partition and recovery tools on the 500GB drive to no avail, the following process worked:
  1. Wiped all partitions on the 500GB drive and created a single NTFS partition
  2. Installed Vista normally on 500GB drive
  3. Booted from Microsoft Diagnostics and Recovery Toolset (DaRT) CD
  4. Erased all files from C: on 500GB drive
  5. Copied all files from 160GB drive's OS partition (F:) to 500GB drive (C:) via xcopy:
    xcopy f:\*.* c:\ /b /c /e /h /k /o /r /x /y
  6. Booted from 500GB drive - still no joy: "Missing operating system"
  7. Booted from Vista install disc and selected "Repair your computer" (with the vague idea of trying fixboot and perhaps fixmbr)
  8. The following message appeared: "Windows found problems with your computer's startup options. Do you want to apply repairs and restart your computer?"
  9. Clicked "Repair and restart" and booted from 500GB drive
  10. Windows Vista started normally, with all data and apps intact!

UPDATE: Robocopy replacement (covers another interesting tool, strarc.exe)

/windows | Dec 19, 2009


Subscribe or visit the archives.