Factory recovery - Create a Custom Recovery Partition  

  1. Kari's Avatar
    Posts : 17,063
    Windows 10 Pro
    Thread Starter
       #50

    vgkfan83 said:
    I have a lot of Software installed as well. I have 4 Adobe programs installed. Those 4 themselves use 7.4GB of storage.
    Yeah.

    Just to explain, I had one of those for me extremely rare "let's think about other users" moments (honestly, I am the most egocentric b***ard you've ever met!) and I were suddenly a bit worried about the size of your captured image.

    However, after reading your posts and seeing the size of your C: drive and seeing the size of captured image was / is within acceptable limits, I stopped worrying.

    Kari
      My Computer

  2. JMedlock83's Avatar
    Posts : 575
    Windows 10 Pro x64
       #51

    Kari said:
    Yeah.

    Just to explain, I had one of those for me extremely rare "let's think about other users" moments (honestly, I am the most egocentric b***ard you've ever met!) and I were suddenly a bit worried about the size of your captured image.

    However, after reading your posts and seeing the size of your C: drive and seeing the size of captured image was / is within acceptable limits, I stopped worrying.

    Kari
    It probably would've only been about 5-8GB without all the software installed. I just get tired of uninstalling/reinstalling crap every single time I have to do a fresh install. If you are the one that came up with this Tutorial, you are a godsend!
      My Computers

  3. JMedlock83's Avatar
    Posts : 575
    Windows 10 Pro x64
       #52

    @Kari,


    I created a new install.wim file. I have not uninstalled anything from my previous creation, but added more software. The NEW install.wim is 15.9GB. . . The original is 23.9GB. . . What's the deal? LOL


    Could it be because I deleted the Windows.old folder a few days ago?
      My Computers

  4. Kari's Avatar
    Posts : 17,063
    Windows 10 Pro
    Thread Starter
       #53

    vgkfan83 said:
    Could it be because I deleted the Windows.old folder a few days ago?
    Most probably.

    Tip   Tip
    Everything on drive C: will be included in captured install.wim file. Before capturing it for my custom recovery partition, I have a routine to make resulting WIM file as small as possible. Here's what I do on every machine, every time:
    • Completely empty user profile folders (Documents, Pictures, Videos, Music, do not touch AppData folder!), backing all personal data to an external disk.
    • Unlink OneDrive (tutorial), when unlinked delete everything in OneDrive folder.
    • Run full Disk Cleanup (tutorial, see Option Two) selecting absolutely everything there is to clean / remove.

    When WIM file is then captured, I'll link OneDrive again and copy backed up personal files back to user profile folders.

    Kari
      My Computer

  5. D4ni3l's Avatar
    Posts : 287
    Microsoft Windows 10 x64
       #54

    There is a way to minimize the size of install.wim file by excluding some useless files
    read DISM Configuration List and WimScript.ini Files | Microsoft Docs

    Create a WimScript.ini file containing
    Code:
    [ExclusionList]
    \$ntfs.log
    \hiberfil.sys
    \pagefile.sys
    \swapfile.sys
    "\System Volume Information"
    \RECYCLER
    \$RECYCLE.BIN
    \Windows\CSC
    \$WINDOWS.*
    \Windows\SoftwareDistribution
    Any other exclusion is possible.
    You can even exclude some user profiles by adding \Users\<account_name> in the ExclusionList

    and run

    Code:
    dism /capture-image /imagefile:Z:\install.wim /capturedir:D:\ /ConfigFile:<path>\WimScript.ini /name:"Recovery" /compress:maximum
    Last edited by D4ni3l; 05 Aug 2018 at 05:48.
      My Computer

  6. dtonkz's Avatar
    Posts : 1
    Windows 10
       #55

    Hi, everybody,
    SIW2 said:
    Yep. Kari's batch file sets a drive letter.
    if you want to hide recovery partition ? Change partition ID;
    after step 3.5, run cmd as administrators.

    open disk part;

    1 - DISKPART> select disk 0
    2 - DISKPART> list partition
    3 - DISKPART> select partition 1 (Now, select the recovery partition)
    [4 is Optional for don't remember recovery part]
    4 - DISKPART> detail partition (verify that it is recovery. Remember the Type value, this will be handy if something goes wrong)
    5 - DISKPART> set id = 27
    if everything goes ok, you will receive the following message “Diskpart successfully set the partition ID.“
    6 - DISKPART> exit (all done. close diskpart)

    07 = Windows NTFS
    17 = Hidden
    27 = OEM Recovery


    Finally, check Disk Management ; drive letter has been removed to the recovery partition and filesystem empty.
    Look like original OEM/Recovery partition on your hard drive.
      My Computer

  7. JMedlock83's Avatar
    Posts : 575
    Windows 10 Pro x64
       #56

    @Brink Can you create a recovery partition using a USB Flash Drive instead?
      My Computers


  8. Brink's Avatar
    Posts : 48,035
    64-bit Windows 10 Pro for Workstations build 19619
       #57

    vgkfan83 said:
    @Brink Can you create a recovery partition using a USB Flash Drive instead?

    Hello Jeremy,

    You could create a bootable USB recovery drive.

    Create Recovery Drive in Windows 10 | Tutorials
      My Computers

  9. Kari's Avatar
    Posts : 17,063
    Windows 10 Pro
    Thread Starter
       #58

    In addition to what Brink told above:

    If you create a recovery partition as told in this tutorial, containing full Windows install media, it must be formatted as NTFS because the custom install.wim file is usually over 4 GB, the limit on FAT32 partition.

    In that case, see this tutorial for how to prepare your USB Flash Drive: Create bootable USB installer if install.wim is greater than 4GB | Tutorials

    Kari
      My Computer

  10. Jan Kirk
    Posts : 1
    windows 10
       #59

    Hi everyone

    This looks like a nice method for creating a custom recovery partition.
    Only, I'm not entirely sure I got it right with this situation:
    I forget for a few months, after the windows version has changed, to update my recovery partition with new windows.iso and install.wim. With this method will I still be able to recreate my now outdated windows installation, and then after that update it ?
    One method I could imagine would be to keep a usb windows 10 standard installation media with the version of my present recovery partition. Then if the bad luck is out, I will first do a normal windows installation, followed by recovery from my partition. Would that work ?

    Thanks for the thread
      My Computer


 

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
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 14:48.
Find Us




Windows 10 Forums
 

This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy.   Read more
I agree
Powered by cookie-script.com