Delete EFI partition in Windows 7

So I bought myself an external 1TB USB hard drive the other day. The idea was to use it for backups on my MacBook, but later I decided to use it on a PC instead. Since I had initially formatted the drive in OS X, the Windows disk management tool listed an EFI partition on the disk but wouldn’t allow me to remove it. Here’s how I finally deleted it in Windows 7:


[problem] When formatting a previously Mac formatted drive in Windows 7 you are unable to remove the EFI System partition/volume.

[step 1] With the USB drive connected, open a command prompt with elevated privileges.

[step 2] Start the disk partition utility by typing diskpart.

[step 3] Type list disk to see all of your connected disks (be sure you’re working on the right disk, if you select the wrong disk you’ll be sorry – see disclaimer). To select a disk type select disk # where # is the disk number you want to delete the EFI partition from.

[step 4] Type select partition # where # is the number of the partition you want to delete.

[step 5] Type delete partition override

That’s it.



Posted

in

,

by

Comments

96 responses to “Delete EFI partition in Windows 7”

  1. John Avatar
    John

    David, partition override deletes only the efi partition? or everything on the drive?

    1. David Vielmetter Avatar

      John,

      The partition delete override command deletes an entire partition. The way diskpart works is you first select the disk you want to work on, then the partition you want to work on then finally when you execute commands they will only affect the selected disk and the selected parition on that disk.

      If you fail to select a partition to work on, the command delete partition override should not work. It should ask you to select a partition to execute that command on first.

      In summary…if you have a disk with three partitions on it, using diskpart to delete each one will require you to select the disk, then select each partition and execute delete parition override on each one one partition at a time.

      p.s. partition delete override does not delete the data on the partition. It only deletes the partition information, but the data could still be recovered if the partition table is rebuilt using a recovery tool.

      Cheers,
      David Vielmetter

  2. Nathan Avatar
    Nathan

    Thank you! I had the same predicament going from a Mac to a PC and couldn’t figure out how to get rid of that stupid partition.

  3. me Avatar
    me

    sweet! thanks amigo!

  4. Gordon Avatar
    Gordon

    David,

    BRILLIANT!

    I did the same as you. Bought an external USB drive, used it with OS X and then could not access with Windows when I changed my mind for its use. Googled it. Found your web page. Used your method to delete the EFI and data partitions that OS X had created and instantly in the Windows 7 Disk Management Console I had a healthy 1.5TB drive that I could format.

    Fantastic tip. Thank you so very much.

    Gordon

  5. Dave Avatar

    Thanks for the great tip!

  6. Sune Avatar
    Sune

    Hey
    Super tip just what was needed.

  7. Advyon Avatar

    Fantastic Solution! Thanks a ton for sharing!

  8. Jonathan Avatar
    Jonathan

    Brilliant

  9. Antoine Avatar
    Antoine

    Just what I needed, first Google result. Perfect explanations. Thanks a lot !

  10. Rip Avatar
    Rip

    Thanks David!

    Clear, concise, and effective. Excellent instructions to a needed fix!

  11. Sergey Avatar
    Sergey

    Hi now to access to efi hard drive in windows i connect it

  12. luca Avatar
    luca

    very useful!!!
    dear old msdos…
    many thanks!

    luca

  13. IanJ Avatar
    IanJ

    Thanks – worked a treat!

  14. Pat Rossiter Avatar

    Just like everyone here said: thank you, it worked a treat. Appreciate your support.

  15. Fernando Avatar
    Fernando

    Thank you! ๐Ÿ˜€

  16. Rick Avatar

    I received the following message;
    DiskPart has encountered an error; The media is write protected.
    See the System Event Log for more information.

    Why do I remove the write protection?

  17. Muniraju H Avatar
    Muniraju H

    Thank You, david..
    It works for me.. much appreciated ..:)

  18. Will Rogers Avatar
    Will Rogers

    David,

    This seems as though it would work in Win8 also. Is that the case? I got all the way to the list part and mine had 2, a system, and an unknown. The system was small while the unknown was 465GB. Do I need to remove both part or only the System?

    Thanks for the work around. It is most excellent, easy to follow and straight to the point.

    Will Rogers

  19. durgadcl Avatar
    durgadcl

    thanks mate.
    works for me too.

  20. Carlos Avatar
    Carlos

    Thanks. Great information. I indeed initially formatted the HD on my Mac as FAT and then, Windows Server didn’t allow me to use it as backup for what now seems was the EFI partition. EFI partition removed and Windows recognizes the new HD as a place where I can make Backups.

    Not fully working yet as I have other problems but I will keep looking – seems Windows doesn’t like that I am selecting to backup a partition that is bigger than 2TB. Go figure.

    Thanks again,

  21. slash2freeze Avatar
    slash2freeze

    Great. Thank you. just what I needed.

  22. Inba Avatar
    Inba

    Thanks a ton mannnnnn ๐Ÿ˜€

  23. Thomas Avatar
    Thomas

    Thank you very much ! Simple and clean.. Helped me alot !

  24. Nico Avatar
    Nico

    Thanks it’s save the life of my usb key
    ๐Ÿ˜€

  25. Mahesh Avatar

    Thanks a lot! I deleted my EFI partition without any problem.

  26. Benjamin Horarik Avatar
    Benjamin Horarik

    Thank you so much! this worked absolutely flawlessly…may consider editing to include that “enter” must be pressed for each command…on the other hand though, it’d be pretty dangerous for someone who didn’t know that to be messing with command prompts!

  27. IAH Avatar
    IAH

    As many have said before, THANK YOU SO MUCH! I’m working with Win8.1 Pro x64, and the diskpart application worked just as you described under this OS. You have created a straight-to-the-point tutorial, with nothing extraneous to confuse us simple folk ๐Ÿ™‚ Thank you again!

  28. John Avatar
    John

    Great tip, I struggled until I came across your very informative post

  29. Arafat.JR Avatar

    After use this trick does it wipe my data ? ๐Ÿ˜€

    1. dvielmetter Avatar

      This trick only removes the partition information. It does not wipe the data. Someone using testdisk would be able to recover data stored on disk/partition you removed using this trick unless you formatted the partition afterwards.

      Cheers,
      David

  30. brain atrophy alcohol Avatar

    You should be a part of a contest for one of the greatest blogs on the net.
    I am going to highly recommend this web site!

  31. sam Avatar
    sam

    Your the man!

  32. George Avatar
    George

    I love it when a plan comes together! Thank you –