Sunteți pe pagina 1din 14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

Searchthissite

Download
Hirens
Donate

EASY2BOOT

Videos

Windowsrestorepartition

WinXPToGo
FakeFlashTest

Win7ToGo

Win8ToGo

RemoveViruses

Grub4dosGuide

GetWAIKTools

Blog

Sitemap

RMPrepUSBHomePage
RMPrepUSBWhatdoesitdo?
RMPrepUSBQuickStartGuide
RMPrepUSBUserGuide&FAQs
RMPrepUSBFAQs
RMPrepUSBVersionHistory
RMPartUSBFAQs
RMPartUSBCommands
Forums(reboot.pro)
Bugsknown,currentandfixed
LicensingofRMPrepUSB
ContactMe
ReadandSignmyGuestBook
Blog
LatestSiteNews
HotTipsgoodvalue/performance
USBFlashmemorypens
UsefulExternalLinks(inc.Windows
7/8/8.1ISOs)
Downloads
Download
LatestRMPrepUSBversions+
downloads
Tutorials,HowTo'sandGuides
01HowtoimageaWindows
systemusingabootableWinPEUSB
driveandImageX
02HowtocreateaUSBdrivethat
willinstalloneofmanychoicesof
WindowsOS's(Vista/Win7/Server
2008/XP)
03HowtoinstallWindowsXPfrom
abootableUSBdrive
04HowtobootdirectlyfromaUSB
driveusinganEmulatororVMunder
Windows
05CHROMIUMOSabrowserOS
onaUSBStick
06YouTubeVideoTutorials
07Allabout'Fake'SDcardsand
USBFlashdrives
08MakeabootableUSBdrivefor
theNortonGhostSymantec
RecoveryDisk/Tool
09Howtomakeabootable
BACKTRACK4/5(linux)USBdrive
10BootBITDEFENDERRescue
CDfromUSBasanISOfile
http://www.rmprepusb.com/tutorials/auto_restore

Tutorials,HowTo'sandGuides
>

81Makeyourownautomatic
Windowsrestorepartition(ImageX
based)

Contents
1Introduction
2VersionHistory
3Preparation
4Summary
5EndUserExperience
6Requirements
7Method
8Whattodoifthesystemdoesnotbootat
Step9
9MakinganewbackupofWindows
10Automatingtherestore
11Makingchanges
12GettingHotKeystowork

Note:Youmayalso
beinterestedina
CloneZillabased
Backup/Restore
solutionfor
WindowsinTutorial
89whichismuch
easierto
implement.

Introduction
Ifyouhavetoinstall
Windowsforafriend
whoisnottoo
computerliterateand
islikelytotrashhis
copyofWindows,
youmaywantafast

andeasy'AutoRestore'or'Reset'partition.
IfanythinghappenstotheOSpartition,thentheendusercan
simplypickthe'Restore'optionfromthebootmenutorestorethe
originalOperatingSysteminjustafewminutesandwithnofurther
userinteraction(typicalrestoretimesareXPOS=2minutes,
Windows7OS=10minutes).
TheprocedurebelowwillworkonanyWindowsOSfromWindows
2000orlater.
Youcanalsotakeabackupatanytimeandoverwritetheexisting
backup.
Youcouldadaptthismethodandmodifytherestoreprocesstojust
deletethemainWindowsfolderandafewotherfolder(e.g.program
files,etc.)orjustchoosetonotformatthevolumeandapplythe
imageoverthetopoftheexistingWindowsinstallationhowever
thisisoftenunsuccessfulasthesystemmaystillnotbootorthe
usermaygetstrangeproblems.However,itmaybeusefultodo
thisifyoujustwanttobeabletoboottoWindowstoretrieve
valuablefilesbeforeyoudoafullcleaninstall.Itisuptoyouto
modifytherestore.cmdscriptifyouwanttodothis(e.g.donotrun
thediskpartscripttoformattheC:drivefirst).

Traducir
1/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

11Makeafreebootableimage
recoveryUSBflashdriveusing
FINNIX
12ResetaWindowsUser
password
13HowtofindWindowsUser
passwordsusingOPHCRACK3.4
14CrackorclearyourBIOS
passwordwithPCCMOSCLEANER
(usesPartedMagic)
15HowtoemulateUSBbooting
usingQemuManager
16HowtoboottodifferentWinPE
versionsusingasingleboot.wimthat
containsmultipleimages
17StartOSa'Windowslike'
versionoflinuxonastick
18ISOFilesBurn,Extract,Mount
orEditISOfiles
19CreateyourownRMPrepUSB
packageusingNullsoftScriptable
Installer(NSI)
20AddMEMTEST86+memorytest
programtoyourgrub4dosmenu.lst
file
21GRUB4DOSGUIDE(with
videos)howtomakeamultiboot
drive(+examples)
22HowtobootPCLINUX(and
mostother'difficult'linuxversions)
withoutusinga'flatfile'structure
23Howtofixa'corrupt'USBdrive
thatcausesWindowsor
RMPrepUSBtostopresponding
24BoottheUltimateBootCDfor
Windows(UBCD4WIN/XP)orBartPE
fromaUSBdrive(includesISOboot)
25SecurelyERASE(wipe)your
harddiskofALLdata(before
disposingofit)
26Sendandsniffcommands
to/fromyourUSBdevice(andsee
whatyourBIOSwouldsee!)
27DiagnosehowyourBIOSboots
USBdrives
28Recoverfilesandphotosfroma
corruptSDcardoranydrive(free!)
29BootHirensBootCDasanISO
filefromaUSBdrive(version15.2)
30HowtoinstallXPontoaHard
DiskfromanXPISOonabootable
USBdrive
31BootandinstallWindows7or
VistaorServer2008(both32and64
bit)fromISOfilesfromasingle
bootableUSBinstalldrive
32CreateaUSBdrivewithmultiple
Vista/Win7/Server2008installISO
filesin3simplesteps!
33Howtocreatebootable1.44MB
http://www.rmprepusb.com/tutorials/auto_restore

