OEM Recovery Partition Creator for Windows

Discussion in 'MDL Projects and Applications' started by AnarethoS, Sep 11, 2010.

  1. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,794
    90
    If you get an error try to see exactly what the error is so we are not troubleshooting in the dark. ;)
     
  2. BrianMavPost

    BrianMavPost MDL Novice

    Jun 27, 2013
    14
    1
    0
    Thanks AnarethoS this is a great & useful tool!

    As I have used a couple of things from this site already & this will b a 3rd I'd like to contribute if I can.

    I'm a professional software developer so if you haven't sorted out the issue about a GUI for partitioning the hard disk then I'm willing to create it for you which will then generate or edit the files. The same GUI could also be run in unattended mode to use the file to re-create the partitions. Let me know what you think.


    Had an idea about those that want to have a data directory & during a restore don't want that data partition I was looking at the ResetPartitions.txt for how this could be achieved. Except I don't know in which cases of the restore process the ResetPartitions.txt file is used.

    Original script as follows for MBR. Will try GPT next, not sure why Windows x86 wasn't GPT compatible (tested under VMWare only). LIST PART returns the same result if either the original or the updated script is executed. It does mean the original partitioning has to be done by hand first though. Note GPT doesn't allow extended partitions which is why the GPT data is a primary.

    Original MBR
    SELECT DISK 0
    CLEAN
    CREATE PARTITION PRIMARY SIZE=12000
    FORMAT FS=NTFS QUICK LABEL=RECOVERY
    SET ID=27
    CREATE PARTITION PRIMARY SIZE=150
    ACTIVE
    FORMAT FS=NTFS QUICK LABEL=SYSTEM
    CREATE PARTITION PRIMARY SIZE=32768
    FORMAT FS=NTFS QUICK LABEL=WINDOWS
    CREATE PARTITION EXTENDED
    CREATE PARTITION LOGICAL
    FORMAT FS=NTFS QUICK LABEL=DATA

    Alternate MBR
    SELECT DISK 0
    SELECT PARTITION=1
    DELETE PARTITION OVERRIDE NOERR
    SELECT PARTITION=2
    DELETE PARTITION OVERRIDE NOERR
    SELECT PARTITION=3
    DELETE PARTITION OVERRIDE NOERR
    CREATE PARTITION PRIMARY SIZE=12000
    FORMAT FS=NTFS QUICK LABEL=RECOVERY
    SET ID=27
    CREATE PARTITION PRIMARY SIZE=150
    ACTIVE
    FORMAT FS=NTFS QUICK LABEL=SYSTEM
    CREATE PARTITION PRIMARY SIZE=32768
    FORMAT FS=NTFS QUICK LABEL=WINDOWS

    Original GPT
    SELECT DISK 0
    CLEAN
    CONVERT GPT
    CREATE PARTITION PRIMARY SIZE=12000
    FORMAT FS=NTFS QUICK LABEL=RECOVERY
    SET ID=de94bba4-06d1-4d40-a16a-bfd50179d6ac
    CREATE PARTITION EFI SIZE=150
    FORMAT FS=FAT32 QUICK LABEL=SYSTEM
    CREATE PARTITION MSR SIZE=128
    CREATE PARTITION PRIMARY SIZE=32768
    FORMAT FS=NTFS QUICK LABEL=WINDOWS
    CREATE PARTITION PRIMARY
    FORMAT FS=NTFS QUICK LABEL=DATA

    Alternate GPT

    SELECT DISK 0
    SELECT PARTITION=1
    DELETE PARTITION OVERRIDE NOERR
    SELECT PARTITION=2
    DELETE PARTITION OVERRIDE NOERR
    SELECT PARTITION=3
    DELETE PARTITION OVERRIDE NOERR
    SELECT PARTITION=4
    DELETE PARTITION OVERRIDE NOERR
    CREATE PARTITION PRIMARY SIZE=12000
    FORMAT FS=NTFS QUICK LABEL=RECOVERY
    SET ID=de94bba4-06d1-4d40-a16a-bfd50179d6ac
    CREATE PARTITION EFI SIZE=150
    FORMAT FS=FAT32 QUICK LABEL=SYSTEM
    CREATE PARTITION MSR SIZE=128
    CREATE PARTITION PRIMARY SIZE=32768
    FORMAT FS=NTFS QUICK LABEL=WINDOWS



    I read this entire thread from start to end in about 3 days.
     
  3. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,743
    772
    60
    Your better off leaving it as fat32 anyway. That way UEFI is properly supported.
     
  4. BrianMavPost

    BrianMavPost MDL Novice

    Jun 27, 2013
    14
    1
    0
    I was trying to help come up with a way to be able to use most of the DVD space. The problem I read later (20 or so pages) on was due to the splitting not using the requested size. If he chose 4000 MB sometimes it would generate a file that wouldn't fit on the DVD.
     
  5. BrianMavPost

    BrianMavPost MDL Novice

    Jun 27, 2013
    14
    1
    0
    AnarethoS where are the partitions deleted in the different restore modes. Are they done by you in the CMD files? Bear with me as I haven't read any of the documentation or checked the files as I'm writing these comments while they're fresh in my head after reading all the pages.
     
  6. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,888
    16,542
    340
    Thread name changed.

    :hug2:
     
  7. dv8ed

    dv8ed MDL Novice

    Mar 24, 2011
    24
    0
    0
    #2711 dv8ed, May 30, 2014
    Last edited by a moderator: Apr 20, 2017
  8. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,794
    90
    If you are trying to use the oem folder on a legit legal win 8.x machine (with oem-dm key in bios) then you will HAVE to include a pid.txt file with a install key that you can find just by googling (lol). Add that to the pid.txt file and put in in the source folder of the iso....now your oem folder will work. If this is the case. You really need to provide more info like with os and version you are using and if it is legit oem activated. I'm shooting in the dark here. lol
     
  9. dv8ed

    dv8ed MDL Novice

    Mar 24, 2011
    24
    0
    0
    No we're like a small computer store we use Asus & Gigabyte motherboards. We use OEM media then attach product key license to side of PC see attached image of Windows 7 & Windows 8.1 media we use.

    View attachment 29188
     
  10. The_Guardian

    The_Guardian Contributor

    May 7, 2012
    2,054
    6,794
    90
    Then in that case in the xml file put complete path so the os knows where to find it....put in oem folder as to the path of the image file. The xml file and oem folder location with the image in it should match. ;)
     
  11. 9741da

    9741da MDL Novice

    May 30, 2014
    4
    0
    0
    How do I change entering to recovery environment from F7 key to F11?

    P.S. found in thread. Thanks go to cerberus8855 and google.:)
     
  12. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,200
    1,403
    60
    Whye? The old nam was obvious about the use of the software : Recovery Partition.

    "Anarethos Recovery Tools" don't say much it think. But this is my own opinion anyway.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,200
    1,403
    60
    Which OS?

    Which restore mode?

    Under Windows 8, it is made by M$ based on the ResetPartition.xml files.

    Under Windows 7, it is made by my CMD file that are Embedded in the modified WINRE.WIM file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,888
    16,542
    340
    Sorry, I thought that it would be useful. Anyway, if you want I can restore it. But what was the old one?? :rolleyes:
     
  15. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,200
    1,403
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. AnarethoS

    AnarethoS MDL Expert

    Jul 31, 2009
    1,200
    1,403
    60
    I don't really care. I just wanted to know the reason.

    For now, we can keep it this way. If I find a super-fabulous name later, I will tell you :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...