MSFN Forum: WinPE2 WIMs & XP Recovery Console - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WinPE2 WIMs & XP Recovery Console Rate Topic: -----

#1 User is offline   noveltylamp 

  • Group: Members
  • Posts: 4
  • Joined: 13-August 08

Posted 08 June 2009 - 11:56 AM

Hello, Quick question to see if anyone else has come across the same issue. I've been deploying a .WIM image with support for varying models of PC for almost a year now (all Dell Optiplex GX240 to 760, and another all hp d510 through to dc7900) but only recently came across an issue - any PC which has been imaged through WinPE using Diskpart & ImageX won't work with the XP Recovery Console installed (winnt32.exe /cmdcons). Booting to the Recovery console at the boot screen results in "Disk Read Error, Press CTRL ALT DEL". If I use a traditional Ghost type image it's fine.

I haven't had chance to try it yet, but I suspect fixmbr might be the solution, but i do wonder why XP works fine but the console does not.

It isn't the uberbug or command console being installed before sysprep issue either.

I've found a useful looking tool - mbrfix which can be run from WinPE, which is great if it works, but do Microsoft not offer an official tool, it's pretty bad going, what's Best Practice™? I will try bootsect.exe /nt52, but if XP is working then id've thought that wont help.

What about people deploying XP WIMs from WDS? Sticking to MS tools, they'd have to boot from an XP CD to recovery console and run fixmbr for every PC if they wanted the recovery console to be installed.

Thank you for reading.


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 7,349
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 June 2009 - 12:26 PM

WinPE 2.x is designed for Vista and newer operating systems. They do not use MBR but BCD. You can run BCDedit to fix a boot issue.

You'd have to customize your PE to run a program to fix the MBR at some point in deployment.

#3 User is offline   noveltylamp 

  • Group: Members
  • Posts: 4
  • Joined: 13-August 08

Posted 08 June 2009 - 12:37 PM

That's the idea, but Microsoft not providing a tool to do it is a bit of a faux pas.

Just discovered that bootsect.exe from Vista SP1 disc has an extra switch "/mbr" I will try this at work tomorrow.

#4 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 7,349
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 08 June 2009 - 01:54 PM

Actually, diskpart has the ability to capture and replace an MBR also.

I don't get why you are complaining that there is no tool in the Vista PE to handle XP volumes... :huh:

#5 User is offline   noveltylamp 

  • Group: Members
  • Posts: 4
  • Joined: 13-August 08

Posted 08 June 2009 - 03:32 PM

Because using WinPE 2.0 is an accepted method of deploying XP using Server 2008 based WDS, is it not?
Anyway, according to: http://technet.microsoft.com/en-us/magazin...sktopfiles.aspx you need to use bootsect.exe to apply the nt52 bootloader when deploying XP with WinPE 2. I will try tomorrow.

#6 User is offline   WreX 

  • Junior
  • Pip
  • Group: Members
  • Posts: 84
  • Joined: 26-October 07

Posted 09 June 2009 - 02:11 PM

It sounds more like your boot.ini file is not pointing at the correct location for your recovery partition.

#7 User is offline   noveltylamp 

  • Group: Members
  • Posts: 4
  • Joined: 13-August 08

Posted 09 June 2009 - 03:08 PM

bootsect.exe /nt52 z: /force


The above solved the problem, bootsect.exe can be found in the Windows AIK directory if you do a search, or is on the Vista/S2008 DVD.

I have now incorporated it into the batch file I use to image, something like:

Diskpart /s Disk0.TXT
bootsect.exe /nt52 z: /force
imagex /apply myimage.wim 1 z:
wpeutil reboot


Where Disk0.TXT Contains something like:
Select Disk 0
Clean
Create Part Pri
Format FS=NTFS Quick
Assign letter=z
Active
Exit

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy