Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Create My Own Recovery Partition?

- - - - -

  • Please log in to reply
59 replies to this topic

#51
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,959 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

yeah, I noticed that when I ran PCrestore.exe (from windows) and it said that factory.wim was missing. I put it then on the dell/image dir and ran it again. This time it ran properly and went ahead and asked me if I wanted to install it and it'd reformat c:, bla bla.... I didn't do it of course.
However, when run from the winre environment, clicking on the menu for the Dell option or running PCrestore.exe from command doesn't do anything at all.

Any other ideas guys?

It is most likely a mismatch between a 64-bit WinRE version and 32-bit PCRestore.exe or vice versa, I read and followed all the instructions in this thread and found the same problem, I am now in need of a 64-bit version of the Dell PCRestore.exe file. I'll be deeply grateful to the user who can share his copy of the file. :)


The files inside the Dell recovery partition are not redistributable.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg


How to remove advertisement from MSFN

#52
Arhilladus

Arhilladus
  • Member
  • 2 posts
  • Joined 24-July 09

The files inside the Dell recovery partition are not redistributable.

Yes, I suspected that, so I went ahead and contacted Dell, they were happy to send me a replacement HDD with a fully functional Recovery Partition and I returned my original Drive. So my particular problem was eliminated rather than solved! :thumbup

:hello:

#53
ajua

ajua

    Custom Installer Maker

  • Member
  • PipPipPipPipPipPip
  • 1,261 posts
  • Joined 16-April 05
I use Acronis True Image secure zone in my laptop and with the loader to hit F11 it comes very handy as I'm always making changes/tests on that laptop...

However, be sure to have an image backup and a bootable cd in case the hdd dies.

Custom Installers for your unattended needs.


#54
highkftj

highkftj
  • Member
  • 4 posts
  • Joined 27-October 09

Has anyone got further in this "Create Your Own Dell Recovery Partition" project?

