Jump to content

Recommended Posts

Posted

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.


Posted

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.

Posted

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.

Posted

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:

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...