Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home » Remove ‘EFI’ & Other Partitions on a USB Flash Drive Using Windows 8 (Created by ‘dd’)
    Windows How-To

    Remove ‘EFI’ & Other Partitions on a USB Flash Drive Using Windows 8 (Created by ‘dd’)

    GayanBy GayanJanuary 16, 2013Updated:May 29, 202067 Comments4 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    In GNU/Linux, you can create a bootable USB flash drive using an ISO disc image of another distribution, by using the command-line. The command that is used to create that is called ‘dd’.

    By default, almost all USB flash drives use a common partition layout (which of course can be changed) that consists of a single, primary partition occupying the whole space. However, when you use ‘dd’ on an USB flash drive, it will destroy this layout and will create a new partition layout.

    It will create a partition that is big enough to hold the data of that ISO file, followed by another special partition called ‘EFI System Partition’ that stores files related to booting etc and finally, the remaining space (if any) of the USB flash drive will be hold in, as an ‘Unallocated area’.

    'Disk manager' in Windows 8 showing 'EFI' and other partitions

    The thing is, other operating systems like Windows 8 will only recognize the ‘EFI System Partition’ (which is usually around 2-3MB) and the rest of the ‘free space’ will be unusable!. Even other advanced tools like the ‘disk manager’ in Windows, though it properly recognizes the partition layout, won’t let you create a partition on the remaining ‘free space’ and use that space either.

    Windows 8 showing the 'EFI' partition of a USB flash drive

    Not only in Windows, but some tools in GNU/Linux have also failed while letting me create a partition on this ‘unallocated area’ as well.

    I personally don’t like this approach used by ‘dd’ (though it might have some advantageous), as it creates unnecessary complications, because you can still create a bootable USB flash drive, without having to repartition it this way, thus you will be able use it as usual (reformat, delete or add files etc).

    Nevertheless, if you did not know this at the time you used ‘dd’ and looking for a way to get rid of it using Windows 8, then please follow the below steps. Not only by ‘dd’, you can use these instructions for getting rid of ‘EFI’ partitions created by other tools too.

    Note: Before proceeding, please be aware that, this will destroy all the data on the drive!.

    Step 1:

    Press the ‘Windows key’ on your Keyboard and then simply type the below command.

    cmd

    Step 2:

    Then Windows 8 will locate the ‘cmd’ application. Now, as shown below, right click on its icon and then from the options that will be listed at the bottom of the screen, select ‘Run as Administrator’.

    Running 'cmd' as the administrator in Windows 8

    When asked, click ‘Yes’ to the next message.

    Step 3:

    This will open ‘cmd’ with administrative privileges. Once it is opened, type the below command on its window (make sure the USB drive is attached).

    diskpart

    Then wait for few seconds, until the command prompt changes into ‘DISKPART>’.

    Step 4:

    Now enter the below command.

    list disk

    This command, as shown below, will give you a list of all the disk drives that are currently attached to your computer (USB, IDE, SATA etc).

    Using 'diskpart' for listing attached disc drives

    Now have a careful look at its output and make a note of the disk drive number of the USB flash disk that we need to restore to its original partition layout (in this instance it is ‘Disk 1’).

    Step 5:

    Once you know the disk number, simply replace the ‘Disk 1’ (unlike GNU/Linux, Windows is not case-sensitive, so you should be able to use ‘disk 1’ as well) part of the below command with your disk’s given name and execute it.

    select Disk 1

    When you issue this command, it will give you an output saying that, that particular disk is now selected (shown below).

    Using 'diskpart' to select a disk

    Step 6:

    Now to delete the partition layout of this disk, enter the below command (this will erase the entire disk!, so make sure the entered disk name is correct!).

    clean

    If you get an error saying that somehow ‘diskpart’ was unable to do it (it happens sometimes), then try the ‘clean’ command again. If everything goes accordingly, then you should see the message ‘DiskPart’ succeed in cleaning the disk’.

    Successfully erasing the partition layout using 'diskpart'

    Step 7:

    Now all we have to do is to create the standard partition layout that is used in USB flash drives (a single, primary partition, occupying the whole space). For that, enter the below command.

    create partition primary

    If it was successfully created, you should see a message saying ‘DiskPart succeeded in creating the specified partition’.

    Creating a primary partiton on the USB flash drive using 'diskpart'

    Step 8:

    Now open ‘My Computer’, double click on the USB flash drive’s icon, and Windows 8 will ask whether you’d like to format the drive or not.

    Windows 8 asking for the permission to format the usb flash drive partition created using 'diskpart'

    Then make your selections from the ‘format disk’ window that you get next (when unsure, use the default settings), once done, click on the ‘Format’ button.

    That’s it, now you should have restored your USB flash drive to its original partition layout and can start using it as usual. Good luck.

    Credits: Some information via ‘Winability.com’.

    How-To
    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    Compress Your OS Drive to Save Disk Space – Is It Worth?

    June 1, 2023

    How to Convert IMG to ISO in Windows 10/11?

    May 20, 2023

    How to Enable 2-Factor Authentication for Outlook Web App

    November 10, 2022

    What is a Browser Hijacker? How to Remove It

    June 28, 2022

    Install Bluestacks on Windows 11,10 & 7 with Offline Installer and Graphic Card Error Fix

    June 3, 2022

    67 Comments

    1. René Kåbis on September 11, 2013 10:36 am

      It seems that I have an entirely new beastie on my hands… a USB stick with only one partition, but somehow a virtualized CD drive is installed on it!

      Trust me, I have attacked this thing six ways to Sunday. There is only one FAT partition, diskpart sees only one drive, and yet even after clearing it out with diskpart, linux partitioners, Mac partitioners and even doing zero-fill wipes with boot utilities, this drive still has a virtual CD-ROM on it.

      I have to take my hat off to those who designed this drive… because I have in my hand a USB drive that has got a virtual CD-ROM, but without that virtual CD-ROM appearing anywhere on the drive itself!

      Reply
      • Gayan on September 11, 2013 11:07 am

        Hmm, you’ve got a situation here :).

        I did a quick Google search and I don’t know if you’ve already tried this, but this CD drive could be controlled, through, and by, the USB drive’s firmware. So have you tried the ‘solution’ provided in the below link ? (use it at your own risk René, as it says the tool has the potential of messing things up more!).

        http://superuser.com/questions/92675/how-to-remove-a-partition-on-a-usb-drive

        Reply
    2. Jian Xu on December 19, 2013 7:17 am

      Thanks! This saves my life!

      Reply
      • Gayan on December 19, 2013 7:21 am

        You’re welcome Jian.

        Reply
    3. JaNaDrake on January 13, 2014 7:52 pm

      What a brilliant article I’ve ever had learnt…. Thank you so much!!!! This one saved my life… Thanks a lot! 10 stars for you!

      Reply
      • Gayan on January 14, 2014 5:05 pm

        :).

        Reply
    4. daisy-love on January 21, 2014 11:17 am

      If windows built-in disk management can not remove efi or other partitions in usd drive.

      Maybe you can try windows partition manager. Then can remove partitions on matter in basic hard disk or usb drive.

      have a try!
      http://www.partition-tool.com/resource/GPT-disk-partition-manager/remove-gpt-disk-partition.htm

      Reply
    5. Suresh Nair on July 21, 2014 1:10 pm

      cool , its helps me …

      Reply
      • Gayan on July 22, 2014 7:48 am

        You’re welcome Suresh.

        Reply
    6. Kaptain Kaos on December 6, 2014 5:27 pm

      You made it look easy, it was! Thanks

      Reply
      • Gayan on December 6, 2014 6:38 pm

        You’re welcome 🙂 .

        Reply
    7. William C. Wilson on January 19, 2015 6:47 am

      Thanks for this information. It worked very well. I had partitions the usb drive for a mac and when I finished my work with it, I wanted to convert it back to a ntfs partition. I had no difficulty in following the instructions.

      Reply
      • Gayan on January 19, 2015 7:05 am

        You’re welcome William.

        Reply
    8. Jake on February 18, 2015 5:25 am

      Thanks! worked great. I had a USB stick that had been previously used to boot a linux distro and windows only recognized a small portion of its capacity. Followed this how to and now the USB stick is restored to its full capacity.

      Reply
      • Gayan on February 19, 2015 7:04 am

        You’re welcome Jake.

        Reply
    9. Micki on March 23, 2015 4:05 am

      Thanks, I don’t know how it managed to get partitioned, but this completely and easily restored by USB to it original state. Thank you so much

      Reply
      • Gayan on March 23, 2015 7:57 am

        You’re welcome Micki!.

        Reply
    10. Another User on November 10, 2015 8:33 am

      Thank you.

      I had this problem – found your post – your steps were clear, concise and exact.

      Thank you again. Problem solved, and I learned something today.

      Reply
      • Gayan on November 10, 2015 4:47 pm

        You’re welcome 🙂 .

        Reply
    11. Denver DSilva on November 29, 2015 6:55 pm

      Dude! Life Saver Man!!!!!

      Reply
      • Gayan on November 30, 2015 8:24 am

        I know! 😛 .

        Reply
    12. Shiva Prasad on January 2, 2016 4:40 pm

      Exactly what i was looking for! thanks! 🙂

      Reply
      • Gayan on January 2, 2016 4:48 pm

        You’re welcome Prasad 🙂 .

        Reply
    13. Håkon Bingen on June 21, 2016 1:05 pm

      Thanks Gayan, spot on 🙂

      Reply
      • Gayan on June 21, 2016 1:37 pm

        You’re welcome 🙂 .

        Reply
    14. Robert on September 1, 2016 5:19 pm

      Four Thumbs Uo, yeah..finally i can use my flashdrive again..Thank

      Reply
      • Gayan on September 2, 2016 1:11 pm

        You seem quite relieved. You’re welcome 😉 .

        Reply
    15. tya on November 5, 2016 1:36 pm

      very helpful!!! thanks a lot!!

      Reply
      • Gayan on November 7, 2016 7:08 pm

        You’re welcome.

        Reply
    16. JY on March 8, 2017 12:31 pm

      It’s fantastic that the shown steps worked for me. Thank you very much.

      Reply
      • Gayan on March 9, 2017 6:43 pm

        You’re welcome.

        Reply
    17. bobb on March 8, 2017 2:40 pm

      Awesome… what a brilliant cmd trick… thank you

      Reply
      • Gayan on March 9, 2017 6:44 pm

        You’re welcome.

        Reply
    18. LengLenk on December 9, 2017 2:11 am

      Good trick. Thank you

      Reply
      • Gayan on December 9, 2017 7:10 am

        You’re welcome.

        Reply
    19. ABDUL RAZAK V M on January 30, 2018 1:10 pm

      THANK U SO MUCH. I was stuck. u r awesome.

      Reply
      • Gayan on January 30, 2018 5:22 pm

        You’re welcome.

        Reply
    20. Theo on March 12, 2018 3:50 pm

      it’s work, thank you..

      Reply
      • Gayan on March 28, 2018 7:15 pm

        You’re welcome.

        Reply
    Newer Comments →
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.