How to

Bootable Pendrive Using CMD [MBR + GPT]

If you have just set-up your new PC build or updating your old PC to a more original Windows version, you may require a bootable Pendrive, which has got the Windows Operating System on it.

A USB boot is a procedure in which PC hardware can be enabled to understand all crucial system booting info and files instead of a hard disk or a CD drive.


How does USB Boot work?


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

It can be done using your PC or other 3rd party utilities. Then the software will copy all Operating system files and boot the sequence into the USB drive or pen drive to enable the USB boot. To create a bootable USB, you would require a USB drive/pen drive with a minimum of 8 GB of storage.

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

Formatting the USB Drive (using diskpart):

  1. First, you’ve to run cmd (Command Prompt) as an Administrator. It is an essential step because you are going to edit disks that require admin privileges. There are several methods to open a command prompt with admin rights:
  2. First, press Windows + X and select Command Prompt (Admin).
  3. Open start menu, search cmd, right-click, and tap run as administrator.
  4. Open task manager, tap on File> New Task, tick on Create this task with Administrator privileges, type cmd, and hit Enter.
  5. Connect your USB drive to your PC.
  6. Type “diskpart” and hit enter. It will open the windows in-built disk part utility, which is used to manage the storage on your PC. Now you’ve to wait until the DiskPart service begins working.
  7. In the new separate window, type “list disk” then press Enter. It’ll display all the active disks present on your PC. Here, you’ll see several disks.
  8. Select the apt one to depend on the size of the disk. In this case, Type “select disk 2” in the same window and press Enter. You’ll now get a prompt “Disk 2 is now the selected disk” means any commands will now operate on Disk 2 directly.
  9. Now, type “clean” and press Enter to remove all of the data present in your USB drive. This command will entirely format your USB drive. Now, you’ll get a quick, “Diskpart succeeded in cleaning the disk.”
  10. To change the disk to MBR, type “convert mbr,” or else for GPT, type “convert gpt.” Use the recommendations below listed:

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; although, if you are running it on an older device, then your great bet will be to use MBR.


How to Create MBR Bootable USB Drive (The Easiest Way )

  1. Type “create partition primary” and press Enter. You’ll now get a prompt, “DiskPart succeeded in creating the specified partition.”
  2. Type “select partition 1” then press Enter. It will choose partition 1 for setting it up as an active partition.
  3. Now, type “active” and press Enter. It will enable the current partition for you to work on.
  4. Now you’ve to type “format fs=ntfs quick” and press Enter. This command will eventually format your current partition as an NTFS file system.
  5. To exit, just type “exit” then press Enter. The command will shut the DiskPart utility but not the CMD window.
  6. Now that you’ve successfully formatted your USB Drive, It’s time to copy the data from the ISO Image present on your computer or a DVD to your USB drive. By doing this will successfully turn your USB flash drive into a Bootable Windows USB drive.

How to Create GPT Bootable USB Drive (Alternative Way)


Rather than a single partition to make an MBR bootable USB drive, here, you’ll 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.”

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

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

Download the latest NTFS EFI Drivers Link: 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).
OR
Download the latest NTFS EFI Drivers Link: https://efi.akeo.ie/downloads/efifs-latest/.

You’ll see four folders there, namely “aa64”, “arm,” “ia32,” & “x64”. Download files from each folder, starting with ntfs. We have downloaded the below files: i) ntfs_x64.efi
ii) ntfs_ia32.efi
iii) ntfs_aa64.efi
iv) ntfs_arm.efi In the partition 1 (64 MB), make 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.

To exit, just type “exit” and press the Enter button. This command will close the DiskPart utility but not the CMD window.

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

blank

Installing Windows:

blank

Note: If you select the GPT option in step 7, then make sure that secure boot is disabled. Enable it when the installation of windows is finished.

You’ve successfully copied the file contents of DVD into the USB drive, and it is now bootable. To boot up a new PC, follow these steps:

When your PC starts after powered on, some function key (Generally F8/F12) is used to go into boot device selection. Must sure to insert the USB drive before powering on the PC and select your drive.

The other technique which was traditionally used is to change the boot device order from the BIOS menu. For this, you’ll have to go to bios settings and change the boot order. (See motherboard manufacturer website for more info.)

Final Words:

Bootable USB drive for Windows is super favorable and appropriate as these days; we don’t opt for DVD and other options. And if your PC does not come with Windows preinstalled, or perhaps if you have set-up your system, setting up Windows should not be an issue if you’ve got the bootable USB drive ready.

We hope our instructions are very well stated and apparent enough for you to follow. But in case any issue persists, then do comment down below, and we will surely rectify it.

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Close