Factory recovery - Create a Custom Recovery Partition  

Page 2 of 6 FirstFirst 1234 ... LastLast
  1. SIW2's Avatar
    Posts : 513
    trying to install win10
       01 Jul 2018 #10

    yes.
      My ComputerSystem Spec

  2.    01 Jul 2018 #11

    SIW2 said: View Post
    yes.
    Cheers.
      My ComputerSystem Spec

  3. SIW2's Avatar
    Posts : 513
    trying to install win10
       01 Jul 2018 #12

    Probably only need to change the files on recov partition when it is a change in major version.
      My ComputerSystem Spec

  4. SIW2's Avatar
    Posts : 513
    trying to install win10
       01 Jul 2018 #13

    @Kari, you could do this: then you just need to type in the driveletter e.g. F in the red bit

    Code:
    @ECHO OFF
    
     SET DRIVELETTER=
     ECHO.
     (set WINLOADER=)
    for /f "usebackq tokens=1,2" %%G in (`bcdedit.exe /enum {current} ^| find "path"`) do set WINLOADER=%%H
    ECHO.
     (set LCAL=)
    for /f "usebackq tokens=1,2" %%G in (`bcdedit.exe /enum {current} ^| find "locale"`) do set LCAL=%%H
    ECHO.
    bcdedit /create {ramdiskoptions} /d "Ramdisk"
    bcdedit /set {ramdiskoptions} ramdisksdidevice partition=%DRIVELETTER%:
    bcdedit /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
    for /f "tokens=2 delims={}" %%i in ('bcdedit.exe /create /d "Recovery" /application OSLOADER') do (set guid={%%i})
    bcdedit /set %guid% device ramdisk=[%DRIVELETTER%:]\sources\boot.wim,{ramdiskoptions}
    bcdedit /set %guid% path %WINLOADER%
    bcdedit /set %GUID% locale %LCAL%
    bcdedit /set %guid% osdevice ramdisk=[%DRIVELETTER%:]\sources\boot.wim,{ramdiskoptions}
    bcdedit /set %guid% systemroot \windows
    bcdedit /set %guid% winpe yes
    bcdedit /set %guid% detecthal yes
    bcdedit /displayorder %guid% /addlast
      My ComputerSystem Spec

  5. Kari's Avatar
    Posts : 15,151
    Windows 10 Pro
    Thread Starter
       02 Jul 2018 #14

    SIW2 said: View Post
    @Kari, you could do this: then you just need to type in the driveletter e.g. F in the red bit
    Thanks @SIW2, that's a good idea. Don't understand why I didn't think about it in the first place.

    Edited tutorial, changing the batch file to ask drive letter. However, as I wanted to make it a bit more "elegant" , I added some visual eye candy and made a simple check to assure user has entered a correct drive letter.

    New, edited batch:

    Code:
    @ECHO OFF
    TITLE Add Recovery to Windows boot menu
    :SETLETTER
    CLS
    ECHO.
    ECHO             ###################################################
    ECHO             #                                                 #
    ECHO             #   This batch file creates recovery environment  #
    ECHO             #        adding it to Windows boot menu.          #
    ECHO             #                                                 #
    ECHO             ###################################################
    ECHO.
    SET /P DRIVELETTER= ^-- Please enter drive letter for your custom recovery partition (without colon): 
    IF NOT EXIST %DRIVELETTER%:\sources\boot.wim ECHO. & ECHO No valid Windows image found on given partition %DRIVELETTER% &ECHO. & PAUSE & GOTO :SETLETTER
    ECHO.
    bcdedit /create {ramdiskoptions} /d "Ramdisk"
    bcdedit /set {ramdiskoptions} ramdisksdidevice partition=%DRIVELETTER%:
    bcdedit /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi
    for /f "tokens=2 delims={}" %%i in ('bcdedit.exe /create /d "Recovery" /application OSLOADER') do (set guid={%%i})
    bcdedit /set %guid% device ramdisk=[%DRIVELETTER%:]\sources\boot.wim,{ramdiskoptions}
    bcdedit /set %guid% path \windows\system32\winload.efi
    bcdedit /set %guid% osdevice ramdisk=[%DRIVELETTER%:]\sources\boot.wim,{ramdiskoptions}
    bcdedit /set %guid% systemroot \windows
    bcdedit /set %guid% winpe yes
    bcdedit /set %guid% detecthal yes
    bcdedit /displayorder %guid% /addlast
    Click image for larger version. 