VersionHistory
Auto_restore.zip
v120120701Firstversionmenu.lsthasatypoandyourOSmay
notboot!
v220120702Themenu.lstfileinthefirstversionmaycause
problemsduetoatypo!Pleaseuseversion2(V.2)atthebottomof
thispage.
Ifyouhavealreadyinstalledtheoriginalmenu.lstandhavea
systemwhichwillnownotboottoWindows,pleaseproceedas
follows:
1.Bootthetargetsystemtothegrub4dosmenu
2.TypeP
3.enterthepasswordrmprepusb(inlowercaseletters)
4.TypeC
5.atthecommandprompttyperoot(hd0,0)
6.Nowtypechainloader/ntldrifyouhaveanXPsystemortype
chainloader/bootmgrifyouhaveaWindowsVista/7/8system
7.Typeboot
8.Nowdownloadthenewversionofmenu.lstandputitontheC:\driveand
D:\drive.

v320120702Changedrestore.cmdandbackup.cmdtolookfor
OS.tagtogetthecorrectpartitiontobackuporrestore,sothatit
nowworksifyouhaveabootpartitionandasystempartition.
v420121113Changedwindowsmenuagainsolooksforntldror
bootmgrandnotOS.tag(someWin7systemshaveabootpartition
andasystempartition).ThankstoJamesforthisfeedback!

Preparation
ItisassumedthatyouhavealreadyinstalledWindowsXP,Vista,7
or8ontoacleanharddiskandthattheOShasbeensetup
correctlyforthatsystemandthatparticularuser.
Itisassumedthatthereisonlyonelargepartitionontheharddisk
whichistheOSpartition.IfyouhaveinstalledWindows7or8,you
mayhaveasmallpartitionatthebeginningofthediskfollowedby
thelargerOSpartition.
Itisobviouslyeasierifyoucanprepartitionthetargetsystem's
harddisktoleaveroomforabackuppartitionattheend,however
theinstructionsbelowshowyouhowtoshrinkthelastpartitionin
caseyouhavenotleftanyspareunallocatedspaceattheendof
theharddisk.

Summary
Hereisaquicksummaryofwhatwe
willdotomakethisrestorepartition
onanexistingWindowssystem's
harddisk:
1. Makeabootableversionof
WinPEv3(Windows7
WinPE)usingthefree
MicrosoftWAIK(noWindows
7DVDorISOrequired)
2. InstallEaSeusHomepartition
master(free)onlyrequiredif
youhaveaWindowsXP
targetsystem
3. Shrinkthelastpartition
(usuallythisistheOS
partition)
4. CreateanewprimaryNTFS
recoverypartitionattheend
2/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

and2.88MB(orlarger)floppydisk
images
34TheZALMANZMVE200SATA
harddiskcaddywithDVD/HDD/FDD
emulation
35Howtomakeabootable
antivirusAVGRESCUEUSBdrive
36BoottoHiren'sBootCDfroma
USBdrive(v13/v14/v15.1/15.1DLC)
37CreateaDOSBootableUSB
drive(usinggrub4dos)suitablefor
BIOSflashing
38CreateaniGelUniversal
DesktopConverter(UDC)installer
USBFlashpen
39HowtorepairyourUSBFlash
drive

oftheharddisk
5. CopytheWinPEbootfiles
madeinstep1tothenew
partition
6. Installgrub4dostotheMBR
oftheharddisk
7. HidethenewWinPErecovery
partition(optional)
8. UninstallEaSeusHome
partitionmaster(optional)
9. ReboottoWinPE
10. TakeabackupoftheOS

EndUserExperience

40REDO,aBareMetalBackup
andRecoverysolution
41MicrosoftStandaloneSystem
Sweeper(MSSS)ANTIVIRUSBeta
Tool
42MakeaminiWindows7
bootableUSBpen(using
MAKE_PE3)
43InstallWindows8,Server2012,
Win7,2K8&VistafrommultipleISO
filesonthesameFlashdrive
44USBBootKaspersky10&2012
RescueDisk(AV)
45HowtoPXEbootgrub4dosor
WinPE(fromaWindows7PC)using
tftpd
46Ubuntu12.04/11.04/11.10boot
fromISO
47HowtoinstallWindows
Vista/7/SVR2K8ontoaUSBdrive(or
anypartition)
48IsyourBIOSlyingtoyouabout
it'sRAMmemorysize?
49ControlyourNotebook/Media
CentrePCfromyourmainPCwith
Synergy
50PrepareabootableUSBdrive
usinglinuxcommands
51Howtoeditormakeyourown
Language.INIfileforRMPrepUSB
52InstallWindows8asaVHD(no
needtorepartition!)
53Windows8/8.1ToGo(boot
Windows8fromaUSBdrive!)
54HowtoFixWriteProtected
ReadOnlyDrivesandSDCards
55BootSlaxfromaUSBdrive
56ForgottenWindowspassword?
NoproblemwithKonBoot!
57Automaticgrub4dosmenus,
usinghotkeys,hidingthemenuand
silentstartup
58TrinityRescueKitbootfrom
http://www.rmprepusb.com/tutorials/auto_restore

Eachtimethesystemboots,theenduserwillseeamenu
displayedfor5seconds:
BoottoWindows
RestoretheoriginalWindowsimage
After5seconds(thistimeoutcanbechanged),thesystemwillboot
toWindowsifnokeyispressedbytheuser.
Iftheenduserselectsthe2ndoptionbyusingthecursorkeys,and
3/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

USB
59Saveorlistallyourcurrent
passwords

