Create windows usb install from linux

How to Create a Bootable Windows 10 USB in Linux

Last updated October 29, 2020 By Abhishek Prakash 419 Comments

Brief: This tutorial shows you how to create a bootable Windows 10 USB in Linux with and without a GUI tool called WoeUSB.

I have talked a lot about creating bootable USB of Linux in Windows. How about the other way round? How about creating a bootable Windows 10 USB in Linux?

If you are uninstalling Linux from dual boot or if you want to reinstall Windows completely or you simply want to have a Windows installation disk ready, you’ll need a bootable Windows 10 USB or DVD.

In this tutorial, I am going to show you how to create a Windows 10 bootable USB in Linux. I am using Ubuntu for this tutorial but the steps should be valid for other Linux distributions as well.

If you want to use WoeUSB graphical tool for creating Windows bootable USB, you can jump to that section directly. Personally, I don’t recommend WoeUSB.

Creating a Bootable Windows 10 USB in Linux

Prerequisite: Get Microsoft Windows 10 ISO and a USB of at least 8 GB in size

You can download Windows 10 ISO from Microsoft’s website. You have to specify the Windows 10 version, language and then you should see the link to download Windows 10.

Note that the Windows 10 ISO download link is valid for 24 hours only. So use a download manager in Linux to download the

5.6 GB file and finish it within 24 hours only.

Since the ISO and its content are more than 4 GB in size, I recommend a USB of at least 8 GB in size.

I have also made a video of this tutorial so that you can see the steps in action.

Step 2: Properly format the USB for creating bootable Windows USB

Insert your USB. You have to format it so make sure that you don’t have important data on the USB key.

In Ubuntu, press Super key (Windows key) and search for ‘Disks’. You have to use this tool to format the USB key.

In the Disks tool, make sure to select your USB drive and hit format.

It will ask to choose a partitioning scheme. It could be either MBR or GPT. Select one of them and hit Format.

It will show you a warning that you data will be erased.

Format the USB

The formatting of USB is not over yet. Now, you need to create a partition on the newly formatted USB.

Select the entire USB disk as the partition size.

Give a name to your USB and hit Create button.

Once done, your USB should be automatically mounted. It is now ready for creating bootable Windows 10 USB disk.

Files larger than 4 GB?

Newer Windows 10 ISO might have files larger than 4GB. In that case, FAT filesystem won’t work as it doesn’t allow a single file of size greater than 4 GB.

You should then format the USB in ExFAT format. This newer format allows files bigger than 4 GB.

Step 3: Copy the content of the ISO to USB

Now it’s time to copy the content of the Windows 10 ISO to the newly formatted USB.

You may ask, Abhishek, there is only one file and that is the ISO file itself. What are you talking about?

ISO is basically an archive format and you can see it’s content like any zip file in Linux. But to do that, you need to use ‘Disk Image Mounter’ tool that is installed by default in Ubuntu.

Go to your Windows 10 ISO, select it and right click on it. Now select ‘Open with other application’.

In the applications list, select Disk Image Mounter:

The ISO will be mounted. You may not see it in the left sidebar but if you click on the Other Locations, you should see it. Click on it to enter this mounted ISO folder.

You’ll see its content. All you need to do is to select all the files (Ctrl+A), copy it (Ctrl+C) and paste it in the USB drive (Ctrl+V).

Wait for the copying process to finish as it may take some time in copying 4-5 GB of data. Once it’s done, you have a bootable Windows 10 USB in your hand. Take out the USB and use it to any system you want, restart the system and change the boot settings to boot from the USB.

Читайте также:  Altstore windows как установить

Alternate Method: Creating Windows 10 bootable USB in Linux using WoeUSB

You can also use a Graphical tool called WoeUSB for creating a bootable Windows USB in Linux. However, this tool might not work perfectly all the time. This is why I prefer the first method of mounting the Windows 10 ISO and copying its content to the USB.

If you are interesting in using WoeUSB, you can click on the next section to expand it and follow the steps.

You can also watch a video of creating Windows 10 bootable USB. Do subscribe to our YouTube channel for more Linux videos:

Let’s see how to create a bootable Windows 10 USB in Ubuntu and other Linux distribution.

Step 1: Install WoeUSB application

WoeUSB is a free and open source application for creating Windows 10 bootable USB. It is actually a fork of WinUSB tool that has been discontinued now.

Ubuntu and other Ubuntu-based Linux distributions such as Linux Mint, elementary OS etc have a PPA available. You can use the command below to install WoeUSB:

For other Linux distributions, you can check out the source code from the GitHub repository:

