Start a Conversation

Unsolved

This post is more than 5 years old

58143

November 2nd, 2009 13:00

Windows 7 recovery partition

Hi All,

I am creating a recovery image install.wim from a custom installation of windows7, to recover my system in case of failure and I want to deploy this image in a recovery partition at the beginning of the disk

I followed the steps in the WAIK guides for deployment tool and in particular:

1) prepared the hd with the following script

    select disk 0
    clean
    create partition primary size=10000 id=27
    format quick fs=ntfs label="Recovery"
    assign letter="R"
    create partition primary size=300
    format quick fs=ntfs label="System"
    assign letter="S"
    active
    create partition primary
    format quick fs=ntfs label="Windows"
    assign letter="W"


2) I installed w7 with dvd and it used the two partitions System and Windows above
note that after the installation, my drive letter when I start the system with winPE are the following:

d -> recovery
c -> system
e -> windows

3) after customized the system, I captured the windows partition with the following command

    imagex /capture e:\ e:\my-windows-partition.wim "My Windows partition"

and copied the above wim image in a share location which for simplicity I will call \\myshare (can be a usb mass storage...)

3) now my goal is to move the windows image in the recovery partition and have the possibility to restore the system in a factory state with winRE, according with what expressed in

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

'setup-based recovery solution' or possibly whit 'custom recovery solution'. starting with the same procedure there are some problems in using reagentc.exe
In particular, during the installation w7 creates a winre.wim file located in e:\Recovery\ \winre.wim, but when I try to move this file into the system partition as described in the procedure, I get an error saying that this file doesn't exist, while I can see it with dir command.

So I created my own winre.wim file using the procedure described here

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

and used this version sas winre.wim file. I moved this file to the system partition with the following

mkdir C:\Recovery\WindowsRE
move \\myshare\winre.wim C:\Recovery\WindowsRE


remember that for me C is the 'system' partition and not the 'windows' partition, when I boot my system with winPE.
now in order to instruct the system to use this winre.wim image i issued the command


E:\Windows\System32\Reagentc.exe /setreimage /path C:\Recovery\WindowsRE /target E:\Windows

but I received and error saying that I cannot use Reagentc because of x86 x64 compatibility issues. thus I worked around this using the version under SysWOW64, which takes care of those issues, but the error was 'cannot create an existing file'. Basically the system has already his own winre.wim file and it doesn't allow to move it on my 'system' directory (error before) not even instruct windows to use another one...

At this point I completed the procedure using my windows installation image and moving it in the recovery partition

copy \\myshare\images\my-windows-partition.wim d:\
rename d:\my-windows-partition.wim d:\install.wim
e:\Windows\SysWOW64\Reagentc.exe /setosimage /path d:\ /target e:\Windows


which was accepted... the system now is using this recovery image in case we follow the procedure described below:

Step 2: Test your recovery solution

In this step, you start the destination computer to verify that the recovery tool can be started.

  1. Remove the CD-ROM and any USB drives.
  2. Start the destination computer and complete Windows Welcome.
  3. Click Start , click Control Panel , click System and Security , click Backup and Restore , and then click Recover system settings or your computer .
  4. Click Advanced recovery methods and then click Reinstall Windows
  5. Follow the on-screen instructions. The computer restarts.
  6. Verify that the computer starts in Windows RE. The system reinstalls Windows by using the image that you placed in the recovery partition. When the installation is complete, you have the option to restore other files you have backed up.


but the problem is that in case of a failure of the whole system, when I cannot even boot in windows, the only way I know to recover my system is to boot the pc with WinPE, format 'windows' partition and apply the image with imagex. For example in the above configuration I would say:

imagex /apply d:\install.wim 1 e:\

Do anyone know how to work around this and any suggestion? especially why cannot I move the winre.wim image that w7 creates during the installation process from 'windows' to 'system' partition and instruct the system to use it? In practical worlds, why Reagentc fails when I am trying to redirect it to 'system' partition?
What I would like to perform is a similar task to F8 repair your computer option we had in vista... It should be possible I guess.

Any help or suggestion is strongly appreciated.

Thanks

16 Posts

November 4th, 2009 08:00

This website might help you to do that...

http://www.goodells.net/dellrestore/

5 Posts

November 4th, 2009 10:00

Thanks,

I know that website very well and I have always used it for XP. unfortunately it doesn't support WinRE since Vista, so not even W7.

Thanks anyway

16 Posts

November 4th, 2009 11:00

well then if you find solution for Win7 let us know too.. :)

5 Posts

November 4th, 2009 14:00

there is an easy to use procedure here about creating an image

http://www.howtogeek.com/howto/4241/how-to-create-a-system-image-in-windows-7/

the only reason I want to go on the difficult side is because I want to be able to manage on the raw level the system, through winPE. but for all of you guys who wants something simple and automatic, the above precedure works pretty well :)

hope this will help you guys :)

16 Posts

November 4th, 2009 15:00

if I wanted to do that I never asked you.. :emotion-11:

5 Posts

November 4th, 2009 15:00

There are other reason beyond the desire of managing the OS on the raw level. If you want to make the winRE really secure against any boot failure of the system you have to be able to move it on the hiddent partition 'system' which cannot be compromized by virus/deleting accedentaly files

that's why you should be able to direct the file reagentc where you want....

Anyway the above solution is a just an alternative possibility but not the best one :)

As soon as I came up with a real solution I'll post for who is interested

No Events found!

Top