thenentersthepasswordRESTOREME,thesystemwillbootto
WinPE.

60AddPloptoyourgrub4dos
menu
61RuntheOCZSSDFirmware
updateISOfromabootableUSB
Flashdrive
62Chainloadsyslinuxfrom
grub4dos/grubandviceversa
63InstallXPandWin7ontoa
computerfromoneUSBflashdrive
containingISOfiles!
64BootAbstradromeHDD
Regeneratorfromanimageona
USBdrive
65Makeagrub4dosbootableISO
66BootWifiWay/WiFiSlaxwireless
securityOSfromaUSBdrive
(persistent)

TheusercanthentypeD:RESTORE[orpossiblyE:RESTORE
dependingonyourpartitionarrangement](thiscanbeautomatedso
theuserdoesnotneedtotypeanything)anditwillautomatically
wipetheoriginalWindowsinstallationandthenreinstallWindows
fromthebackup.
AtypicalbasicWindowsXPsystemcanbefullyrestoredinabout2
minutes,abasicWindows7systemcanberestoredinunder10
minutes.

67BootFedora16/17/18with
persistencefromaUSBdriveusing
grub4dos
68WEE(wee63)and
WEEsetup.exeanalternative
bootloader
69BootovertheinternetwithiPXE
70FbInstandotherpopularUSB
utilities
71Grubutilsmenuset,wenv,bios,
grub4dosutilitiesandbatchfiles
72Easy2Bootagrub4dos
multibootUSBdrivethatiseasyto
maintain!
73TryPorteuswithpersistence
bootingfromanISOusing
Easy2Boot
74BootWinternalsERD
CommanderfromISOorflatfile
structure
75Testyourmemory(RAM/DIMMs)
76QuicklysetupPXEbootingto
installanyWindowsOSorPXEboot
linux,etc.withSERVA!
77Createamultiplepartition,multi
bootUSBFlashdriveunder
Windows
78RunliveXBMCbuntufroma
multibootUSBdrive
79MakeanRMConnectCC3
MultiStationBuildUSBFlashdrive
80Howtoretrievefilesfroma
computerwithoutbootingittoanOS
(viaPXE)!
81Makeyourownautomatic
Windowsrestorepartition(ImageX
based)
82InstallXPtoharddiskfromISOs
usingWinPEv3
83DownloadImageX,BCDBoot
http://www.rmprepusb.com/tutorials/auto_restore

Thesystemwillthenautomaticallyrebootbacktotherestored
versionofWindows.
Thereareinstructionsattheendofthistutorialonhowtoautomate
theprocesssothattheenduserdoesnotneedtotype
D:RESTOREtostarttheimagerestoreorevenenterapassword.
Youcaneasilychangetheuserexperiencebyeditingthescriptfiles
andwhenyouarehappythatitisallworkingcorrectly,youcanhide
thewholebackuppartitionfromtheenduser.

Requirements
YouwillneedtouseaWindowssystem(Iwillcallthisyour
'officePC')tomakeaWindows7WinPEbootableOS.
Itisfarmoreconvenientifthisisnotthesamesystemas
thetargetsystem.
InstallVirtualCloneDriveorImDiskonyourofficePC.
DownloadtheWindows7WAIK(thisisaLARGEdownload
over1GB!).
DownloadacopyofEaSeusHomePartitionmasterinstaller
ontoaUSBstickifyour'targetsystem'isXPandhasno
internetaccess.
4/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

andotherWAIKtools
84SwitchXPtoAHCImode
85AddtheO&ODiskImage
ProfessionalISOtoyourUSB
multibootdrive
86Dynamicallychangethedisk
volumelabelusinggrub4dos
87InstalltheUltimateBootCDonto
aUSBdrive
88BootAviraRescuefromUSB
89AutomatedWindowspartition
backup\restorebootmenuusing
CloneZilla
90InstallWindows8toaVHDfile
onaUSBdrive!
91ReplaceWindows
XP/Vista/Win7withWindows8
withoutaDVDorUSBdrive
92BITSIntelBIOS
ImplementationTestSuite
93BootalmostANYlinuxISOfrom
agrub4dosUSBdrive(e.g.Tails,
BackTrackorevenOphcrack)!
94BootBackBoxfromyourUSB
grub4dosmultibootdrive
95MakeabootableWindows
RecoveryUSBFlashdrivefroma
Windows7system
96AddanautomaticlinuxISOfile
menutoyourgrub4dosmultiboot
USBdrive
97WriteprotectormakeaCD/DVD
partitiononaFlashDriveusing
SMI_UFDiskUtilities
98AddLinuxMint14ISOfilesto
yourgrub4dosmultibootUSBdrive
99BootXiaopanwithgrub4dos
100Makeandbootfroma
Win8PE_SEISOfile
101Patchafileusinggrub4dos
102SpeedupWinToFlashXP
installs(+fix'NTLDRismissing'
error)
103FixorRepairXPifitisnot
booting(usingtheXPRecovery
Console)
104BootpclinuxfromISOwith
persistence
105CloneyourWindowsXPPro
systemtoaUSBdrive(using
USBoot)
106BootanyLinuxLiveCDISO
fromyourHardDisk
107QuickwaytomakeaWinPEv3
andBackup/RestoreISO(using
MacriumReflect)
108XPInstallusingRufusandadd
ittoyourgrub4dsomultibootUSB
drive
109USBRubberDuckyHack
http://www.rmprepusb.com/tutorials/auto_restore

DownloadRMPrepUSB(fullversionorportable)andextract
itontoaUSBstick(copyallfilesandfoldersnotjusttheexe
file).
Thetargetsystemshouldhavealreadybeeninstalledwith
Windows,alldriversandsoftware.Itcanhaveupto3
primarypartitions(orupto2primarypartitionsandany
numberoflogicalpartitions).