Step 2: Format USB drive

Now, plug in your USB key. You’ll have to format it first. I presume you know how to format a USB key in your Linux distribution.

Ubuntu users can simply right click on the USB and click format.

The important part here is that you should format it in NTFS:

Note: If you use Fat 32 file system for formatting, you may encounter the error below later on:

Step 3: Using WoeUSB to create bootable Windows 10

We have everything ready for us now. Start WoeUSB program.

Browse to the downloaded Windows 10 ISO file and select the USB drive on which you want to install it. Just click on Install to begin the process.

Note that it may take up to 15 minutes in creating the Windows 10 USB. Don’t get fooled by the ‘done’ on the screen.

That’s it. You should see a success message.

Step 4: Using Windows 10 bootable USB

Once the bootable USB is ready, restart your system. At boot time, press F2 or F10 or F12 repeatedly to go to the boot settings. In here, select to boot from USB.

You’ll see that Windows 10 is being booted and it gives you the option to install or repair your system. You know what to do now from here.

I hope you find this tutorial useful for creating bootable USB of Windows 10 in Linux . If you have questions or suggestions, please feel free leave a comment.

Like what you read? Please share it with others.

Create A Bootable Windows 7 USB Drive From Linux (Tested On Ubuntu)

Author : Andrew | Posted: October 07, 2010

How to create a bootable Windows 7 USB Drive while using Ubuntu

Firstly, make sure you have a Windows 7 .ISO file (you can create it from the DVD) and a 4GB USB flash drive (or larger).

1. Install Gparted and format the USB drive to NTFS. In Ubuntu, use the following command to install Gparted:

To be able to format a drive to NTFS, you’ll also need ntfs-3g — install it using the following command:

I’m not sure if UNetbootin will mark the drive as bootable as my USB drive already had the «boot» flag enabled from Gparted, so you may want to enable it too: right click the USB drive and select «Manage flags», then check the «boot» flag.

Then you’ll have to mount the USB drive back. You can do it from the command line or Disk Utility (System > Administration > Disk Utility) but to keep things simple, you can just unplug the USB flash drive and plug it back in to the computer.

2. Some users have reported that some recent Unetbootin versions no longer let you select an USB drive formatted to NTFS and by formatting it to FAT, the Windows 7 installation fails. So here’s what to do: download Unetbootin version 494 from HERE (version tested and it should work).

Then, right click the downloaded Unetbootin file, select Properties and on the «Permissions» tab, check the «Allow executing file as program» box. Then simply double click it and it should open.

Using this (494) Unetbootin version, you have an option to «Show all Drives» which lets you select the NTFS formatted drive and write the Windows 7 ISO onto it. With newer version, this option is no longer available.

3. Open UNetbootin, select «Diskimage» and then browse for your Windows 7 ISO file.

Now simply click the «OK» button and wait for the files to be copied to the USB drive.

After Unetbootin is done, you can use the USB stick to install Windows 7 on any computer that supports booting from an USB drive.

Update: you may want to check out WinUSB (fork) instead, a tool that can create bootable Windows 10 as well as 8 and 7 sticks from Linux. See here: Make A Bootable Windows 10 USB Install Stick On Linux With WinUSB Fork

Загрузочная флешка Windows в Linux

Бывают случаи, когда вам нужно записать Windows на флешку в Linux, например, когда вы хотите поставить эту систему второй для использования специализированных программ, или вам нужно переустановить операционку своим знакомым. Или же есть пользователи Linux, которые решили вернуться на Windows, но единственную флешку уже перезаписали под Linux LiveUSB.

Загрузочная флешка Windows в Linux создается достаточно просто. Я предлагаю несколько способов решения этой проблемы. Все их я перечислил ниже.

Загрузочная флешка Windows в Linux

Загрузочную флешку можно создать с помощью терминала или специальных графических утилит. Настоятельно рекомендую отформатировать флешку в Fat32 (или Exfat) перед использованием любого из предложенных методов. Форматирование можно выполнить через Gparted, сfdisk+mkfs или через usb stick formatter (форматирование USB флеш накопителя).

Читайте также:  После обновления windows отключился wifi

Способ 1. Утилита USB Image Write

Для создания флешки можно воспользоваться утилитой Запись образа на USB. В некоторых дистрибутивах она уже предустановленна (Ubuntu, Mint и др.):

Выбрать образ в графе Write image образ и в поле to выбрать флешку. Далее нажимаем Write.

Способ 2. Утилита WoeUSB

