WinPE Auto Recovery Partition - four files, open source

Discussion in 'MDL Projects and Applications' started by stayboogy, Nov 26, 2023.

  1. stayboogy

    stayboogy MDL Addicted

    May 1, 2011
    855
    227
    30
    #1 stayboogy, Nov 26, 2023
    Last edited: Nov 26, 2023
  2. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    396
    97
    10
    hello thank you for works recovery oem anarethos is verry well ????
     
  3. Exe_new

    Exe_new MDL Novice

    Oct 25, 2022
    13
    12
    0
    wow bro this so cool... :)
     
  4. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    603
    379
    30
    Dear friend, it seems like a great job.

    I arrived here through his comment on Tito's profile.

    I have a doubt...

    Does it support all versions of Windows, like Windows 11 23H2 for example?

    Tnaanks in advanced.

    Best Regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,585
    1,584
    150
    Its WinPE, shoudnt care about OS..
     
  6. stayboogy

    stayboogy MDL Addicted

    May 1, 2011
    855
    227
    30
    OS independent.

    You have to create your own WinPE using the WAIK, which could be x86 or x64 or arm64, and could be booted in either uefi mode, or csm mode.

    I use WinPE 10 from the WAIK with no added components and can do this with any Windows OS, any architecture.

    Edit: I just did this on a native Windows 11 installed gaming laptop using 10x64 WinPE. If you know how to deal with boot situations properly you should be fine. Choose your matching architecture and go. The wims from the WAIK are only about 300-350mb so not that much space is needed either for the recovery wim.
     
  7. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    603
    379
    30
    My dear friend,

    Is it possible to use an external SSD as a recovery drive?

    The scenario would be the following:

    HDD/SSD/NVME partitioned following the models below:

    MBR
    ReCreatePartitions.-1000GB+RECOVERY.txt

    .REM - MBR for BIOS
    REM DISK 0 : SYSTEM DISK
    REM Partition 1 : System / NTFS / 260mb / S:
    REM Partition 2 : Windows / NTFS / 204800mb/ C:
    REM Partition 3 : Data / NTFS / All drive / D:
    REM DISK 1 : RECOVERY DISK
    REM Partition 1 : wINDOWS RECOVERY / NTFS / All Drive / R:
    select disk 0
    clean
    create partition primary size=260
    format quick fs=ntfs label="System Reserved"
    assign letter="S"
    active
    create partition primary size=204800
    format quick fs=ntfs label="SSDESKTOP SYSTEM"
    assign letter="C"
    create partition primary
    format quick fs=ntfs label="SSDESKTOP USERPROFILES"
    assign letter="D"
    select disk 1
    clean
    create partition primary
    format quick fs=ntfs label="wINDOWS RECOVERY"
    set id=27
    assign letter="R"
    exit

    UEFI
    ReCreatePartitions-GPT_UEFI-1000GB+RECOVERY.txt

    .REM - GPT for UEFI
    REM DISK 0 : SYSTEM DISK
    REM Partition 1 : System / NTFS / 100mb / S:
    REM Partition 2 : Microsoft Reserved (MSR) partition / 16
    REM Partition 2 : Windows / NTFS / 204800mb/ C:
    REM Partition 3 : Data / NTFS / All drive / D:
    REM DISK 1 : RECOVERY DISK
    REM Partition 1 : wINDOWS RECOVERY / NTFS / All Drive / R:
    select disk 0
    clean
    create partition primary size=100
    format quick fs=ntfs label="System"
    assign letter="S"
    create partition msr size=16
    create partition primary size=204800
    format quick fs=ntfs label="SSDESKTOP SYSTEM"
    assign letter="C"
    create partition primary
    format quick fs=ntfs label="SSDESKTOP USERPROFILES"
    assign letter="D"
    select disk 1
    clean
    create partition primary
    format quick fs=ntfs label="wINDOWS RECOVERY"
    assign letter="R"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    exit

    Thus, the recovery would be done by plugging the external SSD into a USB port or an internal Hotswap drawer so that the recovery unit can be removed from the machine and stored for greater security.

    It's possible to implement?

    Thanks in advanced.

    Best Regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. stayboogy

    stayboogy MDL Addicted

    May 1, 2011
    855
    227
    30
    #8 stayboogy, Jan 20, 2024
    Last edited: Jan 20, 2024
    (OP)
    I am sorry but I don't understand........surely there is better way to ask whatever this is???

    ARE YOU ASKING: can my recovery be on a removeable drive, and restore to an internal drive?

    If so, yes. Just set it up the proper way, but I am not doing it for you if that is what you are asking.

    you will also have to change my scripts for this purpose to look for the .tags on more partitions than I have. you will need to change a lot of what I have done to work with your multiple partition and drive set up.

    the main point of this recovery is on "fixed internal drives, with a fixed partiton structure," however it isn't hard to make this work using a removeable drive. And this is meant to recover Windows, not data, not a full drive.

    The way you have that scripted, no, it is not doing that.

    All your scripting language there does is create partitions. There is more to recovery than recreating partitions.

    Ask your question a better way and maybe I can help.

    if your goal is to have a complete copy of your internal hdd on an external hdd, just make a complete image of the drive, and store it somewhere safe, and do it that way. No need to reinvent the wheel.

    and forgive my confusion to your question--I am more than glad to help if I can understand better
     
  9. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    603
    379
    30
    Hi dear friend,

    I just put an example of the partitioning model I normally use, but just putting the recovery drive on another external disk.

    The reason is simple, if the system disk has an electrical or mechanical failure making it obsolete, this will not affect the recovery unit, which could even be turned off until it becomes necessary to use it, I have had problems where the unit was seriously compromised by electrical discharges in the electrical network, so I thought about putting it in an external one, that way I would only replace the defective disk and do the recovery.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. stayboogy

    stayboogy MDL Addicted

    May 1, 2011
    855
    227
    30
    #10 stayboogy, Jan 20, 2024
    Last edited: Jan 20, 2024
    (OP)
    absolutely possible.

    now, your typical partitioning scheme may just need to be adjusted to make it work a little easier without much scripting work on your part.

    It was also confusing why you have one in mbr and one in uefi. This seems unnecessary.

    It really is confusing what you posted there LOL.

    also, are you wanting to make a recovery image of Windows, or of your other partitions, or all of them?

    i still need more info really...

    And, in the words of Doc Brown, "You can accomplish anything if you put your mind to it."
     
  11. stayboogy

    stayboogy MDL Addicted

    May 1, 2011
    855
    227
    30
    I am going to make a 3 hdd system in a vm on my dell, and do screenshots / video of the setup and recovery process.
     
  12. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,007
    956
    90
    Looks pretty good. I tried something similar years ago but found setting "bootmenupolicy legacy" did not stick. I even tried editing the BCD templates...
    Perhaps this is no longer the case...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. stayboogy

    stayboogy MDL Addicted

    May 1, 2011
    855
    227
    30
  14. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    396
    97
    10
    Good morning
    i do not have access to the video on rumble NOTICE TO USERS IN FRANCE

    Because of French government requests to remove creators from our platform, Rumble is currently unavailable in France. We are challenging these government requests and hope to restore access soon. can you put it on another link, drain or other please because I don't understand well I downloaded your files but I have a factory folder.wim in yellow while on your photo the icon and white thank you in advance
     
  15. JeepWillys58

    JeepWillys58 MDL Addicted

    Nov 6, 2010
    603
    379
    30
    It's the same here in Brazil,

    The dirty government here doesn't want people to see that the communists are being expelled and kicked out by everyone's people and that their days are numbered, it's also happening where there are corrupt governments, use a VPN and you can see it my friend .

    Many truths about the New World Order and the WEF are being exposed in the Rumble and they will try to hide it, but soon they will be deposed and everyone will be arrested, tried and executed for their crimes, then we will have freedom.

    Best Regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...