Method
WARNING:Thisisintendedtobeusedonatest'target'system
andnotonyourmainWindowsPC.Istronglysuggestyoutestit
outonasystemcontainingnonessentialfilesfirst!Pleasedonot
holdmeresponsibleforanydatalossifthingsgowrong!

1.MakeabootableversionofWinPEv3(Windows7
WinPE)usingthefreeMicrosoftWAIK
1. Usingyour'office'WindowsXP/WindowsVista/Windows
7PC(don'tusethetargetsystemthatyouwishto
image/restore):
2. DownloadtheWindows7WAIKISOfile(e.g.
KB3AIK_EN.iso1.7GB).
3. DownloadandinstallyourISOmountutility.(e.g.
VirtualCloneDriveorImDisk)anduseittomounttheWAIK
ISOfile
4. TheWAIKWelcomewindowshouldlaunch.Ifnot,double
clickStartCD.exeonthenewdriveletterinExplorer.
YoumustagreetotheTermsandConditionsandyoushould
havethecorrectlicenses.
5. Installthe.NetFrameworkSetupfromtheWAIKmenu.
6. InstalltheMSXML6SP1SetupfromtheWAIKmenu.
7. InstalltheWindowsAIKSetupfromtheWAIKmenu.
8. ExitfromtheWAIKmenu.TheWAIKisnowfullyinstalled.
YoucanoptionallyinstalltheWAIKv3.1updatefilestoo.
FollowthenextstepscarefullytoprepareabootableWinPE
OS...
9. ClickonStartMenu,AllPrograms,MicrosoftWindows
AIK,DeploymentToolsCommandPrompttoopenupan
Administratorcommandpromptwindow.
10. Typecopy..\x86\imagex.exec:\andpressEnter.
11. TypeCOPYPEx86c:\pe86andpressEnter.
12. Typecopyc:\pe86\winpe.wim
c:\pe86\ISO\sources\boot.wimandpressEnter.
13. Typecopyc:\imagex.exec:\pe86\ISOandpressEnter.
14. DownloadandunzipthefilesinsideAUTO_RESTORE.ZIP
andcopythemtotheC:\pe86\ISOfolder

2.InstallEaSeuspartitionmaster(freeversion)
ThisnextstepisnotnecessaryunlessyouhaveWindowsXPon
yourtargetsystem.WindowsVista/7/8DiskManagementcanbe
usedinsteadtoshrinkthepartition.
1.Onyourtargetsystem,downloadandinstallEaSeuspartition
masterHomeEdition
5/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

