HomeHow ToHow to Create a Bootable Pendrive using CMD

How to Create a Bootable Pendrive using CMD [MBR + GPT]

If you have just set up your new PC build or updating your old PC to a newer Windows version, you may need a bootable Pendrive which has got the Windows Operating System on it. A USB boot is a process in which computer hardware can be enabled to get all essential system booting information and files instead of a hard disk or a CD drive.

How does USB Boot work?

USB Boot works the same way a floppy disk was earlier used to boot a computer up. It is mostly used to repair, recover, or install an operating system from scratch. To perform a USB boot, first, you would have to create a bootable USB device.

This can be done using your own PC or other third-party utilities. Then the software will copy all the operating system files and boot the sequence into the USB drive/pen drive to enable the USB boot. In order to create a bootable USB, you would need a USB drive/pen drive with a minimum of 8 GB of storage.

The Pendrive first needs to be completely formatted before the procedure.

Formatting the USB Drive (using diskpart)

1. First, you have to run cmd (Command Prompt) as an Administrator. This is an important step because you are going to edit disks that require admin privileges. There are several ways to open a command prompt with admin rights:

i) Press Windows + X and select Command Prompt (Admin).
ii) Open start menu, search cmd, right-click, and click run as administrator.
iii) Open task manager, click on File > New Task, tick on Create this task with Administrator privileges, type cmd and hit Enter.

2. Connect your USB drive to your computer.

3. Type “diskpart” and press enter. Doing this will open the windows inbuilt disk part utility which is used to manage the storage on your computer. Now you have to wait until the DiskPart utility starts running.

Diskpart

4. In the new diskpart window, type “list disk” and hit Enter. It will display all the active disks present on your computer. Here, you will see several disks.

Diskpart List Disk

5. Select the appropriate one based on the size of the disk. In our case, it is Disk 2.

Type “select disk 2” in the same window and hit Enter. You will now get a prompt “Disk 2 is now the selected disk” That means any commands now will operate on Disk 2 directly.

Diskpart Select Disk

6. Now, type “clean” and hit Enter to remove all of the data present in your USB drive. This command will completely format your USB drive. Now, you will get a prompt “Diskpart succeeded in cleaning the disk”.


Protect Your Online Privacy With Surfshark
[The VPN that we use here at Tech Arrival]


Diskpart Clean

7. To convert the disk to MBR, type “convert mbr”, otherwise for GPT, type “convert gpt”. Use the recommendations provided below:

i) For Windows 7 or earlier: Prefer MBR
ii) For Windows 8 or later: Prefer GPT
iii) For any other OS: Refer to the official guidelines

Note: The latest devices support UEFI non-CSM, however, if you are running it on an older device then your best bet will be to use MBR.

Creating MBR Bootable USB Drive (The Easiest Way)

Diskpart Convert Mbr

8. Type “create partition primary” and hit Enter. You will now get a prompt “DiskPart succeeded in creating the specified partition.”

Diskpart Create Partition Primary

9. Type “select partition 1” and hit Enter. It will choose partition 1 for setting up it as an active partition.

Diskpart Select Partition

10. Now, type “active” and hit Enter. It will activate the current partition for you to work on.

11. Now you have to type “format fs=ntfs quick” and hit Enter. This command will finally format your current partition as an NTFS file system.

Diskpart Ntfs Quick Format

12. To exit, simply type “exit” and hit Enter. The command will close the DiskPart utility but not the CMD window.

Diskpart Exit

13. Now that you have successfully formatted your USB Drive, It’s time to copy the data from the ISO Image present on your PC or a DVD to your USB drive. Doing this will successfully turn your USB flash drive into a bootable Windows USB drive.

Windows 10 Copy Files

Creating GPT Bootable USB Drive (The Advanced Way)

Diskpart Convert Gpt

8. Instead of a single partition to make an MBR bootable USB drive, here, you will need to create two partitions because natively without supplying the NTFS drivers UEFI will not be able to use the NTFS partition. It can only recognize FAT32 natively.

i) EFI Partition: “create partition primary size=64”
ii) Data Partition: “create partition primary”

Diskpart Gpt Partitions

9. Select first partition using “select partition 1” and format is as FAT32 file system using “format fs=fat32 quick”.

Diskpart Gpt Format Fat32 Efi Partition

10. Select second partition using “select partition 2” and format is as FAT32 file system using “format fs=ntfs quick”.

Diskpart Gpt Format Ntfs Data Partition

11. Download the latest NTFS EFI Drivers from https://github.com/pbatard/rufus/tree/master/res/uefi. Download the file named “uefi-ntfs.img”. Extract the content of the file using 7zip and copy it to the partition 1 (64MB).


Protect Your Online Privacy With Surfshark
[The VPN that we use here at Tech Arrival]


Efi Drivers Rufus

OR

Download the latest NTFS EFI Drivers from https://efi.akeo.ie/downloads/efifs-latest/. You will find four folders there namely “aa64”, “arm”, “ia32” & “x64”. From each folder download the file starting with ntfs. We have downloaded the following files:

i) ntfs_x64.efi
ii) ntfs_ia32.efi
iii) ntfs_aa64.efi
iv) ntfs_arm.efi

In the partition 1 (64 MB), create a folder named “EFI” on the 64MB partition and inside that folder create another folder named “Boot”. Copy the above-downloaded file in the folder.

Efi Drivers Download

13. To exit, simply type “exit” and hit Enter. The command will close the DiskPart utility but not the CMD window.

14. Now, copy all the content of the ISO image or DVD in the partition 2. You now have a GPT + UEFI (non-CSM) bootable USB drive.

Windows 10 Copy Files

Installing Windows

Windows 10 Installation Screen

Note: If you chose the GPT option in step 7, then make sure that secure boot is disabled. You can enable it once the installation of windows is complete.

You have successfully copied the file contents of DVD into the USB drive and it is now bootable. In order to boot up a new computer, follow these steps –

  1. When your computer starts after powered on. Some function key (Generally F8/F12) is used to go into boot device selection. Just make sure to insert the USB drive before powering on the computer and select your drive.
  2. The other method which was traditionally used was to change the boot device order from the BIOS menu. For this, you will have to go to bios settings and change the boot order. (See motherboard manufacturer website for more information.)

Final Words

Having a bootable USB drive for Windows is super convenient as these days, we don’t really opt for DVD and other options. And if your PC doesn’t come with Windows preinstalled, or perhaps if you have set up your own system, setting up Windows shouldn’t be a problem if you have got the bootable USB drive ready.

We hope our instructions are well stated and clear enough for you to follow. But in case any problem persists, please comment down below and we’ll surely rectify it.


“As an Amazon Associate & Affiliate Partners of several other brands we earn from qualifying purchases.” [Read More Here]


Mehul Boricha
Mehul Boricha
Mehul Boricha is the founder of Tech Arrival & Astute Links. He is a computer and smartphone geek from Junagadh, Gujarat, India. He is a Computer Engineer by Education & an Entrepreneur by Passion. Apart from technology geek, he is an audiophile & loves to connect with people.

10 COMMENTS

    • Yes, Rufus is the best tool that I have come across till now. However, this is the post on creating bootable Pendrive with the help of command prompt on Windows computer that’s why we have not mentioned it here.

      In future, we will create a dedicated post on best bootable USB Pendrive tools. Stay tuned!

  1. Did all that was shown in the article for creating USB Bootable, however when I tried booting from USB , without Win OS, after selecting USB in boot order, it showed BOOTMGR is missing . Please advice. I am trying to create this USB to get to atleast C> on a different system that hangs up while booting. Thanks .

    • If you do without writing ‘quick’ then it will perform the full format which depends on the size as well as the speed of the disk. Writing ‘quick’ at the end will just clear the memory index of the files. That’s why!

  2. Superb and helpful post for me. I have been posted this article on my blog in Hindi. I like the way of your article writing and design of your blog. Thank You very Much.

  3. Hi Mehul,

    Thank you so much for sharing this valuable post on creating bootable pendrive windows using cmd.
    Thanks

Leave a Comment

Please enter your comment!
Please enter your name here

By submitting the above comment form, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.


Stay Connected

Subscribe to our Newsletter

Stay updated with all the latest news, offers and special announcements.

By signing up, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

Latest Posts

How to Install Chrome OS Flex on Windows & Mac Computer

Google announced Chrome OS Flex in February 2022. Before that, only Chromebook users had access to Chrome OS. Users who wanted to use the...

How To Create a Fake Email Address Within Seconds

Using your primary email ID to sign up for web services is never a good idea. Some of these services send dozens of daily...

12 Best Benchmark Software for Your PC

To get the most out of your computer, you must test its performance and capabilities. This can be done with the help of PC...

How to Install Windows 11 on Mac

Imagine running both macOS and Windows 11 on your Mac computer. Wouldn't it be great to have the best of both worlds in a...

13 Best Guitar Apps for Android & iPhone

Learning to play the guitar is not as easy as you would imagine. It requires endless effort and rigorous practice even to play a...

All Time Favorites

18 Best WiFi Hacking Apps for Android

When you enter the hacking world, you would know that almost every basic tutorial you would search for on the net won’t be possible...

21 Best Android Apps Not on Google Play Store

Google Play Store has the most extensive collection of apps for Android. Almost everyone downloads apps from the Play Store. But many excellent apps...

15 Best Game Hacking Apps for Android (With/Without) Root

Are you a mobile gamer? If you are, then you've come to the right place. This post will tell you about the Best Game...

How to Download Torrent Files with IDM (Torrent to IDM)

Hey guys, you may all have heard about different ways to download torrent files. And some of you may also have downloaded them using...

11 Best Download Managers for Windows

The Internet is a vast resource of a lot of things which includes music, videos, movies and a lot of other things. The ability...