Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
PC Problems

Windows Recovery Environment from DVD

Recommended Posts

Hi all,

What I want to achieve:-

When I sell a new PC with Windows 7, I want to create a self booting System Recovery DVD.

I am fully aware that you can create a WinRE hard disk based recovery partition via the F8 - Repair your computer.

But hard drives fail, and you have then lost the recovery ability, and if under warranty I have to install from fresh on new HD again, so therefore I want to create this on a physical media.

I have successfully made the WinRE DVD as stated in the OPK.

I have also successfully created my "image.wim" after the Sysprep -shutdown via Imagex of the new PC's Windows 7 installation.

So my question is how do I make the WinRE DVD i have created to automatically deploy my "image.wim" to the new hard drive for that PC?

I also presume I will need to make a DISKPART script to create the 200mb system and primary partition for the Win 7 partitions before the "image.wim" is deployed?

The OPK documentation seems very vague?

Can this be done.

Any help would be greatly appreciated.

Thanks in advance Mike.

:huh:

Share this post


Link to post
Share on other sites

There are walkthroughs here to create WinRE using the WAIK:

http://technet.microsoft.com/en-us/library...28WS.10%29.aspx

Unfortunately, OPK methods use NDA (non-disclosure agreement) restrictions which means they are not to be openly shared with the public. The WAIK instructions should work with an OPK build. Otherwise, if you are experiencing problems specific to the OPK instructions, you should contact your TAM or Microsoft Rep to acquire the correct help.

Share this post


Link to post
Share on other sites

TY, but that is the same guide I am using, it tells you how to create the WinRE disc, but then the help file simply moves on to the hard drive partition recovery?

Thanks Mike.

Share this post


Link to post
Share on other sites

TY, yes read that one too, the REANGENTC.EXE must set up a variable call within the windows OS to look for install.wim, but this obviously does not apply to the WinRE on a DVD ?

So when you press F8 and select repair my computer it boots from the recovery partition and the WinRE looks at the Windows OS variable to find the location of install.wim...

...

Share this post


Link to post
Share on other sites

There might be a mix up here. You can make a WinRE from DVD or from HDD. When you use DVD method, there is no RE partition on the HDD at all. You likely need to have the System Partition to use WinRE in any case, since it is designed to copy files into it during recovery. So if you did your 7 install method where you only have 1 partition, WinRE isn't supported.

Share this post


Link to post
Share on other sites
I have also successfully created my "image.wim" after the Sysprep -shutdown via Imagex of the new PC's Windows 7 installation.

So my question is how do I make the WinRE DVD i have created to automatically deploy my "image.wim" to the new hard drive for that PC?

I also presume I will need to make a DISKPART script to create the 200mb system and primary partition for the Win 7 partitions before the "image.wim" is deployed?

Hi PC,

Are you simply wanting to add an "imagex /apply" routine to the startup script, or have I missed something?

Regards :)

Share this post


Link to post
Share on other sites

TY Allan,

Yes I have had alot of thought on this and yes you are correct, the hurdle for me is how to determine the drive letter of the location of the WIM on the DVD.

The drive letter assigned to the DVD could be anything depending on how many HD's etc there are.

I dont know how to determine which drive letter is assigned to apply the image command? :unsure:

Share this post


Link to post
Share on other sites
I dont know how to determine which drive letter is assigned to apply the image command? :unsure:

Windows PE (rather than RE) is probably a better environment for deploying from a CD/DVD.

Just the other day, I rebooted and what d'ya know - Windows RE thinks there's a serious problem, does unspecified exhaustive scans and tests, then admits that it can't fix the problem. Fortunately, on reboot, everything seemed OK. That's as much as I know about RE.

Create a uniquely-named tag file on the CD/DVD.

When Windows PE boots, run a FOR /F loop in batch script to search drives for the tag file and assign the correct drive letter to a variable.

There are a few variants of the FOR /F loop. Good luck. :)

Share this post


Link to post
Share on other sites
When Windows PE boots, run a FOR /F loop in batch script to search drives for the tag file and assign the correct drive letter to a variable.

There are a few variants of the FOR /F loop. Good luck. :)

It may be easier (depending on your experience) to use AutoIT. It has an @ScriptDir macro, that will find the exact path where the script resides, which can then be concat (and/or trimmed) to find the location of the WIM.

Share this post


Link to post
Share on other sites
... an @ScriptDir macro, that will find the exact path where the script resides, which can then be concat (and/or trimmed) to find the location of the WIM.

Just guessing that the @ScriptDir macro is similar to a VB Script I've seen for finding its own path and drive....

The standard method of booting Windows PE is to load it into RAM which is assigned the drive letter x: (although the letter can now be changed using DISM when customising Windows PE 3.0).

The script (VB or batch) or autoit program would normally execute from the RAM drive, so the script (or program) itself shouldn't be too hard to find. Use the %SYSTEMDRIVE% environment variable.

The images will reside on the DVD, which would still need to be found. The FOR /F loop batch is the simplest method I have seen.

I guess there is the option of running Windows PE from the DVD, rather than RAM, in which case, the script and the images would be on the same drive. (... not sure how the drive letter is assigned in this case?)

Or, if the images are small enough, load them into RAM as well, where they can be easily found.

Edited by allanf

Share this post


Link to post
Share on other sites

Hi, I have used "FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:" in the past works for all the time. Place this in run command and put a "DVD.TXT" in the root of my DVD.

::Run.cmd::

FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:

imagex /apply %dvd%\install.wim 1 c:

:)

Hope that works for you!!

Share this post


Link to post
Share on other sites
Hi, I have used "FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:" in the past works for all the time. Place this in run command and put a "DVD.TXT" in the root of my DVD.

::Run.cmd::

FOR %%I IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%I:\DVD.TXT SET DVD=%%I:

imagex /apply %dvd%\install.wim 1 c:

:)

Hope that works for you!!

You make it sound too easy ... :thumbup ...

And, quite right, it's not a FOR /F loop, just a plain FOR loop. I was thinking of another batch I've been working on ... :blushing: ...

Share this post


Link to post
Share on other sites
And, quite right, it's not a FOR /F loop, just a plain FOR loop. I was thinking of another batch I've been working on ... :blushing: ...

You are right :), meaning that you are WRONG. ;)

You can use a FOR /F allright, check a few posts starting from this one:

http://www.msfn.org/board/install-xp-ram-l...4-page-112.html

Actually the method depicted there is suggested since it avoids the problem of mapped drives without media (please read as "card readers"). :hello:

jaclaz

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...