noveltylamp Posted June 8, 2009 Posted June 8, 2009 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.
Tripredacus Posted June 8, 2009 Posted June 8, 2009 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.
noveltylamp Posted June 8, 2009 Author Posted June 8, 2009 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.
Tripredacus Posted June 8, 2009 Posted June 8, 2009 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...
noveltylamp Posted June 8, 2009 Author Posted June 8, 2009 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.
WreX Posted June 9, 2009 Posted June 9, 2009 It sounds more like your boot.ini file is not pointing at the correct location for your recovery partition.
noveltylamp Posted June 9, 2009 Author Posted June 9, 2009 bootsect.exe /nt52 z: /forceThe 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.TXTbootsect.exe /nt52 z: /forceimagex /apply myimage.wim 1 z:wpeutil rebootWhere Disk0.TXT Contains something like:Select Disk 0CleanCreate Part PriFormat FS=NTFS QuickAssign letter=zActiveExit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now