Unable to reset your pc. A required drive partition is missing

Discussion in 'Windows 8' started by naelopan, Jul 24, 2013.

  1. naelopan

    naelopan MDL Novice

    Apr 3, 2013
    3
    0
    0
    #1 naelopan, Jul 24, 2013
    Last edited by a moderator: Apr 20, 2017
    I installed Win8 Pro by booting into Win PE and then running a Diskpart script and a Batch file.
    Code:
    rem == CreatePartitions-UEFI.txt ==
    rem == These commands are used with DiskPart to
    rem    create five partitions
    rem    for a UEFI/GPT-based PC.
    rem    Adjust the partition sizes to fill the drive
    rem    as necessary. ==
    select disk 0
    clean
    convert gpt
    rem == 1. Windows RE tools partition ===============
    create partition primary size=300
    format quick fs=ntfs label="Windows RE tools"
    assign letter="T"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    rem == 2. System partition =========================
    create partition efi size=100
    rem    ** NOTE: For Advanced Format 4Kn drives,
    rem               change this value to size = 260 ** 
    format quick fs=fat32 label="System"
    assign letter="S"
    rem == 3. Microsoft Reserved (MSR) partition =======
    create partition msr size=128
    rem == 4. Windows partition ========================
    rem ==    a. Create the Windows partition ==========
    create partition primary 
    rem ==    b. Create space for the recovery image ===
    shrink minimum=15000
    rem       ** NOTE: Update this size to match the size
    rem                of the recovery image           **
    rem ==    c. Prepare the Windows partition ========= 
    format quick fs=ntfs label="Windows"
    assign letter="W"
    rem === 5. Recovery image partition ================
    create partition primary
    format quick fs=ntfs label="Recovery image"
    assign letter="R"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    list volume
    exit
    Applyimage.bat
    Code:
    rem These commands copy the selected image file to
    rem predefined hard disk partitions on a UEFI-based computer.
    
    rem Usage:   ApplyImage WimFileName 
    rem Example: ApplyImage E:\Images\ThinImage.wim
    
    rem === Copy the image to the recovery image partition =======================
    mkdir R:\RecoveryImage
    copy %1 R:\RecoveryImage\install.wim
    
    rem === Apply the image to the Windows partition =============================
    dism /Apply-Image /ImageFile:R:\RecoveryImage\install.wim /Index:1 /ApplyDir:W:\
    
    rem === Copy the Windows RE Tools to the Windows RE Tools partition ==========
    md T:\Recovery\WindowsRE
    attrib -a -s -h W:\windows\system32\recovery\winre.wim
    copy W:\windows\system32\recovery\winre.wim T:\Recovery\WindowsRE\winre.wim
    
    rem === Copy boot files from the Windows partition to the System partition ===
    bcdboot W:\Windows
    
    rem === In the System partition, set the location of the Windows partition ===
    W:\Windows\System32\reagentc /setosimage /path R:\RecoveryImage /target W:\Windows /index 1
    
    rem === In the System partition, set the location of the WinRE tools =========
    W:\Windows\System32\reagentc /setreimage /path T:\Recovery\WindowsRE /target W:\Windows /bootkey 0x3d00
    
    
    Win8 Was loaded successfully, however in Settings->General, the Refresh my PC and Reset my PC would not work. When trying Refresh my PC it says the windows drive is locked and i need to unlock it first. When trying Resetting my PC, it says "Unable to Reset your pc. A required drive partition is missing".
    It is a HP Envy m6 laptop with UEFI. When I enable Legacy Mode in BIOS and using the same method to load Win8, the Reset my PC functions correctly. But it fails when i disable "Legacy mode" to use UEFI only.
    Can anyone enlighten me on this issue? Any comment is appreciated. Thanks.
     
  2. ODY123

    ODY123 MDL Expert

    Apr 20, 2011
    1,164
    181
    60
    #2 ODY123, Jul 24, 2013
    Last edited by a moderator: Apr 20, 2017
    For me, I just needed to install win8 on the gpt disk, uefi and msr partitions will be created automatically...
     
  3. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,965
    908
    60
    I'm assuming you've boot winpe in UEFI mode?
    Have you stepped through the script?
    1). Does winre.wim get copied to t:\Recovery\Winre?
    2). The last reagentc command with /setreimage. Does that run? /bootkey is a win7 feature & not supported by win8.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. yahyoh

    yahyoh MDL Member

    Dec 6, 2012
    135
    20
    10
    u need flash with W8 on it ;)

    but i tested one time and took one hour to reach 5% :mad:
    i ended using normal format method and only took about 13 Minutes to be in Windows :p
     
  5. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,965
    908
    60
    That sounds like you did a full reset/format instead of a quick/remove files...

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. naelopan

    naelopan MDL Novice

    Apr 3, 2013
    3
    0
    0
    Thanks. Yeah, i found it didn't work in Win8. Does that mean pressing F3 during boot works in Win7?
     
  7. naelopan

    naelopan MDL Novice

    Apr 3, 2013
    3
    0
    0
    Thanks.
    1. Winre was copied
    2. It showed a message saying the path was successfully set.