Пожалуй, это самый простой способ создания. Установка в Ubuntu выполняется с помощью таких команд:

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt update

sudo apt install woeusb

Откройте утилиту в меню приложений:


Интерфейс простой. Нажмите на кнопку Обзор со значком папки и выберите образ. Target device это флешка, на которую будет идти запись, если у вас их несколько выберите нужную. Ещё есть поле File system, где нужно выбрать какую файловую систему будете использовать. Рекомендую FAT. Затем нажмите Install и дождитесь окончания.

При появлении ошибки с кодом 256 Source media is currently mounted, размонтируйте образ ISO с Windows, если вы его смонтировали. При ошибке Target device is currently busy, извлеките флешку, затем снова подключите её. Если не сработало, попробуйте отформатировать её.

Способ 3. Терминал и Gparted

Положите образ в домашнюю папку и переименуйте его в windows.iso во избежание проблем с пробелами. Затем перейдите в терминале в домашнюю папку

Запустите терминал через главное меню или с помощью сочетания клавиш Ctrl + Alt + T затем используйте команду dd для записи образа на флешку:

dd if=/windows.iso of=/dev/sdX

Замените X на букву вашей флешки! Узнать её можно через Gparted. В правом верхнем углу есть кнопка переключения дисков:

Тот диск который соответствует размеру вашей флешки и есть ваша флешка. В моем случае флешка на 32 гб это /dev/sdb. Значит команда будет иметь вид:

dd if=/windows.iso of=/dev/sdb

Дождитесь окончания записи и извлеките флешку.

Выводы

Как видите, создание загрузочной флешки Windows в Linux не представляет сложности. Это были все способы, которые я знаю. Если они вам помогли, напишите об этом. Если вы знаете еще способы, обязательно напишите о них в комментариях!

How to Easily Create Windows 10 Bootable USB on Ubuntu or Any Linux Distro

This tutorial is going to show you an easy way to create a Windows 10 bootable USB on Linux. I use Ubuntu 16.04 as an example. The method applies to any Linux distribution. I use Windows to do online banking because my bank doesn’t support Linux and sometimes play games that can’t run on Linux.

First, you should download Windows 10 ISO from Microsoft official download link. Note that you might not be able to download the ISO from this link on a Windows computer. This download link is visible to users on Linux computer. Once downloaded, follow the instructions below.

Note: It’s recommended to download the Windows 10 April 2018 update ISO, because the October Update ISO contains a file that is larger than 4GB, which can not be copied to a FAT32 partition.

Update: Microsoft doesn’t allow you to download the Windows 10 April 2018 Update ISO from their website anymore. You can download the ISO via this link: Win10 1803 English x64 ISO

Creating a Windows 10 Bootable USB for UEFI Firmware

This method works for UEFI firmware and is very simple. You create a GUID partition table on your USB stick, create a FAT32 file system on it, and then mount Windows 10 ISO image and copy those Windows 10 files to your USB stick and you are done. The following is a step-by-step guide.

First, install GParted partition editor on your Linux distribution. Ubuntu users run the following command.

Then insert your USB stick to your computer. Make sure you back up important files in your USB stick if there’s any. Next, launch Gparted. You will need to enter your password in order to use GParted.

Select your USB stick from the drop-down menu on the upper-right corner. My USB stick is /dev/sdb . Yours may be different.

If there’s a key icon after the partition name, that means the partition is mounted. Make sure all partitions on your USB stick are unmounted. To unmount a partition, simply right-click on it and select unmount.

Next, on the menu bar, select Device > Create partition table.

Choose GPT as the partition table type and click Apply.

Then right-click on the unallocated space and select New to create a new partition.

Change file system type from ext4 to fat32 and click Add.

Note: The install.wim file in Windows 10 October 2018 update ISO is 4.1G, so if you downloaded this ISO image, you need to change ext4 to ntfs . If you downloaded Windows 10 April 2018 Update ISO, which contains a 3.9G size install.wim file, you can change ext4 to fat32

Update: It is my observation that my NTFS formatted USB stick isn’t bootable on my old laptop, which was bought in 2012. However, it is bootable on my desktop computer, which was bought in 2017. It has a graphical UEFI firware (I can use my mouse to configure firmware settings).

Next, click the green check button on the toolbar to apply this operation. Once that’s done, close GParted (This is important), then find your Windows 10 ISO in file manager. Open it with disk image mounter.

Open the mounted file system. Select all files and folders and copy them to your USB stick.

Sometimes the file manager on Ubuntu hangs and it seems that the copy operation has stopped. Actually it’s working, just be patient. When you see a check mark, it means the copy operation has finished.