Name:	image.png 
Views:	30 
Size:	508.3 KB 
ID:	194332

    Kari
      My ComputerSystem Spec

  6. Kari's Avatar
    Posts : 15,151
    Windows 10 Pro
    Thread Starter
       02 Jul 2018 #15

    simrick said: View Post
    Okay, good to know. But then I would have to make sure to keep it updated on a regular basis, (twice a year), because a repair install has to be at least the same version as you're running...or am I getting myself confused?
    In the same way you have to create a new install media for each new feature upgrade, you must create a new recovery environment for it.

    Once created, you don't have to run the batch file again. When Windows will for instance be upgraded to version 1809 late this year, you just do the Part One from tutorial capturing new image. Then, delete contents on Recovery partition replacing everything with contents of version 1809 ISO image, and finally replace the install.wim or install.esd file in its Sources folder with your custom install.wim.

    Might take 10 or 15 minutes of your time twice a year but is worth of it.

    Kari
      My ComputerSystem Spec

  7.    02 Jul 2018 #16

    Kari said: View Post
    In the same way you have to create a new install media for each new feature upgrade, you must create a new recovery environment for it.

    Once created, you don't have to run the batch file again. When Windows will for instance be upgraded to version 1809 late this year, you just do the Part One from tutorial capturing new image. Then, delete contents on Recovery partition replacing everything with contents of version 1809 ISO image, and finally replace the install.wim or install.esd file in its Sources folder with your custom install.wim.

    Might take 10 or 15 minutes of your time twice a year but is worth of it.

    Kari
    Thank you, Kari. Appreciate that explanation.
      My ComputerSystem Spec

  8.    21 Jul 2018 #17

    Hi,

    I followed this tutuorial. It did create a new option in the boot menu. However when I boot from the recovery partition WinPE loads "loading files" after tha a command prompt starts with wpeinit. Then it waits. I need to find the drive letter for my recovery partition then I can start setup.exe.

    Should it not boot from the the recovery parthtion automatically using setup.exe. Perhaps my ISO was created wrong

    Thanks
      My ComputerSystem Spec

  9. Kari's Avatar
    Posts : 15,151
    Windows 10 Pro
    Thread Starter
       21 Jul 2018 #18

    Fafaxx said: View Post
    Should it not boot from the the recovery parthtion automatically using setup.exe. Perhaps my ISO was created wrong.
    The recovery option in boot menu, when recovery partition is setup correctly as told in this tutorial, boots to this:

    Click image for larger version. 

Name:	image.png 
Views:	14 
Size:	153.1 KB 
ID:	196662

    On the other hand, if boot media is a normal WinPE media (tutorial), it boots to Command Prompt and runs wpeinit command to enable networking.

    Sounds to me that you boot to WinPE.

    Kari
      My ComputerSystem Spec

  10.    22 Jul 2018 #19

    Yes, there was a problem with boot.wim. I corrected it and now it works. I modified boot.wim earlier with language packs and driver and it grew almost to 800 MB. I took the one which was shipped and only injected the language packs I needed. Now it is fine and it boots directly to setup.exe with the choices to select languages to continue setup. It is a nice thing.

    Thank you for this tutorial!!
      My ComputerSystem Spec


 
Page 2 of 6 FirstFirst 1234 ... LastLast

Tutorial Categories

Factory recovery - Create a Custom Recovery Partition Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
Hello everyone. I have a fairly new Dell laptop that I installed a SSD in after cloning the original HDD. Somehow the factory recovery partition was not copied to the SSD. I have tried twice to upgrade to W-10 and each time it has failed with...
Hello everyone, I would like to ask. How can I restore Windows to Factory reset with all Acer apps and drivers like recovery management, etc. I have Acer Aspire E5 with Windows 10 and I tried (for the first time when I had Recovery Management)...
Custom Recovery Partition in Installation and Upgrade
Hello, I have a fresh intalled Win-10 NVMe P50 with all necessary drivers etc. All factory partitions were deleted before installing Win-10. Was wondering how to create a Recovery Partition that would work like Lenovo factory system does...
So how would the home user do this if they wanted to create a recovery after their Windows 10 upgrade. I know for Windows 8 you could do the recimg thing to create the image file. I tried doing the commands listed in one of the thread to create the...
Installation & Upgrade Create Custom Recovery Image in Windows 10 in Tutorials
How to Create a Custom Recovery Image used to Refresh Windows 10 This tutorial no longer works starting with Windows 10 build 10130 released on May 29th 2015. The "C:\Windows\System32\recimg.exe" file has been removed in build 10130, and will...

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:21.
Find Us