Device(Hak5)
110RunfullWindowsXPtoGo!
fromaUSBdrive
111Howtosemiautomate
Windowsdriverinstallation
112Virus/RootKit/Ransomware
RemovalandCleanUp
113HowtouseEasy2Bootwith
FlashBoot(forthatoddsystemthat
won'tbootproperly)
114HowtomakeanEasy2Boot
(grub4dos)USBFlashdriveusing
linux
115ConvertaWinPE'FlatFile'ISO
toaramdisk(boot.wim)ISO
116AddHirens9.5toyour
grub4dosUSBMultibootdrive
117InstallWindows98SEfroman
ISOfileonanEasy2BootUSBdrive
118MakebootableClonezilla
backup/restoreUSBHardDisk
119BootHitManProKickStartfrom
agrub4dosmultibootUSBFlash
drive
120HowtoaddRedHatInstall
ISOstoEasy2Boot
122BootdirectlytoUEFImode
usingClover
123ReInstalllinuxtoyourAsus
EeePC701/90x/1000/S101froma
USBdrive
124ColdBootAttack!dumpa
computer'smemorytoaUSBdrive
125CreateadualpartitionUSB
bootdriveusingYUMI
126BootCentOSorFedorafrom
anISOfileusinggrub4dos
127HowtomakeDualboot32&
64bitMBR&UEFIWinPEUSBdrive
128BootthePartedMagicISOfile
(Live)usinggrub4dosfromaUSB
drive
129Windows8.1ToGoonFixed
orRemovabletypeUSBdrives
(VHD)
130'TrueHide'partitionsusing
grub4dos
131BoottoaTrueCryptedWin8.1
harddiskviaUSB

3.Shrinkthelastpartition(usuallytheOSpartition)
Youneedtomakespaceforapartitionthatwecanboottoatthe
endofyourtargetsystem'sharddisk.Youneedtomakethesizeof
thepartitionlargeenoughtoholdthebackupimagefile.
1.Onthetargetsystem,inWindowsExplorer,selectallthefolders
ontheC:drivebutdonotselectanyofthefilesintherootoftheC:
driveandthenrightclickandselect'Properties'.
WindowsExplorershouldreportthe'Size'(e.g.6GBforatypical
XPinstall+drivers,etc.).
WewillbeusingImageXtomakethebackupandthisdoes
compresstheWindowsfilesquitealot(e.g.6GBXPwillproducea
2GBbackupfile),soifWindowsExplorersaysthatthetarget
systemsdiskissay500GBandhas480GBfree,thenyoushould
probablymakeroomfora10GBpartition.
2.RuntheEaSeuspartitionmasterapplicationandselect
'Resize/Movepartition'oruseVista/Win7/8DiskManagerto
shrinkthelastpartition.
3.Slidethebluecircleontherighthandsideof
theEaSeuspartitionbarsothatthe'UnallocatedSpaceAfter'box
reachesthedesiredpartitionsize.
4.ClickontheApply(tick)iconatthetopandfollowthe
instructionstoshrinkthepartitionarebootmayberequired.
Note:althoughyoucouldalsopartitionandformatthenewspaceat
thesametime,Iwouldrecommendshrinkingthepartitionfirstas
thisisprobablysafer!Shrinkingpartitionscansometimesgowrong!

4.CreateanewprimaryNTFSrecoverypartitionat
theendoftheharddisk
OncetheEaSeuspartitionmasterhassuccessfullycreatedsome
spaceattheendoftheharddiskonthetargetsystem,usethe
sameapplicationtopartitionandformattheemptyspaceasa
PrimaryNTFSpartition.Youcanuse'Changelabel'tocallthe
Volume'Backup'ifyoulike.IfyoulikeyoucanuseWindowsDisk
ManagerinsteadofEaSeustocreatea'SimpleVolume'.

5.CopytheWinPEbootfilestothenewpartition
NowcopyandpasteallthefilesandfoldersfromtheC:\pe86\ISO
folderpreparedinStep1above,tothenewNTFS(D:)partition
whichisnowattheendoftheharddisk(useaUSBFlashdriveto
transferthefiles).

6.Installgrub4dostotheMBRoftheharddisk

UsefulArticles
AdvancedFormat(4Ksector)hard
disks
FixUSB3.0'Thisdevicecanperform
faster'SystemTraymessage!

Theeasiestwaytoinstallgrub4dosontothetargetharddiskisto
useRMPrepUSB.Youcaneitherdownloadtheportableversionand
runitfromaUSBstickorcopytheRMPrepUSBfolderfromyour
officePContotheUSBstickorjustinstallRMPrepUSBontothe
targetsystem.

Downloadawholewebsiteandview
itofflineusingwget!
GettingstartedwiththeRaspberryPi
(RPi)
RaspberryPi+MotorolaAtrix4G

1.RunRMPrepUSBonthetargetsystemandtypeCTRL+F5once
totoggletotheALLDRIVESmode.Selectthetargetsystem'shard
diskandclickontheInstallgrub4dosbutton.Followtheprompts
andpressENTERtoallowRMPrepUSBtocopyoverthegrldrfile.

http://www.rmprepusb.com/tutorials/auto_restore

2.Copythemenu.lstfilefromthenewpartition(e.g.D:)totheC:
6/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

lapdock
BootfromCD/USB/Floppytoaccess
anNTFSpartition
Recordingvideoswith
Camstudio+MovieMakerfor
YouTube
XPSetupCD/ISOCleanInstallation
Reference
Reboot.proTutorials
Donate
Sitemap

partition.Grub4doswillusethemenu.lstonC:unlessitis
accidentallydeletedbytheuser.Keepingacopyofmenu.lstonthe
D:driveactsasabackup.
3.Donotdeleteormovethefilerecovery.tagfromthebackup
partition.Ensurethefilerecovery.tagstaysonthenewbackup
partition(e.g.D:\)
4.IMPORTANT:MovethefileOS.tagtotherootofC:\(i.e.
C:\OS.tag)ensurethatthefileOS.tagisNOTontheD:volumeor
anyothervolumeexcepttheWindowsC:systemvolume.Deleteit
fromanyothervolume.
TheWindowsVista/7/8Bootpartitionshouldbebeforetheadded
WinPEpartitiononthedisk(themenuassumesthatitwillalways
beforetheWinPEpartitiononthedisk.Youcantellwherethe
WindowsBootpartitionisbylookingattheharddiskpartitions
usingtheWindowsDiskManagementtool(RMPrepUSBCrtlKwill
launchthis).ThescreenshotbelowshowsthattheSystemand
BootvolumesareonthesamevolumeaslongastheBoot
volumeisbeforethenewWinPEvolumethenthecurrentmenuwill
workcorrectly:

Ifhowever,youhaveaBootpartitionwhichisAFTERtheadded
WinPEpartition(e.g.forsomereasonyouhaveplacedtheWinPE
filesbeforetheBootpartition),youwillneedtospecifythe
partitionnumberoftheBootpartitioninthemenu.lstfileby
changingtheWindowsmenufrom:
titleBoottoWindows\n
errorcheckoff
findsetroot/ntldr||findsetroot/bootmgr
chainloader/ntldr||chainloader/bootmgr
to
titleBoottoWindows\n
errorcheckoff
root(hd0,1)
chainloader/ntldr||chainloader/bootmgr
where(hd0,1)isthepartitionthatistheWindowsBootpartition
where(hd0,0)isthefirstpartition,(hd0,1)isthe2ndpartition,etc.
forinstance,iftheWindows'Boot'partitionisactuallythe2nd
partitionandyouhaveplacedtheWinPEfilesonthefirstpartition
(whichisunusual!),thenchangethemenuentrytoroot(hd0,1).
5.CopytheC:\grldrfilethatwasputtherebyRMPrepUSBoverto
D:\grldr.ThisisabackupcopythatcanbeusedincasetheC:
partitionisdestroyed.
TargetHardDiskcontents:
C:\OS.tagthismarkswhichvolumewillbe
backeduporrestoredto
C:\menu.lstthisisthemainuserbootmenufile
C:\grldrthisisthemaingrub4dosprogram
http://www.rmprepusb.com/tutorials/auto_restore

7/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

D:\recovery.tagthismarksthevolumewhich
containstheWinPEbootfilesandwherethebackupimagewill
bestored
D:\menu.lstthisisnotnormallyusedunless
thereisaproblembootingitshouldalwaysbeanexactcopyof
theC:\menu.lstfile
D:\imagex.exeusedtomakebackupsand
restores
D:\backup.cmdscripttotakeabackupofthe
volumecontainingtheOS.tagfile
D:\reboot.cmdscripttorebootthesystem
D:\restore.cmdscripttorestorethevolumethat
currentlycontainstheOS.tagfile
D:\auto\startnet.cmdnotactuallyusedandcanbe
deleted
D:\auto\Autorestore.cmdnotactuallyusedandcanbe
deleted
D:\bootmgrthemainbootloaderfileforWinPE
D:\grldrthemaingrub4dosprogramonly
usediftheC:\grldrfileismissing
D:\bootfolder
D:\Sourcesfolderthesecontainthebootfilesfor
WinPE
D:\OS.tag<<<<MUSTNOTBEPRESENT!!!!!

7.HidethenewWinPErecoverypartition
1.Firstmakesurethatonthetargetsystem'sC:\(root)folderyou
have
grldr
menu.lst
OS.tag
2.NowuseEaSeuspartitionmastertohidethenewrestore
partitionusingthe'HidePartition'menuitem.(Youcandothislater
ifyouprefer,onceyouhavetestedthateverythingisworkingit
doesnothavetobedonenowandwillnotaffectthebackup
image).Hidingthepartitionpreventstheuserfromdeletingthe
WinPEOSorthebackupimage!
AnalternativeistousetheWindowsDiskManagementMMCto
removethedriveletterfromthebackuppartition,howevertheend
usecouldeasilyassignanewdriveletterinthesameway.
Anotheralternativeis,ifyouhaveVistaorWindows7/8(orifyou
boottotheWinPEpartition),youcanusediskparttohidethe
backuppartitionatanytime,asfollows:
OpenaCommandConsolewithAdministratorrights
typeDISKPART
typeLISVOLandnotthedriveletterofthenewpartition
(e.g.D:)
typeSELVOLX(whereXisthenewdriveletter
typeSETID=27
typeEXIT
Note:Tounhidethepartition,settheIDastype07forNTFS.You
canfindthepartitionthatyouwanttounhidebyusingthe
DISKPARTcommandsSELDIS0,LISPARandthenSELPAR
N(whereNisthepartitionnumberthatyouwanttounhide)and
thentypeSETID=07andEXIT.
3.RightclickontheC:\menu.lstfileandchoose'Properties'and
clickonthe'Hidden'and'Readonly'tickboxesandthenclickon
'OK'
http://www.rmprepusb.com/tutorials/auto_restore

8/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

4.RightclickontheC:\OS.tagfileandchoose'Properties'and
clickonthe'Hidden'and'Readonly'tickboxesandthenclickon
'OK'
5.RightclickontheC:\grldrfileandchoose'Properties'and
clickonthe'Hidden'and'Readonly'tickboxesandthenclickon
'OK'.

8.(optional)uninstallEaSeusHomepartitionmaster
NowpreparethesystemforimagingbyuninstallingEaSeus
partitionmasterandRMPrepUSBandanyotherapplicationsorfiles
thatyoudonotwishtheusertoseewhenhe/sherestores
Windows.
RunthediskcleanuptoolanddeleteallIEbrowserhistory,cookies,
etc.alternativelyrunCCleanerorasimilarcleanupapplication.
Imagexwillnotbackupthepagefileorhibernationfilesowedon't
needtoworryaboutthese.

9.ReboottoWinPE
1.Nowrebootthetargetsystem.Youshouldseethegrub4dos
menuappearfor5secondsasthesystemboots:

2.Selectthe2ndmenuentry(asshownabove)andthenhitthe
Enterkeytoselectthe'Restore'optionenterthepassword
RESTOREME(inuppercaseletters)whenprompted.
3.ThetargetsystemshouldnowreboottoWinPEandyoushould
seeablackWinPEconsolewindowwithacommandprompt.
4.(optional)CheckthatthesystemwillstillboottoWindowsby
typingD:reboot(orpossiblyE:reboot)atthecommandlineand
lettingthemenutimeoutsothatthesystemrebootstoWindows.
Note:Seebelowifthesystemdoesnotnowbootcorrectly!

10.TakeabackupofWindows
Note:Ifyouhaveenabledtheautomatedrestorefeature(asdetailed
inthesectionbelow),thenwhenyouarepromptedtoperforma
restore(Y/N)?typetheuppercaseletterBtorunbackup.cmd.
1.Wenowneedtomakeabackup,soreboottoWinPE(selectthe
Restoreoptioninthegrub4dosmenu)andtypeD:backup(or
maybeE:backup)andhittheEnterkeytostartthebackupofthe
OSvolume(whichmaybecalledD:whenbootedtoWinPE).The
WindowsvolumethatcontainsthefileOS.tagwillbebackedupto
http://www.rmprepusb.com/tutorials/auto_restore

9/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

afilebackup.wimonthebackupvolume.
2.Onceitcompletessuccessfully,typeD:rebootandhittheEnter
keytoreturntoboottoWindowsagain.
Ifyoudon'twanttohidetherestorepartitionsothattheusercan
makeuseoftheunusedfreespace,thenIsuggestyousetthe
Hiddenattributesonallthefiles,sothattheuserisunabletosee
themeasilyandthuspreventhim/herdeletingthemaccidentally.
IfyouwanttomaximisetheamountofavailablespaceontheOS
driveandreducethesizeofthebackuppartitiontothe
minimum,youwillneedtoresizethebackuppartition.Thiscanbe
doneasfollows:
Notethesizeofallthefiles(includingthebackup.wimfile)
onthebackuppartition(e.g.sayitis6GB)
CopyallthefilestoafolderontheC:drive(e.g.
C:\TEMPBAK)
DeletethebackuppartitionusingDiskManagerorEaSeus
partitionmaster
ResizetheC:partitiontoexpanditsothatitleavesjust
enoughspaceforthebackupfiles(allowatleast500MB
extrajusttobesafe!)soleave6.5GBunallocatedinthis
example
CreateanewNTFSPrimarybackuppartitioninthe
remainingspace
CopyallthefilesfromC:\TEMPBAKtothenewvolume
DeletetheC:\TEMPBAKfolder
Hidethebackupvolumeifdesiredorremoveit'svolume
letterusingDiskManager

Whattodoifthesystemdoesnotbootat
Step9
Don'tPanic!
IfyourebootedthesystematStep9anditdidnotshowthemenu
withthetwoitemsinit,butyouhaveapromptlikethis:
grub>
thenyouprobablydonothaveamenu.lstfilepresent.Youcantry
bootingbacktoWindowsbytypinginthegrub4dosconsole:
IfyouhaveWindowsXP:
findsetroot/ntldr
chainloader/ntldr
boot
orifyouhaveWindowsVistaorlater:
findsetroot/bootmgr
chainloader/bootmgr
boot
ThetargetsystemshouldthenboottoWindowscorrectlyandyou
canfixtheproblem.
Youcanalsogettothegrub4doscommandpromptbytypingPand
thenenteringthepasswordrmprepusbwhenprompted.Thentype
Cforthecommandprompt.
Youcanexaminetheharddiskcontentsbytyping
find
andthenlistthedirectorycontentsofeachpartitionbytyping
ls(hd0,0)/
http://www.rmprepusb.com/tutorials/auto_restore

10/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

ls(hd0,1)/
etc.
etc.
IfthesystemalwaysbootstotheWinPEshell,checkthatthe
WindowsBootpartitionisbeforetheaddednewWinPEpartition.If
notseeStep4above.
Ifallelsefails,bootWinPEfromaUSBstickoraWindows
installationDVDandcheckthefiles.
Note:Whentestingthetargetharddiskbootmenuandbackupand
restore,alwaysremoveyourUSBdrivefromthetargetsystemasit
maycontainOS.tagandRestore.tagfileswhichwillconfusethe
menusystem!
Ifyouwanttoremovethegrub4dosbootloaderandjustgoback
tobootingtheharddiskstraighttoWindows,youcandothisusing
RMPrepUSBasfollows:hitCTRL+F5toshowalldrivesselect
theharddiskinthedisklistboxCTRL+Btoinstallthestandard
WindowsMBRbootcode.TorunRMPrepUSB,youcanbootfrom
aWinPEUSBstick,WindowsinstallDVDorifpossible,fromthe
WinPEinstalledonyourharddiskviathegrub4dosmenu,andthen
runRMPrepUSBdirectlyfromaUSBflashdrive.
YoucanmakeabootableWinPEUSBFlashdrivesimplyby
formattingtheUSBFlashdriveusingRMPrepUSBwiththeWinPE
v2/v3[bootmgr]radiobuttontickedandthencopyallthefilesfrom
C:\pe86\ISOovertotheUSBFlashdrive.Thisshouldgetyouout
ofanyproblemsifyoucannotbootyourharddiskatall!

MakinganewbackupofWindows
Ifforanyreasonyouwanttomakeanewbackup,thenjustbootto
theWinPEpartitionagainandtypeD:backup.Theoldbackup.wim
filewillbeerasedandanewonecreated.
Note:Ifyouhavepreviouslymadethebackup.wimfileReadOnly
thentheoperationwillfail.

Automatingtherestore
Ifyouwanttomakeitreallysimplefortheusersothathe/shedoes
nothavetotyped:restorewhentheygettothecommandprompt,
thenyoucanmodifytheboot.wimfileasfollows:
1.Onthe'office'system,launchtheWAIKcommandshell(right
clickrunasadministrator)windowusingtheStartMenu.Closeall
othercmdandExplorerwindows.
2.Typemkdirc:\pe86\mounttocreateanemptyfolder
3.Typedism/MountWim
/wimfile:C:\pe86\iso\sources\boot.wim/index:1
/Mountdir:C:\pe86\mount
4.YoucannowuseWindowsExplorertoedittheimagewhich
youwillfindatC:\pe86\Mount.Note:IfusingWindowsXP,youare
advisedtoholddowntheSHIFTkeyifdeletingfilesorfoldersin
theimage.
5.Copythetwofilesstartnet.cmdandautorestore.cmd,
http://www.rmprepusb.com/tutorials/auto_restore

11/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

whichcanbefoundinthedownloadedAUTOfolder,ontothe
C:\pe86\mount\windows\system32folder(thisoverwritesthe
existingstartnet.cmdfile).
6.Committhechangestoboot.wimusingthecommand:dism
/UnmountWim/MountDir:C:\mount/commit
Note:Ifyoudonotwanttokeepthechanges,
use/discardinsteadof/commit.ReadtheWAIK.chmhelpfiles
formoreinformation.

7.Nowreplacethe\sources\boot.wimonyourtarget
system'srecoverypartitionwiththenewversionfromyour
officePC'sC:\pe86\iso\sources\boot.wim(transferitusinga
USBFlashdrive).
WhenWinPEboots,itwillnowfindandrun\restore.cmdonthe
backuppartitionautomatically.
Ifyounowwanttorunabackupandoverwritethecurrent
backup.wimfile,thentypethesecretkeyBwhenprompted
toanswerYorN.
Ifyouwanttogettothecommandprompt,thentypeBagain
whenbackup.cmdpromptsyoutomakeabackup.
Ifyoudon'twantanyuserpasswordfortheRestoremenuoption,
simplycommentoutthepasswordlineinC:\menu.lstwitha#
characterasshownbelow:
titleRestoretheoriginalWindowsimage\nTip:Thepassword
isRESTOREME\nThentypeRESTOREtorestorethe
originalWindowsimage
#passwordRESTOREME
findsetroot/recovery.tag
chainloader/bootmgr

Makingchanges
Makesurethatanychangesyoumaketothemenu.lstfile
arealsomadetothecopyofmenu.lstontheotherpartition.
Asthisisabackupmenu,itwillbecomeactiveifyourother
partitionbecomescorrupt.Ifyouhavechangedthepartitions
around,youmayfindthattheothermenu.lstisused,so
alwaysduplicateanychangesbycopyingthemodified
menu.lsttooverwritethe2ndcopy.
Themenutimeoutthatappearsfor5secondsisactually
derivedfromC:\menu.lstfile.Youcanaddabackground
imageandmodifythemenuitself.LookatTutorial#21for
detailsaboutgrub4dosandonhowtochangethemenu.
Youcanchangethemenupassword(orremoveit)byediting
theC:\menu.lstfile.
Thescript(.cmd)filesarerunfromthebackup/recovery
partition,thesefilesarerestore.cmdandbackup.cmd.
Restore.cmdwillformatthedrivethatcontainsOS.tagand
thenapplythebackupimagetothesamevolume.Youcan
editthesefilesalso,ifyouwish.DoNOTdoubleclickon
themifyouarerunningWindows!
IfyouhaveaWindowssystemwithabootpartitionanda
systempartition,theenduserwillhavetotypeE:RESTORE
insteadofD:RESTOREinthiscaseyouwillneedto
changethehelpmessageintheC:\menu.lstfilefromD:to
E:(seeredtextinmenubelow).Ifyourtargetharddiskhas
morepartitions,youmayneedtotypeF:RESTOREoreven
G:RESTORE.
AlwayskeepacopyofC:\menu.lstonD:\incasetheC:
volumeisaccidentallywiped,sothatyoucanboottoWinPE
http://www.rmprepusb.com/tutorials/auto_restore

12/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

andrestorethesystemagain.Thesameappliesforthegrldr
filetoo.
The.tagfilesmustnotbedeleted,asthesedeterminewhich
OSisbootedandwherethebackupimageiskept.
Ifyouhaveusedthestartnet.cmdandautorestore.cmdfiles
tomodifythe\sources\boot.wimfile,donotchangethename
of\restore.cmdbecauseautorestore.cmdlooksforthisfile.If
youwanttorunadifferentfile,thendeletethecontentsof
\restore.cmdandthenaddinalineinsideittocallyourown
scriptorexecutable.
IfyouwanttoedittheC:\Menu.lstfileandhavesetthe
propertiestohiddenandreadonly,youmustunsetthesefirst
beforeyoucanchangethecontents.IfyouareattheWinPE
commandconsole,youcandothisusingNotePadandthen
useFileOpenandthenrightclickontheC:\menu.lstfile
andchooseProperties,thenuntickthereadonlycheckbox.
Thepasswordrmprepusbstatementinthemenu.lstfile
preventstheenduserfrombeingabletoeditthemenu.lstfile
whenthemenuisloaded(asgrub4dosnormallyallowsthis
andtheendusercouldseetherestorepassword).Ifyou
wanttochangethemenuwhilstitisrunning,thentypePand
thenenterthepasswordrmprepusbnowyoucaneditthe
menuusingEorgainaccesstothegrub4dosconsoleby
typingC.Notethatanymenuchangesyoumakearemade
toacopyinmemoryandsoarenotpermanent,theyarejust
validforthatsessionanddonotactuallychangethe
contentsofthec:\menu.lstfile.Ineditmodeyoucanadd,
deleteorchangeanylineinamenuandthenhittheESC
keytogetbacktotheusermenuandtestoutthe
changes.SeeTutorial#21formoredetails.
Youcanencryptthepasswordsinthemenu.lstsothateven
iftheusercanviewthemenu.lstfile,hewilljustsee
gibberishtext.Thisisdonebyfindingthemd5hashofyour
passwordandusingthesyntax:
password
md5$1$6$ftCQWsyP7jK5sUt/JMHMi/
seethegrub4dostutorialhereformoredetails.
menu.lst
write(md)0x220+1!BAT\nechonP:0000$[0133]
BOOTMENU
\0
initscript(md)0x220+1
passwordrmprepusb
default0
timeout5
colorwhite/blue
colornormal=0x0chighlight=0x1ehelptext=0x0D
standard=0x02border=0x0c
titleBoottoWindows\n
errorcheckoff
findsetroot/ntldr||findsetroot/bootmgr
chainloader/ntldr||chainloader/bootmgr
titleRestoretheoriginalWindowsimage\nTip:The
passwordisRESTOREME\nThentypeD:RESTORE
torestoretheoriginalWindowsimage
passwordRESTOREME
findsetroot/recovery.tag
chainloader/bootmgr
http://www.rmprepusb.com/tutorials/auto_restore

13/14

17/3/2015

81MakeyourownautomaticWindowsrestorepartition(ImageXbased)RMPrepUSB

GettingHotKeystowork
Ifyouwantthegrub4dosmenutoworkwithhotkeys,thenlookat
Tutorial57.SimplydownloadthehotkeyfilefromTutorial57and
additthesamefolderasthemenu.lstfile.Thenaddtheline/hotkey
tothetopofthemenuandaddthetext^F4totherestoremenu:
e.g.
/hotkey
write(md)0x220+1!BAT\nechonP:0000$[0133]
BOOTMENU\0

initscript(md)0x220+1
passwordrmprepusb
default0
timeout5
colorwhite/blue
colornormal=0x0chighlight=0x1ehelptext=0x0D
standard=0x02border=0x0c
titleBoottoWindows\n
errorcheckoff
findsetroot/ntldr||findsetroot/bootmgr
chainloader/ntldr||chainloader/bootmgr
title^F4F4RestoretheoriginalWindowsimage\nTip:The
passwordisRESTOREME\nThentypeD:RESTOREto
restoretheoriginalWindowsimage
passwordRESTOREME
findsetroot/recovery.tag
chainloader/bootmgr

AUTO_RESTOR SteveSi,13Nov2012,03:27
v.4

Iniciarsesin | Actividadrecientedelsitio | Informardeusoinadecuado | Imprimirpgina | Conlatecnologade GoogleSites

http://www.rmprepusb.com/tutorials/auto_restore

14/14

S-ar putea să vă placă și