How to Make a Bootable Pendrive using CMD [ For Both MBR + GPT ]

During the past, Microsoft Windows was installed via disk, CD- or DVD-ROM, or the floppy disk – and optical media carriers are now slowly disappearing from the scene. Instead, the operating system is either pre-installed on the system partition of a new computer or laptop, or you get Windows directly online, along with a digital license, and run it yourself. But if you need an external installation media, many people are now using a bootable USB drive. It 's quicker and more compact than an optical data carrier, and so is perfectly suited for setting up (or resetting) a system – there are also many other possible uses.

If you've just set up your new PC to build or update your old PC to a newer version of Windows, you will need a Pendrive that has a Windows Operating System on it. USB boot is a mechanism in which computer hardware can be allowed to provide all the essential system boot information and files instead of a hard disk or CD drive.

How does USB Boot work?

USB Boot operates the same way that a floppy disk was used to boot a machine earlier. It is often used to patch, rebuild, or update an operating system from scratch. To start a USB boot, you'd have to build a bootable USB device first. You can do this using your own PC or other third-party utilities. Then the program will copy all the operating system files and boot the sequence to the USB drive/pen drive to allow USB boot. You will need a USB drive/pen drive with a minimum of 8 GB of storage to create a bootable USB drive. First, the Pendrive must be completely formatted before continuing.

Formatting the USB Drive (using diskpart)

1. First, you need to run cmd (Command Prompt) as an Administrator. It is a crucial move because you're going to edit disks that need admin privileges. There are many ways to open an admin rights prompt: i) Press Windows + X and select Command Prompt (Admin). ii) Open CMD in Administrator Mode. 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 so will open the Windows built-in disk part application that is used to manage storage on your computer. Now you've got to wait until the DiskPart utility begins to run.

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

5. Select the appropriate one based on the size of the disk. In our case, it is Disk 2. Type this to select the disk 2 - “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.

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”.

7. To convert the given disk into MBR, type “convert mbr”, otherwise to convert disk into 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 Note: The latest devices support UEFI non-CSM. However, if you run UEFI on a older system, your best bet is to use MBR.

8.1 Creating MBR Bootable USB Drive (The Easiest Way)

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

2. Type “select partition 1” and hit Enter (partition 1 will be setting up as an active partition).

3. Now, type “active” and hit Enter. (Activate the current partition for you to work on.

4. 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.

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

6. Now that you have successfully formatted your USB drive, it's time to copy the data from the ISO picture on your PC or DVD to your USB disk. Doing this successfully transforms your USB flash drive into a Windows USB bootable drive.

8.2 Creating GPT Bootable USB Drive (The Advanced Way)

1. Because of a single partition to render the MBR bootable USB drive, here you would need to build two partitions because natively, without the NTFS driver, UEFI would not be able to use the NTFS partition. Only the FAT32 can be recognized natively. i) EFI Partition: “create partition primary size=64” ii) Data Partition: “create partition primary”

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

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

4. Download the latest NTFS EFI Drivers from

Download the file named “uefi-ntfs.img”. Extract the content using 7zip and copy it to the first partition (64MB).

OR Download the latest NTFS EFI Drivers from

You will find four folders there with the names like “aa64”, “arm”, “ia32” & “x64”. Download the file starting with NTFS, from each folder, like - i) ntfs_x64.efi ii) ntfs_ia32.efi iii) ntfs_aa64.efi iv) ntfs_arm.efi Create a folder named “EFI” in partition 1 (64 MB) and inside that folder create another folder named “Boot”. Copy the above-downloaded file in the folder.

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

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

Installing Windows

Note: If you choose the GPT option in Phase 8, make sure the secure boot is disabled. You can enable this once the windows installation is complete. You have successfully copied the contents of the DVD file to the USB drive and it is now bootable. To restart a new computer, follow these steps –

  1. When the computer starts after it is turned on. Some of the function keys (usually F8 / F12) are used to go to boot device selection. Only make sure that you connect your USB drive before charging your device and select your drive.

  2. The other approach that has historically been used was to adjust the order of the boot system from the BIOS menu. To do this, you'll need to go to the bios settings and change the boot order. (See the manufacturer's motherboard website for more information.)


Getting a bootable USB drive for Windows is really handy as these days, we don't really opt for DVD and other options. And if your Laptop doesn't come with Windows preinstalled, or even if you have set up your own setup, setting up Windows shouldn't be a problem if you have got the bootable USB drive ready. We hope our directions are well worded and simple enough for you to obey. However, if there's any question left, please comment below and we'll definitely fix it.

135 views0 comments
  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • Pinterest

©2020 by HowToKR