Dell pc, windows recovery image and restore issues

Page 5 of 7 FirstFirst ... 34567 LastLast

  1. Posts : 55
    Windows 10 pro
    Thread Starter
       #41

    So I'm wondering from reading your last 2 posts. Original ssd did not have recovery partition and USB created from dell's windows recovery iso worked for recovering the original ssd, but not on new ssd. So why do you think I should have recovery partition on new ssd.

    Am I moving in the right direction in this new plan. Here is new plan.
    1. Create Bootable Rescue Disk from your Windows 10 Recovery Tools - Bootable PE Rescue Disk
    2. Use this new ResetPartitions.txt to recreate partitions.

    Code:
    rem == ResetPartitions.txt ==convert gptrem == 1. System partition =========================create partition efi size=100format quick fs=fat32 label="System"assign letter="S"rem == 2. Microsoft Reserved (MSR) partition =======create partition msr size=16rem == 3. Windows partition ========================rem == a. Create the Windows partition ==========create partition primaryshrink minimum=8450format quick fs=ntfsassign letter="W"rem == 4. Windows RE tools partition ===============create partition primary size=450format quick fs=ntfs label="Windows RE tools"assign letter="T"set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"gpt attributes=0x8000000000000001rem === 4. Recovery Image Partition ======================create partition primaryformat quick fs=ntfs label="OEM Image"assign letter="R"set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"gpt attributes=0x8000000000000001list volumeexit
    
    Do I need to add code below to beginning of ResetPartitions.txt before execution?
    Code:
    select disk 0
    clean
    
    3. Run following commands. Can I create a batch(.bat) from commands bellow? Replacing [Path] to usb drive used to boot up.
    Code:
    rem == Partition drive ==diskpart /s [Path]\ResetPartitions.txtrem == Copy the image to the recovery partition ==md R:\RecoveryImagecopy Install*.swm(s) to R:\RecoveryImage\rem == Apply the image to the Windows partition ==Dism /apply-image /imagefile:R:\RecoveryImage\install.swm /swmfile:R:\RecoveryImage\install*.swm /index:1 /applydir:W:\rem == Copy boot files to the System partition ==W:\Windows\System32\bcdboot W:\Windows:rem == Copy the Windows RE image to the Windows RE Tools partition ==md T:\Recovery\WindowsRExcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\:rem == Register the location of the recovery tools ==W:\Windows\System32\Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target W:\Windows:rem == Register the location of the push-button reset recovery image. ===W:\Windows\System32\Reagentc /Setosimage /Path R:\RecoveryImage /Target W:\Windows /Index 1
    Anything else I'm missing?
      My Computer


  2. Posts : 55
    Windows 10 pro
    Thread Starter
       #42

    So I'm wondering from reading your last 2 posts. Original ssd did not have recovery partition and USB created from dell's windows recovery iso worked for recovering the original ssd, but not on new ssd. So why do you think I should have recovery partition on new ssd.

    Am I moving in the right direction in this new plan. Here is new plan.
    1. Create Bootable Rescue Disk from your Windows 10 Recovery Tools - Bootable PE Rescue Disk
    2. Use this new ResetPartitions.txt to recreate partitions.

    Code:
    rem == ResetPartitions.txt ==
    convert gpt
    
    rem == 1. System partition =========================
    create partition efi size=100
    format quick fs=fat32 label="System"
    assign letter="S"
    
    rem == 2. Microsoft Reserved (MSR) partition =======
    create partition msr size=16
    
    rem == 3. Windows partition ========================
    rem == a. Create the Windows partition ==========
    create partition primary
    shrink minimum=8450
    format quick fs=ntfs
    assign letter="W"
    
    rem == 4. Windows RE tools partition ===============
    create partition primary size=450
    format quick fs=ntfs label="Windows RE tools"
    assign letter="T"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    
    rem === 4. Recovery Image Partition ======================
    create partition primary
    format quick fs=ntfs label="OEM Image"
    assign letter="R"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    
    list volume
    exit
    Do I need to add code below to beginning of ResetPartitions.txt before execution?
    Code:
    select disk 0
    clean
    
    3. Run following commands. Can I create a batch(.bat) from commands bellow? Replacing [Path] to usb drive used to boot up.
    Code:
    rem == Partition drive ==
    diskpart /s [Path]\ResetPartitions.txt
    
    rem == Copy the image to the recovery partition ==
    md R:\RecoveryImage
    copy Install*.swm(s) to R:\RecoveryImage\
    
    rem == Apply the image to the Windows partition ==
    Dism /apply-image /imagefile:R:\RecoveryImage\install.swm /swmfile:R:\RecoveryImage\install*.swm /index:1 /applydir:W:\
    
    rem == Copy boot files to the System partition ==
    W:\Windows\System32\bcdboot W:\Windows
    
    :rem == Copy the Windows RE image to the Windows RE Tools partition ==
    md T:\Recovery\WindowsRE
    xcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\
    
    :rem == Register the location of the recovery tools ==
    W:\Windows\System32\Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target W:\Windows
    
    :rem == Register the location of the push-button reset recovery image. ===
    W:\Windows\System32\Reagentc /Setosimage /Path R:\RecoveryImage /Target W:\Windows /Index 1
    Anything else I'm missing?
      My Computer


  3. Posts : 4,131
    Windows 3.1 to Windows 11
       #43

    You are clearly making this harder then it is......

    Boot My Rescue Disk, insert Dell Recovery USB and open Command Prompt and follow the 6 command lines below

    diskpart /s [USB]:\ResetPartitions.txt

    exit

    Dism /apply-image /imagefile:[USB]:\install.swm /swmfile:[USB]:\install*.swm /index:1 /applydir:W:\

    W:\Windows\System32\bcdboot W:\Windows

    echo F | xcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\

    W:\Windows\System32\Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target W:\Windows

    DONE!!!

    [USB] = Drive letter assigned to Dell recovery USB Drive
      My Computer


  4. Posts : 4,131
    Windows 3.1 to Windows 11
       #44

    ResetPartitions.txt
    Code:
    rem == ResetPartitions.txt ==
    Select Disk 0
    Clean
    convert gpt
    rem == 1. System partition =========================
    create partition efi size=100
    format quick fs=fat32 label="System"
    assign letter="S"
    rem == 2. Microsoft Reserved (MSR) partition =======
    create partition msr size=16
    rem == 3. Create the Windows partition =============
    create partition primary
    shrink minimum=450
    format quick fs=ntfs  label="WinOS"
    assign letter="W"
    rem == 4. Windows RE tools partition ===============
    create partition primary
    format quick fs=ntfs label="WinRE Tools"
    assign letter="T"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    list volume
    exit
    Apply.Bat
    Code:
    diskpart /s %~dp0ResetPartitions.txt
    Dism /apply-image /imagefile:%~dp0install.swm /swmfile:%~dp0install*.swm /index:1 /applydir:W:\
    W:\Windows\System32\bcdboot W:\Windows
    echo F | xcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\
    W:\Windows\System32\Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target W:\Windows
    Exit
    The Apply.Bat assumes that the apply.bat, Resetpartitons.txt, Boot.wim and the install*swm(s) are all in the same directory... And that the Image file also contains the winre.wim....

    Otherwise:
    echo F | xcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\
    Copy %~dp0boot.wim T:\Recovery\WindowsRE\WinRE.wim

    Apply.Bat Revised to search for WinRE.wim in image File else copy file from USB
    Code:
    diskpart /s %~dp0ResetPartitions.txt
    Dism /apply-image /imagefile:%~dp0install.swm /swmfile:%~dp0install*.swm /index:1 /applydir:W:\
    W:\Windows\System32\bcdboot W:\Windows
    If exist W:\Windows\System32\Recovery\Winre.wim (
    echo F | xcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\
    ) Else (Copy %~dp0boot.wim T:\Recovery\WindowsRE\WinRE.wim)
    W:\Windows\System32\Reagentc /Setreimage /Path T:\Recovery\WindowsRE /Target W:\Windows
    Exit
    Now, Because you are using my bootable disk >
    You can go into S: and see the UEFI Boot Files
    You can go into T: and see the WinRE.wim
    You can go into W: and see the Windows OS
    Which should now be Bootable upon Restart
    Last edited by Kyhi; 08 Feb 2017 at 17:46.
      My Computer


  5. Posts : 55
    Windows 10 pro
    Thread Starter
       #45

    So after all of this. Do I still need to use your Windows 10 recovery tools to boot from instead of Dell's Windows recovery USB?
      My Computer


  6. Posts : 55
    Windows 10 pro
    Thread Starter
       #46

    I think I found the problem. I ran apply.bat and I'm getting error.
    Code:
    D:\sources>If exist W:\Windows\System32\Recovery\Winre.wim (echo F   | xcopy /h W:\Windows\System32\Recovery\Winre.wim T:\Recovery\WindowsRE\ )  
    Else (Copy D:\sources\boot.wim T:\Recovery\WindowsRE\WinRE.wim ) W:\Windows\System32\Recovery\winre.wim
    0 File(s) copied
    The size of the D:\sources\boot.wim is 530Mb and partition is only 450Mb.
    I'm thinking to change shrink minimum=450 to 550.

    Is this what you guys think?

    Thanks
    Last edited by lepa71; 11 Feb 2017 at 12:54.
      My Computer


  7. Posts : 55
    Windows 10 pro
    Thread Starter
       #47

    OK. Changing amount to 550 helped. The file was copied successfully, but I'm back stuck on boot logo. Any ideas?

    I will try Kyhi recovery disk and do full system AOMEI backup. I have 32 usb drive and hope it would enough for original 32 gb ssd.

    Still don't get it how or what Dell did to prevent installing full version of windows.
      My Computer


  8. Posts : 4,131
    Windows 3.1 to Windows 11
       #48

    I'm not sure about the Dell Recovery Media you downloaded either........
    My only other thought is you're needing a missing driver for the new SSD...

    I would suggest using macrium to image your old 32gb SSD to USB
    Then apply (restore) that image on the USB to new SSD...

    Have you used the Rescue Disk to actually see what is being applied to the New SSD Partitions???
      My Computer


  9. Posts : 55
    Windows 10 pro
    Thread Starter
       #49

    How do I know or find out if my original ssd is using gpt or mbr? I also wondering. Would I be able to uncompact it when I will clone my original ssd into new one?

    Correct me if I'm wrong. When windows is compact it will use more cpu uncompress on the fly. Right?

    This is the first time I couldn't install windows on blank drive and I have done them a lot.

    Thanks
      My Computer


  10. Posts : 4,131
    Windows 3.1 to Windows 11
       #50

    You can use diskpart > List Disk > and look for GPT flag
    Attachment 120921

    You can also un-compress the OS
    Compact OS - Compress or Uncompress Windows 10
      My Computer


 

  Related Discussions
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 17:02.
Find Us




Windows 10 Forums