For anyone wishing to retrieve Dell's F8 Repair Computer option, then follow the instructions using setautofailover.cmd (WAIK tool) from http://www.svrops.co.../winvistare.htm - If you messed up your MBR then you can use Vista's CD Repair feature and use bootrec fixmbr & fixboot (http://support.microsoft.com/kb/927392). Dell uses everything Microsoft to create their Vista Recovery route (previously used Ghost, etc).

setautofailover /target d: /partition 2
usually works for me. Don't use /wim since Dell's RECOVERY partition has a non-WIM Recovery Environment... but their factory restore image is WIM. Their non-WIM RE will automatically run to restore factory.wim into the last visible partition. So if your last visible partition is DATA.. and not OS... then it's going to get overriden. To avoid this, you'll need to use ptedit.exe and hide your DATA partition... so that your OS partition is the last visible partition.

Currently am building up my own factory.wim and going to replace Dell's factory.wim file. Lucky I made a backup image of the RECOVERY partition so I can play about with it on the laptop.


Other ideas is to use BartPE... and Drive Image XML. BartPE can be installed in the RECOVERY partition clean... and Drive Image XML of the OS partition (or use your favourate hard drive image program).


Hi there!

I'm pretty new to this dell problem, but i have already read a lot and i DO want to retrive Dell's F8 Repair Computer option. Witch steps should i fallow from this guide you pointed? All?

I tried to simply run "setautofailover /target d: /partition 3" (diskpart shows RECOVERY - D: partition as partition 3) and the recovery option does appear on the F8 menu, but boots to a vista login screen that asks for BOTH login and password, witch i do not have!

Please help me! i really need the DSR working again!



Hi,

I am in the same situation and I would like to restore retrieve my 'repair computer option' to boot at the Factory.wim image.
did you succeed with the above commands, and what steps you actually did to achieve it?

thanks for your help

#55
highkftj

highkftj
  • Member
  • 4 posts
  • Joined 27-October 09

Has anyone got further in this "Create Your Own Dell Recovery Partition" project?

For anyone wishing to retrieve Dell's F8 Repair Computer option, then follow the instructions using setautofailover.cmd (WAIK tool) from http://www.svrops.co.../winvistare.htm - If you messed up your MBR then you can use Vista's CD Repair feature and use bootrec fixmbr & fixboot (http://support.microsoft.com/kb/927392). Dell uses everything Microsoft to create their Vista Recovery route (previously used Ghost, etc).

setautofailover /target d: /partition 2
usually works for me. Don't use /wim since Dell's RECOVERY partition has a non-WIM Recovery Environment... but their factory restore image is WIM. Their non-WIM RE will automatically run to restore factory.wim into the last visible partition. So if your last visible partition is DATA.. and not OS... then it's going to get overriden. To avoid this, you'll need to use ptedit.exe and hide your DATA partition... so that your OS partition is the last visible partition.

Currently am building up my own factory.wim and going to replace Dell's factory.wim file. Lucky I made a backup image of the RECOVERY partition so I can play about with it on the laptop.


Other ideas is to use BartPE... and Drive Image XML. BartPE can be installed in the RECOVERY partition clean... and Drive Image XML of the OS partition (or use your favourate hard drive image program).




Hi,

I would be interesting not just to retrieve the dell restore (see previous reply) but also to create my new Factory.wim. I am going to install windows7 soon so I was wondering if I could after installed with proper drivers and programs, create my own new Factory partition and add it at the F8 menu to fast recovering...

please can you advise me/ guide me in this procedure??

Thank you very much in advance

#56
graham6282

graham6282

    Newbie

  • Member
  • 12 posts
  • Joined 24-February 07

I know I am referancing to the OPK docs but I would assume that the same docs are included within the WAIK as there is little difference between them.


RE is disabled in the WAIK.

True, I had to register in order to be able to download the OPK.



http://oem.microsoft...OPK_English.img

try this link, dunno if it will work but worth a try eh?? I just registered and stored the target url

#57
graham6282

graham6282

    Newbie

  • Member
  • 12 posts
  • Joined 24-February 07

This is a copy of the file that I use as my recovery.
if you use this and the WINREConfig.xml file this will add the bottom option to the recovery screen.
My recovery exe. doesn't actually do anything all it does is call a batch file called recovery.bat so you can from that launch anything you want but it made it easier for me to change what I had done at any time as I cannot write executables. I did use autoit though and launched a conferm yes/no box and then called imagex to software the drive.

Hope this is of some help to someone.

Robbo



I was wondering if recovery.exe was made using bat2exe file creator?? or something similar, would it be possible to get the source code for the recovery.exe???

also, is it possible to clean a partition without wiping the whole disk?? diskpart clean, cleans the whole disk, i want to keep the recovery partition and the storage partition and only re-apply the image to C:. I was thinking about backing up the mbr also, and add an option in recover.bat if need be??

Edited by graham6282, 22 December 2009 - 08:02 PM.


#58
pwagner9999

pwagner9999
  • Member
  • 6 posts
  • Joined 17-July 09
Watch This Video

It shows how to make a free hidden recovery partition using imagex, WinPE 2.0 and some opensource software. This is based on Microsofts OPK but improved by using the authors customizations.

#59
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,959 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

Watch This Video

It shows how to make a free hidden recovery partition using imagex, WinPE 2.0 and some opensource software. This is based on Microsofts OPK but improved by using the authors customizations.


Beware, Imagex does not support Windows XP, and expect about a 15% failure on recovery.

However, this topic is about Vista, not XP.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#60
graham6282

graham6282

    Newbie

  • Member
  • 12 posts
  • Joined 24-February 07

trinitegq
Here is a copy of my winreconfig.xml file that I use to add the recovery option to the recovery menu.

WINREConfig.xml

<Recovery><RecoveryTools><RelativeFilePath>OEG\recovery.exe</RelativeFilePath></RecoveryTools></Recovery>

The file is found under \sources\recovery\tools

The reletive file path is where this file is stored so my exe in this case is in \sources\recovery\tools\oeg\recovery.exe

as it states in the microsoft documets WINRE

The logo and description must be in the exe file as thats where it is extracted from

I used a basic compiler to create my exe, think I used QuickBFCbut it was some time ago so cannot remember.

hope this helps somewhat.

Robbo


Here's what i have done so far.

Created an unattended Vista install using this unattended script
Autounattend.xml
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
	<settings pass="windowsPE">
		<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<InputLocale>en-GB</InputLocale>
			<SystemLocale>en-GB</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UserLocale>en-GB</UserLocale>
			<SetupUILanguage>
				<UILanguage>en-US</UILanguage>
			</SetupUILanguage>
			<UILanguageFallback></UILanguageFallback>
		</component>
		<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<DiskConfiguration>
				<Disk wcm:action="add">
					<CreatePartitions>
						<CreatePartition wcm:action="add">
							<Size>8000</Size>
							<Order>1</Order>
							<Type>Primary</Type>
						</CreatePartition>
						<CreatePartition wcm:action="add">
							<Order>2</Order>
							<Type>Primary</Type>
							<Size>40000</Size>
						</CreatePartition>
						<CreatePartition wcm:action="add">
							<Order>4</Order>
							<Type>Logical</Type>
							<Size>5000</Size>
						</CreatePartition>
						<CreatePartition wcm:action="add">
							<Order>3</Order>
							<Type>Extended</Type>
							<Extend>true</Extend>
						</CreatePartition>
					</CreatePartitions>
					<ModifyPartitions>
						<ModifyPartition wcm:action="add">
							<Label>Recovery</Label>
							<Letter>R</Letter>
							<Order>1</Order>
							<PartitionID>1</PartitionID>
							<Active>false</Active>
							<Format>NTFS</Format>
						</ModifyPartition>
						<ModifyPartition wcm:action="add">
							<Letter>C</Letter>
							<Order>2</Order>
							<PartitionID>2</PartitionID>
							<Label>Local Disk</Label>
							<Format>NTFS</Format>
							<Active>true</Active>
						</ModifyPartition>
						<ModifyPartition wcm:action="add">
							<Order>3</Order>
							<Letter>D</Letter>
							<Format>NTFS</Format>
							<Label>Storage Disk</Label>
							<PartitionID>3</PartitionID>
							<Extend>true</Extend>
							<Active>false</Active>
						</ModifyPartition>
					</ModifyPartitions>
					<DiskID>0</DiskID>
					<WillWipeDisk>true</WillWipeDisk>
				</Disk>
				<WillShowUI>OnError</WillShowUI>
			</DiskConfiguration>
			<Display>
				<ColorDepth>32</ColorDepth>
				<HorizontalResolution>1024</HorizontalResolution>
				<VerticalResolution>768</VerticalResolution>
				<RefreshRate>60</RefreshRate>
			</Display>
			<ImageInstall>
				<OSImage>
					<WillShowUI>OnError</WillShowUI>
					<InstallTo>
						<DiskID>0</DiskID>
						<PartitionID>2</PartitionID>
					</InstallTo>
				</OSImage>
			</ImageInstall>
			<UserData>
				<AcceptEula>true</AcceptEula>
				<ProductKey>
					<Key>*****-*****-*****-*****-*****</Key>
					<WillShowUI>OnError</WillShowUI>
				</ProductKey>
			</UserData>
			<Restart>Restart</Restart>
		</component>
	</settings>
	<settings pass="oobeSystem">
		<component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
			<Reseal>
				<Mode>Audit</Mode>
			</Reseal>
		</component>
	</settings>
	<cpi:offlineImage cpi:source="wim:e:/vista/setup/sources/install.wim#Windows Vista HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

I may want to change recovery partition to FAT32?? still undecided?? I used setautofailover.cmd but it will not work if ntldr is missing etc. so i need to use winpe boot disk to recover anyway so what is the point?? Which is why i am thinking about editing the mbr.

In \sources\recovery\tools\ from the winre.wim (once mounted : imagex /mountrw c:\winreimage\winre.wim 1 c:\winremount INFO )

Created a folder "oeg" that has these files in it...

recovery.exe from recovery.zip, thanks Robbo for that
choice.exe, copied from system32 folder (although i don't know if this is needed)
imagex.exe AND wimgapi.dll copied from AIK/OPK (needed????)

format_c.txt
select disk 0
select partition 2
format fs=ntfs label="Local Disk" quick
exit

set_recovery_letter.txt (winpe always changes recovery drive letter so this just creates absolute drive letter)
select disk 0
select partition 1
assign letter r
exit

and recover.bat
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@													@@
@@			 MASTER IMAGE DEPLOYMENT				@@
@@													@@
@@ Title	  : recover.bat						   @@
@@													@@
@@ Author	 : Graham Brown						  @@
@@													@@
@@ Parent	 : n/a								   @@
@@													@@
@@ Purpose	: Deploy master backup image to C:	  @@
@@													@@
@@ Comments   :									   @@
@@													@@
@@													@@
@@													@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@ECHO OFF



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ SECTION: Variables

SET title=DEPLOY MASTER BACKUP IMAGE

SET local_disk=C:
SET recovery_disk=R:

SET script_dir=%0\..
SET format_c=format_c.txt
SET set_recovery_letter=set_recovery_letter.txt
SET image_name=master_backup.wim



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ SECTION: Display Title

cls

ECHO.
ECHO %title%
ECHO.

ECHO Do you want to restore the master backup image ??
ECHO.
%script_dir%\CHOICE /C:YN

IF ERRORLEVEL 2 GOTO END
IF ERRORLEVEL 1 GOTO CONTINUE


:CONTINUE

ECHO.
ECHO This will delete all data on C: Are you sure?
ECHO.
%script_dir%\CHOICE /C:YN

IF ERRORLEVEL 2 GOTO END
IF ERRORLEVEL 1 GOTO PREP


:PREP

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ SECTION: Prepare Hard Disk

cls

ECHO.
ECHO **** PREPARE HARD DISK ****
ECHO.

diskpart /s %script_dir%\%format_c%



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ SECTION: Apply Image to C:

cls

ECHO.
ECHO **** APPLY IMAGE ****
ECHO.

diskpart /s %script_dir%\%set_recovery_letter%
%script_dir%\imagex /apply %recovery_disk%\images\%image_name% 1 %local_disk%



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ SECTION: Reboot computer

cls

ECHO.
ECHO When you are ready to reboot the computer,
pause

ECHO **** REBOOT ****

wpeutil reboot

:END

pause

exit.

unmount winre.wim : imagex.exe /unmount /commit c:\winremount INFO

This should re-apply master_backup.wim to your C: without touching any other partition on your system. I have not done much testing however so if you would like to use this information and post reply's i would be grateful. I will reply with my findings too.

I am also looking into the possibility of editing, backing up, or re-applying the mbr although i don't know much about it to be honest. Also to use the SELM function to use f11 or similar

Sorry if this post is a wee bit hard to understand, i started, then added things, then changed things lol.

Edited by graham6282, 06 January 2010 - 04:52 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users