Skip to content

Instantly share code, notes, and snippets.

@pastcompute
Last active November 21, 2016 12:08
Show Gist options
  • Save pastcompute/52947b15586ec792e96219f23ebd6439 to your computer and use it in GitHub Desktop.
Save pastcompute/52947b15586ec792e96219f23ebd6439 to your computer and use it in GitHub Desktop.
Windows things

This may be similar for other vendors laptops.

  1. Failed factory reset - the eventual C: partition not created, and the reset failed. HDDRECOVERY partition (end of drive) good. SYSTEM partition (start of drive) empty.
  2. Mount into Linux and use fdisk or gdisk to change the flags (remove diag from SYSTEM and hidden from HDDRECOVERY)
  3. Mount into another Windows7+ PC and make new partition that will become C:
  4. Run the following command. Assume that G: is the eventual C: and H: is HDDRECOVERY
cd H:
cd ZZIMAGES\ZZIMAGES
..\..\BIN\IMAGEX /ref PREINST*.SWM /apply PREINST.SWM 2 G:\

This assumes that '2' is the x64 image and you could try '1' for the Win32 image. To see possible value use * this will produce an error and dump an XML file. This restores a base Windows 7 on G:
(Note: some forums mention WinRE.wim, this was in G:\Windows\System32\Recovery)

  1. Create a Windows Recovery DVD if you dont have one
  2. Remove hardrive from dock and put into laptop under repair and boot from the recovery DVD
  3. Do a boot repair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment