Windows 10: Clean install Windows 10, preserving the EFI partition

Discus and support Clean install Windows 10, preserving the EFI partition in Windows 10 Installation and Upgrade to solve the problem; I want to clean install Windows 10 on a new hp laptop, to get rid of the hp bloatware. What I usually do to clean install, is boot from a Windows 10... Discussion in 'Windows 10 Installation and Upgrade' started by ddelo, Feb 14, 2020.

  1. ddelo Win User

    Clean install Windows 10, preserving the EFI partition


    I want to clean install Windows 10 on a new hp laptop, to get rid of the hp bloatware.

    What I usually do to clean install, is boot from a Windows 10 installation USB, use a diskpart script (by pressing Shift+F10 at setup) to create the 4 reuired partitions, namely:
    EFI (100MB), MSR (16MB), Windows (Rest of disk – 950MB), WindowsRE (950MB).
    The script is the following:
    Code:
    The problem that I want to solve is to clean install, delete all partitions with the exception of the EFI partition, which is currently set to 260MB and not the usual 100MB, as it holds in an “HP” directory the hp Diagnostics (run when we press F2 at boot) and data used for BIOS updates.

    This HP directory, I wanna preserve is currently as follows:
    Code:
    Mind you that the current EFI partition is already saved in a Macrium Reflect image.


    Clean install Windows 10, preserving the EFI partition [​IMG]


    What are the proposed steps to do this, clean install by preserving the existing EFI partition?

    What I though was to alter the script to create a 260MB EFI partition, clean install normally and after completion, restore the 260MB EFI from the Macrium Image. Will that work, or more things are needed?

    Any suggestion is more than welcomed!

    :)
     
    ddelo, Feb 14, 2020
    #1

  2. Windows 10 clean install mess up partitions?

    If I do a clean install of Windows 10, will it mess up the partitions I have on my 2TB drive?
     
    MxPhenom 216, Feb 14, 2020
    #2
  3. Suvrat18 Win User
    Blank EFI Partition

    I have an ASUS R558UR.

    I had windows 10 installed on my laptop and I decided to again have a clean install of windows 10. I booted from USB and cleaned windows partition i.e. C drive and also cleaned EFI partition. I reformatted Drive and it had also created EFI partition of 100
    MB. I installed windows on laptop and setted that up. After installing windows my laptop it started taking a long time to boot about 90 seconds but earlier it took only 7-10 seconds. After analysing everything I found that my EFI partition is blank.

    Please suggest me how to write back EFI partition so as to reduce boot times.

    Thanks in Advace.
     
    Suvrat18, Feb 14, 2020
    #3
  4. Clean install Windows 10, preserving the EFI partition

    Installing Windows Vista/7 on a GUID Partition Table

    Background

    GUID Partition Table (GPT) is a boot sector technology poised to replace the venerable Master Boot Record (MBR) principally because MBR has a maximum capacity of 2 TB for a single partition (some single disks have reached 3 TB). Installing Windows on a GPT is a bit tricky because Windows wants to default back to MBR. In order to force Windows on to a GPT, we have to pre-format the drive prior to Windows installation. You can do that during Windows setup using the console.

    Requirements

    • Windows Vista or 7 (must be 64-bit no matter which OS is used)
    • A motherboard with EFI BIOS
    • A means to EFI boot the Windows setup (I had to use a USB DVD drive on MSI Z77A-G65, the internal SATA Bluray drives didn't have an EFI option)
    Instructions

    • Boot into Windows setup using EFI. On the MSI Z77A-G65, it showed up as UEFI:USB-ATAPI DVD ... This will change according to your motherboard and how you are attempting to enter setup. This step is critical. Without booting into setup via EFI, only MBR is available to the setup. There's no easy way to tell from within setup if it is running via EFI or not.
    • Once you have booted into setup, continue through the process as you would normally until you reach the dialog which shows you the available drives. Load a driver, if necessary, then press SHIFT+F10 to open the command prompt.
    • In the command prompt, enter the following lines, pressing enter after each one. Note that the <id> field below is the disk ID that you want to format as GPT from the "list disk" command. If there's only one drive, <id> will likely be 1. Note: All data on the drive will be lost during this process. Make sure to select the correct drive.
      • diskpart
      • list disk
      • select disk <id>
      • online disk
      • attributes disk clear readonly
      • clean
      • convert gpt
      • create partition efi size=102
      • create partition msr size=32
      • create partition primary
      • format fs=ntfs label="Operating System"
      • assign letter=C
      • exit
      "online disk" and "attributes disk clear readonly" are likely to fail. Don't worry, they are only precautionary. Change the drive letter and label to whatever you want. Also, the above command (specifically "create partition primary") will consume all remaining space on the drive. If you want multiple partitions with fixed sizes, substitute what you want in place of "create partition primary."
    • You may now close the command prompt and click on "Refresh" back in the dialog to choose where to install Windows. You should now see at least 2 partitions (I think Microsoft Reserved is hidden) and it will only let you install on a non EFI/MSR partition. Click on the primary partition and proceed with the installation as normal.
    • Note that in the EFI BIOS after installing Windows via EFI, you can no longer directly boot the volume Windows is installed on. Instead, you must boot via "Windows Boot Manager" (on MSI Z77A-G65, it was "UEFI: Windows Boot Manager"). Keep that in mind if you wish to tweak the boot order.
    Conclusion

    That should do it. You should be in Windows with >2 TB of hard drive capacity available if you had more than 2 TB on the Windows partition. Congratulations being on the bleeding edge of technology! *Rockout :rockout:
     
    FordGT90Concept, Feb 14, 2020
    #4
Thema:

Clean install Windows 10, preserving the EFI partition

Loading...
  1. Clean install Windows 10, preserving the EFI partition - Similar Threads - Clean install preserving

  2. Windows 10 EFI partition missing

    in Windows 10 Installation and Upgrade
    Windows 10 EFI partition missing: I have an ASUS GL502VS which I previously had dual boot with Ubuntu. Until the last Windows update it was working fine. I tried installing the latest Windows 10 update I guess 1909 yesterday. At first it worked fine but after a restart I realized that it isn't working...
  3. Moving EFI Partition

    in Windows 10 Drivers and Hardware
    Moving EFI Partition: Can someone tell me how to move EFI partition from one place to another, its just the example, but my problem is that i have C partition, after that i have EFI partition, and after that i have free space, now i can't resize my C partition coz EFI partition is next one... Win...
  4. Access to EFI Partition

    in Windows 10 Drivers and Hardware
    Access to EFI Partition: After the latest windows update, when I open file explorer, three extra drives were added besides the c drive. Winretool partition was assigned y drive, PBR partition was assigned x drive and ESP (efi system partition) was assigned e drive. I was able to remove the y and x...
  5. Clean Windows Install: Do I need the 100mb EFI System Partition?

    in Windows 10 Installation and Upgrade
    Clean Windows Install: Do I need the 100mb EFI System Partition?: Okay, so I just got a new laptop. It is a Lenovo, a deal I just got from Costco for $400 exactly. Latest i3, 256 SSD, 8 gigs ram, etc. Nothing special. I will use it mainly for taking my QuickBooks with me and surfing the web and email and Word with Office. But I've always...
  6. EFI partition deleted

    in Windows 10 Drivers and Hardware
    EFI partition deleted: While installing a different OS. My EFI partition was wiped and set as unallocated space. I booted up a linux live cd and partitioned the unallocated space, formatting it back to FAT32. I was able to restore grub and boot into my linux distro. Now I want to restore windows'...
  7. EFI partition missing

    in Windows 10 Installation and Upgrade
    EFI partition missing: I bought a new SSD and did a clean installation of Windows 10 on the new drive, but i'm still keeping my old HDD into my laptop as a secondary drive. After the installation worked (the laptop was working correctly) I decided to format my old HDD. After a reboot i got this...
  8. Problem EFI partition

    in Windows 10 Support
    Problem EFI partition: So I just bought a new PC that came without an SSD. I placed one in it and installed the OS on it. I have two other drives on the system as well. The 2TB HDD that came with the PC and a 1TB external HDD connected through USB. I'm trying to clear the 2TB completely to use for...
  9. If you install Windows does it install the EFI system partition?

    in Windows 10 Installation and Upgrade
    If you install Windows does it install the EFI system partition?: Say you buy Windows 10 from Amazon. When installing, does Windows 10 also install the EFI system partition? If not how do you get that partition installed on a new drive? 81273
  10. EFI and Recovery partitions.

    in Windows 10 Support
    EFI and Recovery partitions.: new hp pavilion laptop, the 2 default partitions besides C: notice they are 100% free space, they both are before C: , however posts I have been reading call for them to be after C: for rebuilding them? -EFI system partition, according to wikipedia this is: "When a...