1 2 Previous Next 15 Replies Latest reply on Oct 27, 2017 9:11 AM by gmb019-Bucknell

    Windows 10 Partitioning Scheme

    GJHorn Specialist

      Has anybody figured out how to completely partition a laptop during provisioning with a EFI System Reserved partition, Microsoft Reserved partition (MSR), C:Windows, and Recovery partition? Can this be done?

       

      In other words, can the following partition scheme be implemented?

      dep-win10-partitions-uefi.png

      Can this be done using Actions in LANDesk provisioning?

        • 1. Re: Windows 10 Partitioning Scheme
          1EarEngineer Specialist

          Depending on how your image was captured will determine what's needed, but if you use Image X, make sure to add the partition action and then pick Create Default partitions.

          • 2. Re: Windows 10 Partitioning Scheme
            Alex.Richardson SSMMVPGroup

            As Jason said the best solution is to use ImageX as being a file based imaging utility you need to prepare the disk first and there is a default action to do this automatically that will check if the system is UEFI or legacy BIOS and setup the partitions for the relevant type. This means you need 1 image per OS for either BIOS type so saves on image maintenance.

             

            If you use the New Template - Deploy Template wizard it will create the template for you with the correct actions required.

             

            Default Part.png

            • 3. Re: Windows 10 Partitioning Scheme
              GJHorn Specialist

              Yes, I understand but the System Reserved partition is set to 100MB. In theory it should be set higher due to some Windows 10 feature upgrades not being able to complete due to System Reserved partition too small.

               

              Any other thoughts?

               

              Thanks for your help.

              • 4. Re: Windows 10 Partitioning Scheme
                GJHorn Specialist

                Also when installing Windows 10 on a fresh computer, the System Reserved partition is set to 500 MB by the installer.

                • 5. Re: Windows 10 Partitioning Scheme
                  jameshopkins Apprentice

                  Hi, did you ever get this to work? Seems that if you use 'Create default partitions' LANDesk action it doesnt give you the option to create a recovery partition.

                   

                  I tried to set it up using the commands here - UEFI/GPT-based hard drive partitions | Microsoft Docs

                   

                  But could never get it to work properly.

                   

                  rem == CreatePartitions-UEFI.txt ==

                  rem == These commands are used with DiskPart to

                  rem    create four 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. 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 == 2. Microsoft Reserved (MSR) partition =======

                  create partition msr size=16

                  rem == 3. Windows partition ========================

                  rem ==    a. Create the Windows partition ==========

                  create partition primary

                  rem ==    b. Create space for the recovery tools ===

                  shrink minimum=500

                  rem       ** NOTE: Update this size to match the

                  rem                size of the recovery tools

                  rem                (winre.wim) plus free space                   **

                  rem ==    c. Prepare the Windows partition =========

                  format quick fs=ntfs label="Windows"

                  assign letter="W"

                  rem === 4. Recovery tools partition ================

                  create partition primary

                  format quick fs=ntfs label="Recovery tools"

                  assign letter="R"

                  set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"

                  gpt attributes=0x8000000000000001

                  list volume

                  exit

                   

                  You can then use diskpart to use the txt with the commands, as below:

                   

                  • 6. Re: Windows 10 Partitioning Scheme
                    jdseymour01716 Apprentice

                    Here is my diskpart script which seems to work ok for a UEFI system

                     

                    -------------------------------------------------------------------------------------------------

                    select disk 0
                    clean
                    convert gpt

                     

                    REM == 1. System partition =========================
                    create partition efi size=500
                    format quick fs=fat32 label="System"
                    assign letter="S"

                     

                    REM == 2. Microsoft Reserved (MSR) partition =======
                    create partition msr size=128

                     

                    REM == 3. Windows partition ========================

                     

                    REM ==  a. Create the Windows partition ==========
                    create partition primary

                     

                    REM == b. Shrink Partition to make room for WinRE Tools Partition ===
                    shrink minimum=500

                     

                    REM == c. Prepare the Windows partition =========
                    format quick fs=ntfs label="Windows"
                    assign letter="C"

                     

                    REM == 4. Windows RE tools partition ===============
                    create partition primary
                    format quick fs=ntfs label="Windows RE tools"
                    assign letter="T"
                    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
                    gpt attributes=0x8000000000000001

                     

                    exit

                    -------------------------------------------------------------------------------------------------

                     

                    I agree there is a MAJOR problem using the build-in action to partition drives on UEFI systems. as GJHorn says, it creates a System Reserved portion of only 100MB, which is far less than the manual install default of 500MB; this caused us no-end of problems when trying to install the monthly cumulative updates for Windows 10 - it would get to ~95% and then fail saying it was unable to apply the update and then rolled back the changes, taking several hours...

                    • 7. Re: Windows 10 Partitioning Scheme
                      jameshopkins Apprentice

                      Thanks jdseymour01716 I will give it another go. Out of interest how are you managing Win10 updates with LANDesk, are you using GPO/LANDesk to defer updates and then using LANDesk to deploy updates, or using WSUS/SCCM?

                      • 8. Re: Windows 10 Partitioning Scheme
                        GJHorn Specialist

                        Yes using a diskpart script. Using actions manually does not work. It appears to be a bug.

                        • 9. Re: Windows 10 Partitioning Scheme
                          jameshopkins Apprentice

                          Here is my script, I found that setting the RE partition to any less than 829 on Win10 1703 caused a problem with BitLocker, it wanted to create a new RE partition. Setting it at 829 fixes this issue.

                           

                          rem == CreatePartitions-UEFI.txt ==

                          rem == These commands are used with DiskPart to

                          rem    create four 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. 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 == 2. Microsoft Reserved (MSR) partition =======

                          create partition msr size=16

                          rem == 3. Windows partition ========================

                          rem ==    a. Create the Windows partition ==========

                          create partition primary

                          rem ==    b. Create space for the recovery tools ===

                          shrink minimum=829

                          rem       ** NOTE: Update this size to match the

                          rem                size of the recovery tools

                          rem                (winre.wim) plus free space                   **

                          rem ==    c. Prepare the Windows partition =========

                          format quick fs=ntfs label="Windows"

                          assign letter="C"

                          rem === 4. Recovery tools partition ================

                          create partition primary

                          format quick fs=ntfs label="Recovery tools"

                          assign letter="R"

                          set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"

                          gpt attributes=0x8000000000000001

                          list volume

                          exit

                          • 10. Re: Windows 10 Partitioning Scheme
                            GJHorn Specialist

                            I've used a similar script to jameshopkins above. Received it from Ivanti support. Execute action Diskpart pointing to the script that was copied down.

                             

                            select disk=0

                            clean

                            convert gpt

                            create partition efi size=500

                            format fs=fat32 quick label=System

                            assign letter=S

                            create partition msr size=128

                            create partition primary

                            format fs=ntfs quick label=Windows

                            assign letter=C

                             

                            This sets the System Reserved partition to 500 MB, which is necessary for the Windows 10 feature updates to work.

                            • 11. Re: Windows 10 Partitioning Scheme
                              1EarEngineer Specialist

                              Hi there,

                              if you are attempting to do what is in the photo, use this, as what you have listed as the correct answer, will not do that.Script taken from UEFI/GPT-based hard drive partitions | Microsoft Docs

                               

                              rem == CreatePartitions-UEFI.txt ==

                              rem == These commands are used with DiskPart to

                              rem    create four 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. 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 == 2. Microsoft Reserved (MSR) partition =======

                              create partition msr size=16

                              rem == 3. Windows partition ========================

                              rem ==    a. Create the Windows partition ==========

                              create partition primary

                              rem ==    b. Create space for the recovery tools ===

                              shrink minimum=500

                              rem       ** NOTE: Update this size to match the

                              rem                size of the recovery tools

                              rem                (winre.wim) plus free space                   **

                              rem ==    c. Prepare the Windows partition =========

                              format quick fs=ntfs label="Windows"

                              assign letter="W"

                              rem === 4. Recovery tools partition ================

                              create partition primary

                              format quick fs=ntfs label="Recovery tools"

                              assign letter="R"

                              set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"

                              gpt attributes=0x8000000000000001

                              list volume

                              exit

                              • 12. Re: Windows 10 Partitioning Scheme
                                Abnranger67 Apprentice

                                Hey team I have a few questions:

                                I did my capture with DISM, can I use ImageX to do the deploypment seeing that they both can use a WIM?

                                I made sure my BIOS is set to UEFI prior to the my capture, but noticed that LD still created the partitions as MBR, is this the bug you speak of or do I need to use the 64bit boot.wim for LD is create as UEFI?

                                If using the above DISKPART script, and deploying with ImageX, do I still need to add the action task to execute BCD?

                                1 of 1 people found this helpful
                                • 13. Re: Windows 10 Partitioning Scheme
                                  gmb019-Bucknell Apprentice

                                  We have the same issue, and it's forcing us to use a script to partition instead of the action.  It just won't consistently make the correct choice as it is.  I'm not sure what metric they use to determine what to do, but at this point it would be helpful to have an action specific to MBR and UEFI as selectable options to specify what you want it to do.  The latest trial was with a Latitude E5450, which has TPM 1.2, in Secure Boot UEFI only as the boot options choice.  I thought it was tied to what version of the PXE boot image you got, before, but I know it booted to UEFI on this one, so that wasn't it. 

                                  • 14. Re: Windows 10 Partitioning Scheme
                                    jdseymour01716 Apprentice

                                    The disk has to be converted to being a GPT to being UEFI compatible. I've long since given up on the built-in LANDesk Partition Drives action and just call the following from a Execute Command action using a DISKPART /S <scriptname> with the following script:

                                     

                                    -----

                                    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. System partition =========================

                                    create partition efi size=1000

                                    format quick fs=fat32 label="System"

                                    assign letter="S"

                                     

                                     

                                    REM == 2. Microsoft Reserved (MSR) partition =======

                                    create partition msr size=128

                                     

                                     

                                    REM == 3. Windows partition ========================

                                     

                                     

                                    REM ==  a. Create the Windows partition ==========

                                    create partition primary

                                     

                                     

                                    REM == b. Shrink Partition to make room for WinRE Tools Partition ===

                                    shrink minimum=1000

                                     

                                     

                                    REM == c. Prepare the Windows partition =========

                                    format quick fs=ntfs label="Windows"

                                    assign letter="C"

                                     

                                     

                                    REM == 4. Windows RE tools partition ===============

                                    create partition primary

                                    format quick fs=ntfs label="Windows RE tools"

                                    assign letter="T"

                                    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"

                                    gpt attributes=0x8000000000000001

                                     

                                     

                                    exit

                                    ----

                                    1 2 Previous Next