Читайте также:  System file attribute windows

If your file manager doesn’t have the Disk image mounter in the context menu, then you can use the following commands to mount. The first command will create a mount point for Windows 10 ISO and the second command will mount Windows 10 ISO under that mount point.

Now in your file manager, go to /mnt/windows10/ and copy all files and folders to your USB stick.

Once the file and folders are copied, your windows 10 bootable USB is created! You can shut down your computer, boot it from this USB stick and install Windows 10 in UEFI mode. Keep in mind that you may need to disable compatibility support module (CSM) in the firmware in order to boot in UEFI mode. You may also need to remove USB stick from your computer and insert it back in order for the firmware to detect the boot loader on your USB stick.

Boot Windows 10 ISO Installer without USB (BIOS & UEFI)

Ever wondered if you can boot Windows 10 ISO installer without a USB flash drive? Yes, you can do it with GRUB2, which is the standard boot loader on Linux.

GRUB2 can not boot Windows 10 ISO directly. You need to create a separate NTFS partition on your hard disk or SSD with a partition editor like GParted and extract the Windows 10 ISO to that partition. Download the Windows 10 ISO file. The latest Windows 10 ISO file is 5.8G. The new NTFS partition should be at least 7G and it should not be used to store any other files.

Then find your Windows 10 ISO in file manager. Open it with disk image mounter.

Open the mounted file system. Select all files and folders and copy them to the NTFS partition.

Sometimes the file manager on Ubuntu hangs and it seems that the copy operation has stopped. Actually, it’s working. Just be patient. When you see a checkmark, it means the copy operation has finished.

Next, open up a terminal window and edit the /etc/grub.d/40_custom file with a text editor such as Nano.

In this file, we can add custom entries to the GRUB boot menu. In this case, we want to add an entry to boot the Windows 10 installer. If your computer still uses the traditional BIOS firmware, then add the following lines in this file.

My NTFS partition is the 6th partition on my first disk, so I use (hd0,6) as the root. You can run sudo parted -l command to check your NTFS partition number. If your computer has multiple hard drives, use the drivemap command to set the partition (hd0,6) as the first hard disk, so Windows will be able to boot.

If your computer uses UEFI firmware, then add the following text in this file.

Save and close the file. (Press Ctrl+O , then press Enter to save a file in Nano text editor. Press Ctrl+X to exit.)

Then update GRUB boot menu.

Next, set GRUB to boot the Windows 10 installer for the next boot with the following command.

Unplug all your external USB storage devices, then reboot your computer. GRUB will choose the Windows 10 installer.

GRUB2 can also boot Linux ISO files stored on the hard drive, so you don’t need to create Linux live USB.

Creating a Windows 10 Bootable USB for Legacy BIOS Using WoeUSB

WoeUSB is a fork of WinUSB. Both of them are open-source software (licensed in GPL) for making Windows bootable USB sticks on Linux platform, but the latter hasn’t been updated since 2012. You may be wondering why it’s named WoeUSB. The author said it’s a GNU convention to abbreviate software that support Windows to “woe”.

To install WoeUSB on Ubuntu 14.04/16.04/17.04, you can use the following PPA. Simply open up a terminal window and run the following commands one by one. Other Linux distro users can compile this software by following the instructions on the Github project page.

This PPA contains many other software. If you don’t need them, you can now remove this PPA from your system.

You can launch WoeUSB from Unity Dash or your application menu.

You can also start it from command line with:

It’s very easy to use the WoeUSB GUI. Select Windows ISO image and your target USB device. Make sure your data on the USB device is backed up before hitting the Install button.

Then wait for the installation to complete.

Once done, you can use the bootable USB to install Windows 10 on your computer.

How to Use WoeUSB From the Command Line

First, find the device name of your USB stick using the following command.

Mine is /dev/sdb . Make sure your USB is unmounted with the following command. Replace /dev/sdb1 with your own partition name.

Then create a bootable Windows 10 USB like below. Red texts shoudl be adapted to your own ISO file name and USB device name. The -v (—verbose) option will give more detailed output.

In my test, the Windows 10 USB created with WoeUSB can boot in both legacy and UEFI mode on my old computer. On my new computer, it can boot in legacy mode but failed in UEFI mode. I don’t know the exact reason, but it’s probably because of bug in this software.

That’s it! I hope this tutorial helped you create windows 10 bootable USB on Ubuntu or any Linux distribution. As always, if you found this post useful, then subscribe to our free newsletter to get new tutorials.

Оцените статью