Create a bootable USB with CMD commands

Are you thinking of creating a Windows 10 bootable USB drive and do you like using the command line tool? Below we will see how you can do it without the Windows 10 Media Creation Tool (x86 - x64) because you just like to use the command line.win-10-bootable-usb

Before you get started, you'll need the Windows 10 .ISO file - you can download it from various unofficial sources, but also from Microsoft itself, through the Windows 10 Media Creation Tool.

Open the command prompt as an administrator (search for cmd, right-click and select "Run as Administrator"), type "diskpart" without the quotation marks, and press enter.

Alternatively, open the Start menu, type “diskpart” without the quotes, and click Yes, if prompted by UAC.

Connect your USB drive. Type "list disk" without quotes and press enter.

From the Size column, you can understand where your USB drive is located

windows_10_usb_9

Our USB is at number 1, so we will type the next command which is “ disk 1” without the quotes. Press enter.

If you have not made a backup of your USB content, it is your last chance.

Immediately then type "clean" without quotes and press enter to delete the USB.

windows_10_usb_11

We will now prepare the USB to become bootable. Type "create partition primary" without quotes and press enter.

Then type "select partition 1" without the quotation marks and press enter.

Immediately after "active" without quotes and press enter.

Finally, enter the command "format fs = fat32" without quotes and press enter. The command will format your USB drive in the FAT32 format using the quick routine. (If you choose to use formatting in NTFS instead of FAT32, you will then have to run a different command to pass compatible boot manager files to your USB so that the device is bootable.)

This it will take some time, depending on the size and speed of your USB drive.

Immediately after, type “assign” without the quotes and press enter to assign a new letter disc to your USB. Your USB drive will probably open automatically (if it doesn't, you'll find it on My Computer or This Computer). Remember the drive letter (in our case it is H).

windows_10_usb_16

You can now extract the contents of the .ISO file (from Windows Explorer or using your favorite tool s, and copy them directly to the USB drive.

Another way is to mount the .ISO with your favorite tool (we used UltraISO) and from there to make the command line transfer as described below:

Close the diskpart window and reopen cmd.

Type "xcopy g: *. * / S / e / fh:" without the quotation marks, where "g:" is the drive letter that contains the .iso file and "h:" is the USB letter. Don't worry if install.wim takes a while to copy: It's the largest file on the disk.

Type "exit" without the quotation marks and press enter.

You're done. Now you can install Windows 10 from your USB drive.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).