Ubuntu write windows 10 iso to usb

This tutorial shows an easy way to create a Windows 10 bootable USB on Linux. It works on Ubuntu and any Linux distro for UEFI and legacy firmware.

This tutorial is going to show you an easy way to create a Windows 10 bootable USB on Linux. I use Ubuntu 20.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.

What you need

  • A computer running Linux
  • A USB flash drive at least 8GB
  • Windows 10 ISO

Download Windows 10 ISO

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.

Windows 10 Disc Image ISO

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.

sudo apt install gparted

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.

make a windows 10 bootable usb

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

make a windows 10 bootable usb on linux

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.

make windows 10 bootable usb on ubuntu

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

create bootable windows 10 usb on linux

Choose GPT as the partition table type and click Apply.

windows-10-bootable-usb-uefi-linux-gpt

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

windows 10 usb gpt fat32

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

windows 10 usb ubuntu 16.04

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.

mount windows 10 iso on ubuntu

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

windows 10 usb native UEFI

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.

windows 10 bootable usb creator linux

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.

sudo mkdir /mnt/windows10/

sudo mount -t auto -o loop /path/to/window-10-iso /mnt/windows10/

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.

GRUB boot Windows 10 ISO BIOS

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

ubuntu mount windows 10 ISO image

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

GRUB2 boot Windows 10 ISO

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.

windows 10 bootable usb creator linux

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

sudo nano /etc/grub.d/40_custom

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.

menuentry "Windows-10-Installer.iso" {
  set root=(hd0,6)
  insmod part_msdos
  insmod ntfs
  insmod ntldr
  #uncomment the following line if your computer has multiple hard drives. 
  #drivemap -s (hd0) ${root}
  ntldr /bootmgr
}

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.

menuentry "Windows-10-Installer.iso" {
  set root=(hd0,6)
  insmod part_gpt
  insmod ntfs
  insmod chain
  chainloader /efi/boot/bootx64.efi
}

Boot Windows 10 ISO Installer without USB

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.

sudo grub-mkconfig -o /boot/grub/grub.cfg

or

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

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

sudo grub-reboot Windows-10-Installer.iso

or

sudo grub2-reboot Windows-10-Installer.iso

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

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

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

  • How to Boot ISO Files From GRUB2 Boot Loader

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.

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt update

sudo apt install woeusb

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

sudo add-apt-repository --remove ppa:nilarimogard/webupd8

sudo apt update

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

woeusb ubuntu

You can also start it from command line with:

woeusbgui

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.

woeusb ubuntu install

Then wait for the installation to complete.

make windows 10 bootable usb on ubuntu

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.

lsblk

woeusb command line

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

sudo umount /dev/sdb1

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.

sudo woeusb -v --device windows-10.iso /dev/sdb

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.

Rate this tutorial

[Total: 112 Average: 4.3]

Learn how to create a bootable Windows 10 USB on Ubuntu and Linux Mint using a free application called ‘WoeUSB’ in this guide.

While I don’t use Windows 10 as my primary OS I do know, every now and then, need to. And should I need to create a bootable Windows 10 USB to install the system from I like do it from my Ubuntu desktop.

There are several ways to perform this particular task, but the steps in this post walk through what I consider to be the easy way to create a bootable Windows 10 USB (one that actually boots).

Ready to learn more?

create windows 10 usb on Ubuntu linux
Windows 10

WoeUSB is the (oddly named) app to use to make a bootable Windows 10 USB stick on Ubuntu. A fork of an earlier tool called WinUSB, WoeUSB is free open source software and is available as a graphical app (GUI) and a command-line only (CLI) client.

In this tutorial we focus on using the WoeUSB GUI app.

So what does it do?

Related Guide

How to Install WSL 2 on Windows 10

Well, WoeUSB lets you make a bootable USB for various Windows releases, including Windows Vista, Windows 7, Window 8, and Windows 10. 

All languages and all variants of Windows, including Pro, Home, N, 32-bit, and more. are supported, and the tool works with both ‘legacy’ and ‘UEFI’ bootmodes, too.

For advanced use cases I recommend using the WoeUSB CLI as it has all sorts of flags and switches to curate custom installs with specialist needs.

But for everyone else the WoeUSB GUI client is all that’s needed.

Before we begin make sure you have all of the following to handy, as all are required to create a bootable Windows 10 USB on Ubuntu:

  • WoeUSB app
  • USB flash drive (4GB minimum)
  • Windows 10 .iso file

Remember: you can download Windows 10 disc images from the Microsoft website. If you don’t currently have one you should go there to grab one. You do need a valid Windows license to activate and use most versions of Windows, but you don’t need one to create an installable USB of Windows or perform the install.

1. Install WoeUSB on Ubuntu

WoeUSB launcher
Getting the WoeUSB app

First the drawback: WoeUSB is not longer actively maintained upstream, meaning you can no longer download the tool direct from its original GitHub page.

However, since the tool is so useful the community has stepped in to fork the app and continue development. They have also created personal package archive (PPA) for users to install WoebUSB on Ubuntu 18.04 LTS through 20.04 LTS.

To add the WoeUSB PPA to your software sources run the following two commands from a terminal emulator of your choice:

sudo add-apt-repository ppa:tomtomtom/woeusb
sudo apt update && sudo apt install woeusb-frontend-wxgtk

If you use a 32-bit version of Ubuntu 16.04 LTS you can download a Ubuntu 32-bit WoeUSB installer.

2. Run WoeUSB

The WoeUSB tool on Ubuntu desktop
The WoeUSB GUI

With WoeUSB installed on your system the next step is to open it. Go to your preferred application menu (on Ubuntu press the Super key) and find ‘WoeUSB’.

The app is quick to open and is easy to use.

First, select a valid Windows 10 .ISO image using the file selector button, then select the USB drive you want to install it to from the ‘Target device’ section.

If you don’t see your USB device listed in the ‘Target device’ section first make sure it’s plugged in correctly and then click the ‘refresh’ button to update the list of attached devices.

3. Create Windows 10 Bootable USB

The WoeUSB tool on Ubuntu desktop
Installing…

Before you go ahead and hit ‘install’ to create your bootable Windows USB please, please double-check that you’ve selected the correct drive first. The install process will wipe the contents of the selected USB drive. You will lose any data stored on it.

Other than that, the tool does the rest so just let it run its course

Once flashing is complete you’ll see a small notification. Close WoeUSB, safely eject the USB drive you’ve created, and use it as a boot device elsewhere to install Windows 10.

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

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

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

Способ 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 во избежание проблем с пробелами. Затем перейдите в терминале в домашнюю папку

cd ~

Запустите терминал через главное меню или с помощью сочетания клавиш 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 не представляет сложности. Это были все способы, которые я знаю. Если они вам помогли, напишите об этом. Если вы знаете еще способы, обязательно напишите о них в комментариях!

Creative Commons License

Статья распространяется под лицензией Creative Commons ShareAlike 4.0 при копировании материала ссылка на источник обязательна .

Об авторе

Здравствуйте, я изучаю Linux и обладаю хорошими знаниями английского.

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

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.

There are two ways to do that and I have discussed both in this tutorial.

  • The first method is mounting the ISO image of Windows to a USB disk formatted in ExFAT system. This works most of the times but there could be instances where it wouldn’t boot.
  • The second method is to use a tool like Ventoy. It creates a UEFI compatible bootable disk.

Creating a Bootable Windows 10 USB in Linux

How to create 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.

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.

Disks Tool Ubuntu
Disks Tool in Ubuntu

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

Format USB before creating Windows 10 Bootable USB
Format USB before creating Windows 10 Bootable USB

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

Format USB for creating Windows 10 Bootable USB
Choose either of MBR or GPT

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

Format USB in Ubuntu Linux

Format the USB

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

Create a partition on the formatted USB
Create a partition on the formatted USB

Select the entire USB disk as the partition size.

Creating partition on USB for creating a bootable Windows 10 USB in Ubuntu
Creating partition on USB

Give a name to your USB and hit Create button.

Formatting USB in Ubuntu Linux
Give a name and hit Create

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

Tip: Files larger than 4 GB?

Newer Windows 10 ISO might have files larger than 4 GB. 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. Use this tutorial to learn how to format a USB in ExFAT format in Linux.

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

Mount the Windows 10 ISO in Ubuntu
Mount the Windows 10 ISO

In the applications list, select Disk Image Mounter:

Mounting Windows 10 ISO in Ubuntu
Mounting Windows 10 ISO

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.

Windows 10 ISO mounted in Linux
Windows 10 ISO Mounted

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

Windows 10 Iso Content
Windows 10 ISO Content

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.

Method 2: Create bootable Windows 10 USB using Ventoy

Ventoy is an open source tool for making live USBs. You can use it to create a multi-boot USB, persistent Linux live USB and bootable Windows USB.

I find Ventoy an unorthodox tool. It is slightly tricky to use and this is the reason I am writing this step-by-step tutorial.

Step 1: Prepare your USB drive

Ventoy formats the USB disk while creating the bootable disk. However, I noticed it failed to do so for an already bootable Linux disk. For this reason, I advise you to format the USB disk before you proceed further.

Plug in and then format the USB disk. You can do that by right-clicking on the mounted disk and then selecting the format option.

format usb disk ubuntu linux

It doesn’t matter which filesystem you choose during formatting. It will be formatted again by Ventoy in the later steps.

formatting usb in ubuntu

Once it is formatted, keep it plugged in and go on to the next step of installing Ventoy.

Step 2: Download and install Ventoy on Linux

Ventoy is a mix of GUI and CLI tool. It can be used on any Linux distribution. Download Ventoy for Linux from the release page of its GitHub repository.

You’ll find the .tar.gz file with Linux in its name. This is the file you should download.

download ventoy for linux

Once downloaded, extract the tar gz file. Simply right click on it and extract it.

extract ventoy linux

Go inside the extracted folder, and you’ll find a few scripts in it. You need to run one named VentoyWeb.sh. To do that, you’ll have to use the command line.

Now if you are familiar with Linux command line, I presume that you can easily find your way to the file by using the cd command.

Alternatively, you can use the “open in terminal” feature of the file manager to open the location in a terminal.

open in terminal

Once you are in the correct directory in the terminal, use the following command to run Ventoy:

sudo ./VentoyWeb.sh

Ventoy runs inside a browser. It will give you the URL when you run it. Copy this URL and paste it in a browser.

run ventoy linux

It will open a web page with Ventoy running in it and if the USB is already plugged in, it should recognize it. If not, press the refresh button.

Step 3: Use Ventoy to create bootable Windows 10 USB disk

Though Ventoy has the option to create a bootable disk with secure boot, it is experimental and may not work.

Considering you are going for a UEFI installation, it will be wise use GPT for partitioning scheme.

choose partitioning scheme

Once things are set, hit the install button. It will show you a couple of obligatory warnings. If the installation completes successfully, you should see a success message.

install ventoy on disk

Note: If you do not see Ventoy disk mounted after the successful installation, please plug out the USB and then plug it in again.

When you hit the install button, it creates two partitions on the USB disk.

  • VTOYEFI: A small partition for the UEFI files.
  • Ventoy: A big, empty partition in ExFAT format where you’ll copy the ISO image.
check ventoy partitions

Yes. That’s what you need to do. Copy the ISO image of the Windows 10 into the bigger ExFAT partition on the USB disk.

copy windows iso to ventoy

Once the copying finishes, DO NOT RUSH to plug out the USB just yet. Click on the unmount option from the file manager. Chances are that some files are still being written and it may show an error message.

dont plug out the usb

Wait for a few more minutes and you should see a message that it is safe to remove the disk. Now you can unplug it and use it on whichever system you want.

Step 4: Using the bootable Windows 10 disk

Alright! You are almost there. Plug in your bootable Windows USB you created in the previous section. Start the computer and go to the BIOS setting by using the F2/F10 or F12 key at the time you see the logo of your computer’s manufacturer.

In here, look for the secure boot settings and disable it. If the secure boot is enabled, chances are that your system won’t allow you to boot from the USB disk (to secure your system and data at boot time).

disable secure boot dell system
Disable secure boot in BIOS

After disabling the secure boot, go into the boot order and then choose the UEFI USB Disk to boot from. Some systems will give this option after you press F12 or F10 button.

boot from windows disk ventoy

It takes a couple of minutes to start the Windows disk. You should see a screen like this and it will give you the option to repair boot or install Windows.

booting windows with ventoy
Booting into Windows ISO image with Ventoy

I think you can take things from here. Enjoy it :)

There is another popular tool WoeUSB that can also be used for this purpose.

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.

Booting Windows 10 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.

Booting Windows 10 USB

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 to leave a comment.

Содержание

  1. Make bootable usb from iso windows 10 in ubuntu
  2. 2. Requirements
  3. 3. USB selection
  4. 4. Boot selection and Partition scheme
  5. 5. Select the Ubuntu ISO file
  6. 6. Write the ISO
  7. 7. Additional downloads
  8. 8. Write warnings
  9. 9. Writing the ISO
  10. 10. Installation complete
  11. How to Easily Create Windows 10 Bootable USB on Ubuntu or Any Linux Distro
  12. What you need
  13. Download Windows 10 ISO
  14. Creating a Windows 10 Bootable USB for UEFI Firmware
  15. Boot Windows 10 ISO Installer without USB (BIOS & UEFI)
  16. Creating a Windows 10 Bootable USB for Legacy BIOS Using WoeUSB
  17. How to Use WoeUSB From the Command Line
  18. How to Create a Bootable Windows 10 USB on Ubuntu
  19. How to Create Bootable Windows 10 USB on Ubuntu
  20. 1. Install WoeUSB on Ubuntu
  21. 2. Run WoeUSB
  22. 3. Create Windows 10 Bootable USB
  23. How to Create a Bootable Windows 10 USB in Linux
  24. Creating a Bootable Windows 10 USB in Linux
  25. Prerequisite: Get Microsoft Windows 10 ISO and a USB of at least 8 GB in size
  26. Step 2: Properly format the USB for creating bootable Windows USB
  27. Step 3: Copy the content of the ISO to USB
  28. Method 2: Create bootable Windows 10 USB using Ventoy
  29. Step 1: Prepare your USB drive
  30. Step 2: Download and install Ventoy on Linux
  31. Step 3: Use Ventoy to create bootable Windows 10 USB disk
  32. Step 4: Using the bootable Windows 10 disk
  33. Step 1: Install WoeUSB application
  34. Step 2: Format USB drive
  35. Step 3: Using WoeUSB to create bootable Windows 10
  36. Step 4: Using Windows 10 bootable USB

Make bootable usb from iso windows 10 in ubuntu

With a bootable Ubuntu USB stick, you can:

Creating a bootable Ubuntu USB stick from Microsoft Windows is very simple and we’re going to cover the process in the next few steps.

Alternatively, we also have tutorials to help you create a bootable USB stick from both Ubuntu and Apple macOS.

2. Requirements

Take note of where your browser saves downloads: this is normally a directory called ‘Downloads’ on your Windows PC. Don’t download the ISO image directly to the USB stick! If using Windows XP or Vista, download version 2.18 of Rufus.

3. USB selection

Perform the following to configure your USB device in Rufus:

809f47a67de94bf6d405a142bc507ed84a397099

You can avoid the hassle of selecting from a list of USB devices by ensuring no other devices are connected.

4. Boot selection and Partition scheme

Now choose the Boot selection. Choices will be Non bootable and FreeDOS. Since you are creating a bootable Ubuntu device select FreeDOS.

The default selections for Partition scheme (MBR) and Target system (BIOS (or UEFI-CSM)) are appropriate (and are the only options available).

9cd9cac04803e637b25805c0b5968e7b16478627

5. Select the Ubuntu ISO file

To select the Ubuntu ISO file you downloaded previously, click the SELECT to the right of “Boot selection”. If this is the only ISO file present in the Downloads folder you will only see one file listed.

Select the appropriate ISO file and click on Open.

6. Write the ISO

The Volume label will be updated to reflect the ISO selected.

Leave all other parameters with their default values and click START to initiate the write process.

c8d89e0c41f6d31f0a4aa38675020973b43d46c9

7. Additional downloads

You may be alerted that Rufus requires additional files to complete writing the ISO. If this dialog box appears, select Yes to continue.

0cb88c1c27bccfc6bf73d500313e0f49625e0c27

8. Write warnings

You will then be alerted that Rufus has detected that the Ubuntu ISO is an ISOHybrid image. This means the same image file can be used as the source for both a DVD and a USB stick without requiring conversion.

Keep Write in ISO Image mode selected and click on OK to continue.

fbacb96229f3fe51369752a9010a5af6f5586252

Rufus will also warn you that all data on your selected USB device is about to be destroyed. This is a good moment to double check you’ve selected the correct device before clicking OK when you’re confident you have.

6be7f071bb10bec2694b5e4b552742fb5e7747fe

If your USB stick contains multiple partitions Rufus will warn you in a separate pane that these will also be destroyed.

9. Writing the ISO

The ISO will now be written to your USB stick, and the progress bar in Rufus will give you some indication of where you are in the process. With a reasonably modern machine, this should take around 10 minutes. Total elapsed time is shown in the lower right corner of the Rufus window.

2ae0bc900f7dbde497f07adf382fd44a64f372fd

10. Installation complete

When Rufus has finished writing the USB device, the Status bar will be green filled and the word READY will appear in the center. Select CLOSE to complete the write process.

df720a52ca05eb8348856590a6ffc1c1ab27e8ac

Congratulations! You now have Ubuntu on a USB stick, bootable and ready to go.

If you want to install Ubuntu, take a look at our install Ubuntu desktop tutorial.

Источник

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

What you need

Download Windows 10 ISO

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.

Windows 10 Disc Image ISO

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.

make a windows 10 bootable usb

make a windows 10 bootable usb on

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.

make windows 10 bootable usb on ubuntu 1

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

create bootable windows 10 usb on

Choose GPT as the partition table type and click Apply.

windows 10 bootable usb uefi linux gpt

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

windows 10 usb gpt fat32

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

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

windows 10 usb ubuntu 16.04

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.

mount windows 10 iso on ubuntu

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

windows 10 usb native UEFI

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.

windows 10 bootable usb creator

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.

GRUB boot Windows 10 ISO BIOS

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

ubuntu mount windows 10 ISO image

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

GRUB2 boot Windows 10 ISO

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.

windows 10 bootable usb creator

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.

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

Boot Windows 10 ISO Installer without USB

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.

Boot Windows 10 ISO Installer without USB BIOS UEFI

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.

woeusb ubuntu

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.

woeusb ubuntu install

Then wait for the installation to complete.

make windows 10 bootable usb on ubuntu

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.

woeusb command line

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.

Источник

How to Create a Bootable Windows 10 USB on Ubuntu

Learn how to create a bootable Windows 10 USB on Ubuntu and Linux Mint using a free application called ‘WoeUSB’ in this guide.

While I don’t use Windows 10 as my primary OS I do know, every now and then, need to. And should I need to create a bootable Windows 10 USB to install the system from I like do it from my Ubuntu desktop.

There are several ways to perform this particular task, but the steps in this post walk through what I consider to be the easy way to create a bootable Windows 10 USB (one that actually boots).

Ready to learn more?

How to Create Bootable Windows 10 USB on Ubuntu

WoeUSB is the (oddly named) app to use to make a bootable Windows 10 USB stick on Ubuntu. A fork of an earlier tool called WinUSB, WoeUSB is free open source software and is available as a graphical app (GUI) and a command-line only (CLI) client.

In this tutorial we focus on using the WoeUSB GUI app.

So what does it do?

ubuntu 20.4 wsl

Well, WoeUSB lets you make a bootable USB for various Windows releases, including Windows Vista, Windows 7, Window 8, and Windows 10.

All languages and all variants of Windows, including Pro, Home, N, 32-bit, and more. are supported, and the tool works with both ‘legacy’ and ‘UEFI’ bootmodes, too.

For advanced use cases I recommend using the WoeUSB CLI as it has all sorts of flags and switches to curate custom installs with specialist needs.

But for everyone else the WoeUSB GUI client is all that’s needed.

Before we begin make sure you have all of the following to handy, as all are required to create a bootable Windows 10 USB on Ubuntu:

Remember: you can download Windows 10 disc images from the Microsoft website. If you don’t currently have one you should go there to grab one. You do need a valid Windows license to activate and use most versions of Windows, but you don’t need one to create an installable USB of Windows or perform the install.

1. Install WoeUSB on Ubuntu

First the drawback: WoeUSB is not longer actively maintained upstream, meaning you can no longer download the tool direct from its original GitHub page.

However, since the tool is so useful the community has stepped in to fork the app and continue development. They have also created personal package archive (PPA) for users to install WoebUSB on Ubuntu 18.04 LTS through 20.04 LTS.

To add the WoeUSB PPA to your software sources run the following two commands from a terminal emulator of your choice:

If you use a 32-bit version of Ubuntu 16.04 LTS you can download a Ubuntu 32-bit WoeUSB installer.

2. Run WoeUSB

With WoeUSB installed on your system the next step is to open it. Go to your preferred application menu (on Ubuntu press the Super key) and find ‘WoeUSB’.

The app is quick to open and is easy to use.

If you don’t see your USB device listed in the ‘Target device’ section first make sure it’s plugged in correctly and then click the ‘refresh’ button to update the list of attached devices.

3. Create Windows 10 Bootable USB

Before you go ahead and hit ‘install’ to create your bootable Windows USB please, please double-check that you’ve selected the correct drive first. The install process will wipe the contents of the selected USB drive. You will lose any data stored on it.

Other than that, the tool does the rest so just let it run its course

Once flashing is complete you’ll see a small notification. Close WoeUSB, safely eject the USB drive you’ve created, and use it as a boot device elsewhere to install Windows 10.

Home » How To » How to Create a Bootable Windows 10 USB on Ubuntu

Источник

How to Create a Bootable Windows 10 USB in Linux

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.

There are two ways to do that and I have discussed both in this tutorial.

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

create bootable windows 10 in ubuntu

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.

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.

Method 2: Create bootable Windows 10 USB using Ventoy

Ventoy is an open source tool for making live USBs. You can use it to create a multi-boot USB, persistent Linux live USB and bootable Windows USB.

I find Ventoy an unorthodox tool. It is slightly tricky to use and this is the reason I am writing this step-by-step tutorial.

Step 1: Prepare your USB drive

Ventoy formats the USB disk while creating the bootable disk. However, I noticed it failed to do so for an already bootable Linux disk. For this reason, I advise you to format the USB disk before you proceed further.

Plug in and then format the USB disk. You can do that by right-clicking on the mounted disk and then selecting the format option.

It doesn’t matter which filesystem you choose during formatting. It will be formatted again by Ventoy in the later steps.

Once it is formatted, keep it plugged in and go on to the next step of installing Ventoy.

Step 2: Download and install Ventoy on Linux

Ventoy is a mix of GUI and CLI tool. It can be used on any Linux distribution. Download Ventoy for Linux from the release page of its GitHub repository.

Once downloaded, extract the tar gz file. Simply right click on it and extract it.

Go inside the extracted folder, and you’ll find a few scripts in it. You need to run one named VentoyWeb.sh. To do that, you’ll have to use the command line.

Now if you are familiar with Linux command line, I presume that you can easily find your way to the file by using the cd command.

Alternatively, you can use the “open in terminal” feature of the file manager to open the location in a terminal.

Once you are in the correct directory in the terminal, use the following command to run Ventoy:

Ventoy runs inside a browser. It will give you the URL when you run it. Copy this URL and paste it in a browser.

run ventoy

It will open a web page with Ventoy running in it and if the USB is already plugged in, it should recognize it. If not, press the refresh button.

Step 3: Use Ventoy to create bootable Windows 10 USB disk

Though Ventoy has the option to create a bootable disk with secure boot, it is experimental and may not work.

Considering you are going for a UEFI installation, it will be wise use GPT for partitioning scheme.

choose partitioning scheme

Once things are set, hit the install button. It will show you a couple of obligatory warnings. If the installation completes successfully, you should see a success message.

Note: If you do not see Ventoy disk mounted after the successful installation, please plug out the USB and then plug it in again.

When you hit the install button, it creates two partitions on the USB disk.

Yes. That’s what you need to do. Copy the ISO image of the Windows 10 into the bigger ExFAT partition on the USB disk.

copy Windows ISO to Ventoy

Once the copying finishes, DO NOT RUSH to plug out the USB just yet. Click on the unmount option from the file manager. Chances are that some files are still being written and it may show an error message.

Wait for a few more minutes and you should see a message that it is safe to remove the disk. Now you can unplug it and use it on whichever system you want.

Step 4: Using the bootable Windows 10 disk

Alright! You are almost there. Plug in your bootable Windows USB you created in the previous section. Start the computer and go to the BIOS setting by using the F2/F10 or F12 key at the time you see the logo of your computer’s manufacturer.

In here, look for the secure boot settings and disable it. If the secure boot is enabled, chances are that your system won’t allow you to boot from the USB disk (to secure your system and data at boot time).

After disabling the secure boot, go into the boot order and then choose the UEFI USB Disk to boot from. Some systems will give this option after you press F12 or F10 button.

boot from windows disk ventoy

It takes a couple of minutes to start the Windows disk. You should see a screen like this and it will give you the option to repair boot or install Windows.

I think you can take things from here. Enjoy it 🙂

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.

create bootable windows usb in linux 2

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

create bootable windows usb in linux 3

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

create bootable windows usb in linux 7

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.

create bootable windows usb in linux 4

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.

create bootable windows usb in linux 5

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

create bootable windows usb in linux 6

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.

booting windows 10 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.

booting windows 10 usb 1

Like what you read? Please share it with others.

Источник

WinUSB is old, obsolete, and outdated. It can cause problems on newer systems. You should be using WineUSB or other software in place of WinUSB.

This answer is, however, left here as-is for historical purposes.

Create a bootable Windows USB (Vista and above) from Ubuntu through WinUSB software.

Ubuntu 12.04 through 15.04

Run the below commands on terminal to install WinUSB from a PPA,

sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update
sudo apt-get install winusb

WinUSB screenshot

Warning for Ubuntu EFI:

installing WinUSB on EFI loaded Ubuntu will uninstall the grub-efi packages in order to install the grub-pc packages. It will make your system unbootable if you don’t manually reinstall grub-efi package before rebooting.

To do the manual re-install do:

sudo update-grub
sudo grub-install /dev/sda
sudo update-grub
sudo reboot

Community's user avatar

answered Nov 24, 2013 at 13:05

Avinash Raj's user avatar

Avinash RajAvinash Raj

75.7k55 gold badges212 silver badges252 bronze badges

39

Any Ubuntu version

even other Linux distros as long as GParted and GRUB are installed.

Install GParted, GRUB, 7z, and NTFS on Ubuntu with:

sudo apt-get install gparted grub-pc-bin p7zip-full ntfs-3g

For BIOS: MBR partition scheme

  1. Using GParted, rewrite the USB drive’s partition table as msdos, format it as NTFS, and then «Manage flags» and add the boot flag.

  2. In GParted, right click the USB partition and select Information. Copy the UUID somewhere as you will need it.

  3. Mount your Windows ISO or DVD and copy all its files to the USB drive.

  4. Go to the USB drive, and if the folder named boot has uppercase characters, make them all lowercase by renaming it.

  5. Install GRUB on the USB drive.

    In the below command, replace /dev/sdX with the device (e.g. /dev/sdb, not /dev/sdb1) and replace <USB_mount_folder> with the folder where you mounted the USB drive (which could be like /media/<username>/<UUID>).

    sudo grub-install --target=i386-pc --boot-directory="/<USB_mount_folder>/boot" /dev/sdX
    
  6. Create a GRUB config file in the USB drive folder boot/grub/ with the name grub.cfg.

    Write this into the file, replacing <UUID_from_step_2> with the UUID you copied down in step 2.

    echo "If you see this, you have successfully booted from USB :)"
    insmod ntfs
    insmod search_fs_uuid
    search --no-floppy --fs-uuid <UUID_from_step_2> --set root
    ntldr /bootmgr
    boot
    
  7. Unmount the USB drive.

  8. Now to use it, restart your PC, and boot from the USB drive.

For UEFI: GPT partition scheme *

* Older Windows versions / editions may not be properly supported or not supported at all. I suggest reading the Microsoft UEFI Firmware page.

  1. Using GParted, rewrite the partition table of the USB drive as GPT.
  2. Create a new primary partition and format it as FAT32.
  3. Mount your Windows ISO or DVD and copy all its files to the USB drive.
  4. Look on USB in the efi/boot/ folder. If there’s a file bootx64.efi (bootia32.efi) then you’re done. The USB is bootable. Skip to step 7.
  5. Otherwise, open sources/install.wim with the Archive Manager (you must have 7z installed) and browse to ./1/Windows/Boot/EFI/. From here extract bootmgfw.efi somewhere, rename it to bootx64.efi (or bootia32.efi for supported 32 bits OS [?]) and put it on USB in efi/boot/ folder.
  6. If you’re making a Windows 7 USB, copy the boot folder from efi/microsoft/ to efi folder.
  7. Don’t forget to unmount (safely remove) the USB drive.
  8. Select the proper EFI loader from your BIOS.

Source: My blog post about this can be found at Make a bootable Windows USB from Linux.

Note

When properly used with a compatible target operating system, both of these methods should get you a bootable USB drive. However this does not guarantee successful installation of Windows.

wjandrea's user avatar

wjandrea

13.8k4 gold badges46 silver badges94 bronze badges

answered Jun 25, 2014 at 10:15

Cornelius's user avatar

CorneliusCornelius

9,3134 gold badges39 silver badges61 bronze badges

32

Writing ISOs with WoeUSB (WinUSB fork)

Some answers are outdated, since WinUSB is not working anymore. But there is a working fork called WoeUSB.

Github: https://github.com/WoeUSB/WoeUSB

TLDR:

sudo woeusb --target-filesystem NTFS --device /path/to/your.iso /dev/sdX

Installation

It does not uninstall grub-efi anymore!

☞ Ubuntu / Debian

sudo add-apt-repository universe # contains the p7zip-full dependency
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install woeusb

☞ Arch  

pacaur -S woeusb

☞ Fedora

dnf install -y WoeUSB

☞ OpenSUSE

zypper install WoeUSB

Identifying the USB stick (the /dev/sdX path)

GUI approach

Search for a programm called disks, or if you use gnome you can launch it by executing gnome-disks.

Command line approach

There are several commands available to list storage devices. You might try one of these:

sudo lsblk --scsi --paths 
sudo lshw -class disk -short

Identify your usb device and see which path it has (like /dev/sdX).

Writing the ISO

After installation, write the windows ISO to your storage device with the following command. In the command below replace the X in /dev/sdX with your usb device path (see above how to find it).

sudo woeusb --target-filesystem NTFS --device /path/to/your.iso /dev/sdX

The --target-filesystem NTFS flag is required if the installation image is greater than 4GB, which is the case for the current Windows 10 official ISO file.

Antoine's user avatar

answered Jun 24, 2017 at 22:13

Eugene's user avatar

EugeneEugene

1,5062 gold badges11 silver badges10 bronze badges

19

WoeUSB is a tool for creating a bootable USB flash drive used for installing Windows. Native UEFI booting is supported for Windows 7 and later images. WoeUSB is an updated fork of the WinUSB project.

Some third-party installers feature Windows installation images (/sources/install.wim) greater than 4GB making FAT32 as target filesystem impossible. NTFS filesystem support has been added to WoeUSB 3.0.0 and later.

WoeUSB (GUI+CLI) installation

Ubuntu 18.04 and later

  1. Visit the WoeUSB GitHub page and look for a file with the form woeusb-x.x.x.bash (example: woeusb-5.2.2.bash).

  2. Download woeusb-x.x.x.bash (example: wget https://github.com/WoeUSB/WoeUSB/releases/download/v5.2.2/woeusb-5.2.2.bash but the latest version may be different from 5.2.2).

  3. Right-click the woeusb-x.x.x.bash file that you downloaded, select Properties, and under the Permissions tab put a check in the checkbox before where it says Allow executing file as program.

  4. Open the terminal and change locations with cd to the directory that contains woeusb-x.x.x.bash.

  5. Install wimtools.

    sudo apt install wimtools
    
  6. Insert a USB flash drive. If there are any files on the USB flash drive back them up to a different device. Open the disks application and make a note of the Device to be used later in step 7. The device should have the form /dev/sdX where X is a letter of the alphabet, and in step 7 you must replace the X with the correct letter of the alphabet that you found in Disks.

  7. Run the woeusb-x.x.x.bash script.

    sudo ./woeusb-x.x.x.bash --target-filesystem NTFS --device Windows10.iso /dev/sdX # for Windows 10

    or

    sudo ./woeusb-x.x.x.bash --target-filesystem NTFS --device Windows11.iso /dev/sdX # for Windows 11

    The command for other versions of Windows has a similar form to the above two commands.

The USB drive with Windows installer boots in either UEFI mode or BIOS mode.

  • UEFI mode (also boots with Secure Boot enabled)

  • BIOS mode (may be called CSM or Legacy mode)

Ubuntu 14.04-18.04

sudo add-apt-repository ppa:nilarimogard/webupd8 
sudo apt update  
sudo apt install woeusb

This will install the WoeUSB graphical interface and the WoeUSB command line tool. WoeUSB supports both UEFI and BIOS for FAT32/NTFS/ExFAT USB flash drives.

To install the WoeUSB command line tool snap package in all currently supported versions of Ubuntu open the terminal and type:

sudo snap install --edge woe-usb  
sudo snap connect woe-usb:removable-media

To launch the woe-usb snap package command line tool run the following command:

/snap/bin/woe-usb.woeusb

If you get a permission denied error click the Permissions button on the woe-usb screen in Ubuntu Software and toggle the permissions options from OFF to ON as shown in the below screenshot.

woe-usb Permissions

The WoeUSB GUI is easier to use than the WoeUSB command line tool. Click the radio button to the left of where it says From a disk image (iso), browse to the location of the Windows .iso file, under Target device select a USB flash drive, open Disks application and check that the Device name in Disks matches the Target device in WoeUSB (it should be something like /dev/sdX where X is a letter of the alphabet), and click the Install button to install to create a bootable Windows installation media on the USB flash drive.

enter image description here

Windows USB drive from Ubuntu failing repeatedly
WoeUSB Issues

answered Jun 29, 2014 at 11:43

karel's user avatar

karelkarel

106k93 gold badges263 silver badges290 bronze badges

23

The current UNetbootin boot chain is not compatible with UEFI and computers that come with a pre-installed copy Windows 8

You can use dd instead, while being careful in what you are doing:

sudo dd if=/path/to/iso/windows.iso of=/dev/sdX bs=4M; sync
  • Replace sdX with the drive you want to use (in my case, sdg):
  • This requires that your motherboard is able to boot from CDROM-USB.

If you want still to use UNetbootin, there are 2 (3) things that you will need:

  1. Unetbootin
  2. Gparted
  3. Internet access to install all the above, the Windows ISO image and a USB stick with more than 4GB.

So, first, backup all the contents of your usb stick. Once that is done install gparted and unetbootin:

sudo apt-get install gparted unetbootin

Now look for gparted in the Dash or type gparted in the terminal. Select your USB stick from the right dropdown list. In my case it’s /dev/sdg, yours may be different. Remove all partitions and create a single big FAT32 partition with Gparted.

Once that is done, unplug and plug your USB stick so it gets mounted (you can also mount it from the same GParted), now execute Unetbootin, again, you can look in the dash or typing in the terminal. Select that you want to use an iso, look for the path your ISO is.

Mark the checkbox to see all devices, here you have to select the very same device you selected in Gparted, otherwise your data can be lost. Select continue. Wait for a moment and done. Restart your pc and select to boot from the USB.

wjandrea's user avatar

wjandrea

13.8k4 gold badges46 silver badges94 bronze badges

answered Oct 25, 2013 at 15:14

Braiam's user avatar

BraiamBraiam

66.2k30 gold badges174 silver badges262 bronze badges

11

In Non-UEFI machines, we can use GRUB2 to make USB stick bootable.
Then, we can use ‘ntldr’ command in the GRUB2 to boot Windows from USB.

  • Enable the boot flag on the target partition of the USB drive. It can be easily done with the use of the tool called «GParted». It is a GUI tool for drive partitioning.
  • If the installation image is an ISO file, mount it and access the files.
  • Copy all the files to root of USB drive.
  • Install GRUB to USB drive:

    sudo grub-install --boot-directory="/media/user/MyUSBDrive/boot" /dev/sdX
    
  • Configure GRUB to boot Windows by placing the following file as «/boot/grub/grub.cfg» in the USB drive:

    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    menuentry 'Install Windows 8' {
     ntldr /bootmgr
    }
    

See complete answer at my blog
Creating a bootable windows USB from Linux

Community's user avatar

answered Apr 11, 2015 at 12:33

harish2704's user avatar

harish2704harish2704

4515 silver badges8 bronze badges

6

A simple ‘Do it yourself’ method

A rather simple ‘Do it yourself’ method is described at the following links. You can create Windows install drives that work in UEFI mode as well as in BIOS mode,

  • help.ubuntu.com/community/Installation/iso2usb

  • help.ubuntu.com/community/Installation/iso2usb/diy

  • help.ubuntu.com/community/Installation/iso2usb/diy/windows-installer-for-big-files

    This method will work also with [new] versions of Windows 10, where there is a file, install.wim, with a size > 4 GiB, so that the FAT32 file system cannot manage it, when extracted from the iso file. In this case there will be a small FAT32 partition and a bigger NTFS partition. It is tested with an early version of Windows 11, and works there too.


This ‘Do it yourself’ method is for you

  • if you have a Windows iso file that contains a file, install.wim, with a size > 4 GiB, or
  • if you don’t like PPAs, or
  • if you want to ‘Do it yourself’ and understand the details

mkusb version 12.5.6 and newer versions

This ‘Do it yourself’ method is implemented in mkusb-tow and available via mkusb version 12.5.6 (mkusb-dus) and mkusb-plug.

You get/update this new version of mkusb from the mkusb PPA via the following commands

sudo add-apt-repository universe  # this line only for standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install mkusb mkusb-plug

sudo apt-get install usb-pack-efi  # only for persistent live drives
  • mkusb 12.5.6 — brief description
  • mkusb — general description and manual
  • mkusb-plug — description and manual

mkusb-nox and mkusb version 12 (old method for 32-bit systems)

This ‘mkusb’ method is for you

  • if you run a 32-bit operating system, and other methods have problems that extracted files are truncated
  • if you want to create a boot drive for Windows 7 or 8
  • if you want to create a boot drive for [older] Windows 10 versions, where no file in the iso file exceeds 4 GiB.

It was difficult to find a linux tool that can create boot drives (USB sticks, memory cards …) with Windows, so I added this feature to mkusb-nox and later on created mkusb version 12 with this feature. It works in all current versions of Ubuntu (and Ubuntu flavours: Kubuntu, Lubuntu … Xubuntu) and with Debian 8-10. The created boot drive can boot 64-bit Windows in both UEFI and BIOS mode.

  • help.ubuntu.com/community/mkusb#Windows_USB_install_drive

dus with guidus alias mkusb version 12:
enter image description here
enter image description here

answered Oct 15, 2016 at 8:35

sudodus's user avatar

sudodussudodus

43.6k5 gold badges80 silver badges143 bronze badges

8

  1. Install VirtualBox and the VirtualBox Extension Pack found there.

  2. Download the Windows image you want to install.

  3. Create a Windows virtual machine, and set it up using the Windows ISO file you downloaded.

  4. Plug in your USB drive, and expose it to the VM using the latter’s Devices/USB menu.

  5. Run Microsoft’s Media Creation Tool in the VM (you will only be directed to the right page if you access it from Windows). Use this tool to create a bootable Windows USB.

The advantage of this method is that it depends only on Microsoft’s tool, which does the configuration for you. The latest Windows images contain a file above FAT32’s size limit, which makes it a pain to create a bootable USB drive by hand. My WoeUSB-created drive wasn’t recognized by my Dell XPS’s UEFI.

answered Aug 2, 2020 at 11:33

Hey's user avatar

HeyHey

2142 silver badges12 bronze badges

3

You can use WinUSB for that to install WinUSB on your Ubuntu follow these instruction.

Okey, if you are from Ubuntu 13.10,13.04,12.10,12.04, then run this in terminal:

sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update
sudo apt-get install winusb

and if you are from Ubuntu 14.04 then run this in terminal:

sudo add-apt-repository ppa:colingille/freshlight
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/colingille-freshlight-trusty.list"
sudo apt-get update
sudo apt-get install winusb

WinUSB comes with a simple GUI with minimal options to go with, here is how to use WinUSB to make bootable Windows USB from Ubuntu. You can use any Windows ISO may be for XP, Windows 7, Windows 8, Windows 8.1 or any other.

  1. Insert Flash Drive & Get your Windows ISO (I used Windows 10 Technical Preview) or insert the Windows CD/DVD
  2. Start WinUSB and, nothing else really needs to be explained.
  3. Select your Source, either ISO or CD Drive
  4. Pick your Target (USB) Device. If it doesn’t appear, hit refresh and make sure it’s mounted.
  5. Click on “Install” and enter your Password (required to mount devices and write directly to drives)

This is all you need to do to create a bootable Windows USB Stick

Source : How to install and use WinUSB in Ubuntu

answered Oct 18, 2014 at 10:40

Luzan Baral's user avatar

Luzan BaralLuzan Baral

9339 silver badges16 bronze badges

1

For any one getting file limit exception using woeUsb , use terminal command

sudo woeusb --device /home/uName/Downloads/Win10_1809Oct_English_x64.iso /dev/sdb --target-filesystem NTFS

Instead of /home/uName/Downloads/Win10_1809Oct_English_x64.iso use your path to iso file and

Instead of /dev/sdb use your path do the flash drive .

answered Jan 15, 2019 at 4:11

Manohar's user avatar

ManoharManohar

2133 silver badges11 bronze badges

1

Windows2usb

Windows2usb is a perfect solution for creating a bootable USB flash drive of Windows 7/8/8.1/10 ISO in Ubuntu. This tool supports BIOS and UEFI (with Rufus driver), FAT32 and NTFS.

Simply download the AppImage and make it executable using your file manager or by entering the following command in a terminal:

chmod +x ./*.AppImage

Then follow the following instruction below as your requirements.

BIOS Boot

BIOS Boot (Legacy Boot/UEFI-CSM) uses stock Windows 7 MBR and NTFS bootloader, courtesy of ms-sys project.

Use this mode if you have old computer without UEFI support or want maximum compatibility of installation media.

To burn ISO in this mode, run:

windows2usb <device> <windows iso> mbr

UEFI Boot

UEFI Boot (gpt mode) creates FAT32 partition with stock Windows UEFI bootloader.

This mode will not work on old computers. Use this mode for new computers with UEFI support.

This mode supports UEFI Secure Boot.

To burn ISO in this mode, run:

windows2usb <device> <windows iso> gpt

UEFI Boot with NTFS Partition

UEFI Boot with NTFS partition uses uefi-ntfs bootloader from Rufus project.

This mode is made for custom installation disks with install.wim file greater than 4 GiB, which could be found on various torrent trackers. Windows2usb creates 2 partitions in this mode, small 1 MiB FAT32 partition with uefi-ntfs and huge NTFS partition with ISO data.

This mode does not support Secure Boot (uefi-ntfs bootloader is not signed by Microsoft or other trusted party).

To burn ISO in this mode, run:

windows2usb <device> <windows iso> gptntfs

If your ISO contains install.wim greater than 4 GiB, gpt mode will automatically detect that and terminate the writing process.

karel's user avatar

karel

106k93 gold badges263 silver badges290 bronze badges

answered Aug 14, 2020 at 12:15

Jihan's user avatar

JihanJihan

7512 bronze badges

For the sake of completeness, let me add instructions on how to create a bootable USB-disk from ThinkPad’s UEFI/BIOS update ISOs. None of the above answers worked for me. (Perhaps there are similar problems with other vendors.)

  1. Create an img file with geteltorito

    sudo apt install genisoimage
    geteltorito <image>.iso -o <image>.img
    
  2. Write the img file to disk. Using this exact block size is important.

    sudo dd if=<image>.img of=/dev/sdX bs=512K && sync
    

answered Oct 27, 2017 at 14:12

Nico Schlömer's user avatar

Nico SchlömerNico Schlömer

1,8323 gold badges16 silver badges24 bronze badges

Creating a Windows Bootable USB Stick using Ubuntu

Windows can be installed to boot in BIOS, (Legacy), mode or in UEFI mode. I will describe each method.

BIOS, (Legacy), mode, MSDOS Partition Table

  • Boot Ubuntu in Legacy mode.

  • Using GParted, create a 8GB NTFS partition for the installer and a 50GB or larger partition for Windows.

  • Mount the Windows ISO using sudo mount -t udf /{Path to ISO}/Win.iso /media/iso, Copy the contents of /media/iso/ to the 8GB partition.

  • In Terminal run sudo update-grub to add the Windows installer to Ubuntu’s GRUB menu.

  • Edit the grub.cfg Windows menuentry, to add ntldr /bootmgr on the line after chainloader +1

  • Reboot and select Windows Recovery Environment from the Boot menu.

  • Proceed with Windows 10 installation as normal.

UEFI mode, GPT Partition Table

  • Boot Ubuntu in UEFI mode.

  • Using GParted, create a 8GB NTFS partition for the installer and a 50GB or larger NTFS partition for Windows.

  • Mount the Windows ISO using sudo mount -t udf /{Path to ISO}/Win.iso /media/iso, Copy the contents of /media/iso/ to the 8GB partition.

  • It should not be necessary to Update GRUB to boot in UEFI mode. (Please let me know if you find otherwise).

  • Reboot, The Windows installer should start. At this point you can close the installer to open the GRUB menu.

UEFI Notes:

UEFI properties may vary among vendors.

It may be necessary to add Windows Recovery Environment menuentry by hand.

Some instructions for installing Windows recommend the ISO be extracted to a FAT32 partition. If there are problems using the ISO extracted to NTFS see: https://www.dedoimedo.com/computers/windows-10-usb-media-linux.html, (thanks to oldfred).

I was not able to install as UEFI mode from Legacy Ubuntu on GPT disk.

answered May 13, 2021 at 9:56

C.S.Cameron's user avatar

C.S.CameronC.S.Cameron

18.1k10 gold badges56 silver badges99 bronze badges

20.04 ONLY, working as of 2/11/2021

Woeusb GUI will no longer install from the webupd8 PPA on 20.04 due to a dependency error

The following packages have unmet dependencies:
 woeusb : Depends: libwxgtk3.0-0v5 (>= 3.0.4+dfsg) but it is not installable
E: Unable to correct problems, you have held broken packages.

To get it to work, download the dependency and install it libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb

wget https://mirrors.kernel.org/ubuntu/pool/universe/w/wxwidgets3.0/libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb
sudo dpkg -i libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb

Then install via the PPA

sudo add-apt-repository ppa:nilarimogard/webupd8 && sudo apt update
sudo apt install woeusb

answered Nov 2, 2021 at 9:50

Mark Kirby's user avatar

Mark KirbyMark Kirby

18k19 gold badges76 silver badges112 bronze badges

The easiest way that I know is using Ventoy.
You can get Ventoy in this web site https://www.ventoy.net/en/download.html
You just need to install Ventoy to the USB stick and Ventoy allows you to drag and drop the image files that you want to add to the USB stick and it creates a grub like menu that allows you to choose the system you want to boot from your USB stick. It can be done with many different operating systems, including Windows and Linux distributions.
In addition to being easy, Ventoy is very practical. You can find the instructions on how to use it on the website.

answered Jun 26, 2022 at 17:43

Jorge Eduardo's user avatar

Jorge EduardoJorge Eduardo

1982 gold badges3 silver badges14 bronze badges

Загрузочная флешка Windows 10 в LinuxЕсли вам по той или иной причине потребовалась загрузочная флешка Windows 10 (или другой версии ОС), при этом на имеющемся компьютере в наличии только Linux (Ubuntu, Mint, другие дистрибутивы), вы сравнительно легко можете записать её.

В этой инструкции пошагово о двух способах создать загрузочную флешку Windows 10 из Linux, которые подойдут как для установки на UEFI-системе, так и для того, чтобы установить ОС в Legacy режиме. Также могут пригодиться материалы: Лучшие программы для создания загрузочной флешки, Загрузочная флешка Windows 10.

Загрузочная флешка Windows 10 с помощью WoeUSB

Первый способ создания загрузочной флешки Windows 10 в Linux — использование бесплатной программы WoeUSB. Созданный с её помощью накопитель работает и в UEFI и в Legacy режиме.

Для установки программы используйте следующие команды в терминале

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install woeusb

Если эти команды не сработали, попробуйте такой вариант:

wget mirrors.kernel.org/ubuntu/pool/universe/w/wxwidgets3.0/libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb
sudo dpkg -i libwxgtk*_amd64.deb
sudo apt update
sudo apt --fix-broken install
sudo apt install woeusb

После установки порядок действий будет следующим:

  1. Запустите программу.
  2. Выберите ISO образ диска в разделе «From a disk image» (также, при желании, можно сделать загрузочную флешку с оптического диска или смонтированного образа).
  3. В разделе «Target device» укажите флешку, на которую будет записан образ (данные с неё будут удалены). Загрузочная флешка Windows 10 в WoeUSB
  4. Нажмите кнопку Install и дождитесь завершения записи загрузочной флешки. Загрузочная флешка Windows создана в Linux
  5. При появлении ошибки с кодом 256 «Source media is currently mounted», размонтируйте образ ISO с Windows 10. Ошибка Source Media Mounted в WoeUSB
  6. При ошибке «Target device is currently busy», размонтируйте и отключите флешку, затем снова подключите её, обычно помогает. Если не сработало, попробуйте предварительно отформатировать её. Ошибка Target Device Busy в WoeUSB

На этом процесс записи завершен, можно использовать созданный USB накопитель для установки системы.

Создание загрузочной флешки Windows 10 в Linux без программ

Этот способ, пожалуй, ещё проще, но подойдет только в том случае, если вы планируете загружаться с созданного накопителя на UEFI-системе и устанавливать Windows 10 на GPT диск.

  1. Отформатируйте флешку в FAT32, например, в приложении «Диски» в Ubuntu. Форматировать флешку в FAT32 в Linux
  2. Смонтируйте образ ISO с Windows 10 и просто скопируйте всё его содержимое на отформатированную флешку. Копирование файлов установки Windows на флешку в Linux

Загрузочная флешка Windows 10 для UEFI готова и с неё можно без проблем загрузиться в EFI-режиме.

Windows 10 October 2018 release UEFI bootable USB drive on any Linux distribution.

Notice, that since Windows 10 October 2018 release the installation file sources/install.wim is larger than the maximum FAT32 file size, so we will format USB drive to NTFS. Windows installer also cannot work with an EFI partition (code ef00), so we will use Microsoft basic data partition type (code 0700).

Variant A (For PCs with NTFS support)

Steps for creating USB drive with name /dev/sdc (Replace all commands with YOUR device name!):

  1. Insert USB drive to computer and make sure it is unmounted. Some distributions like to automount USB drives, so make sure you unmount them. Mounted partitions can be found with mount -l | grep '/dev/sdc', then unmount with sudo umount /dev/sdcX (where X is partition number).
  2. Open USB block device using gdisk /dev/sdc, configure it as GPT and create Microsoft basic data partition (code 0700), then write changes and quit (Next steps will destroy partition table in your USB drive!!!).
sudo gdisk /dev/sdc
o
> This option deletes all partitions and creates a new protective MBR.
> Proceed? (Y/N): y
n
> Partition number ... > hit Enter
> First sector ... : > hit Enter
> Last sector ... : > hit Enter
> Current type is 'Linux filesystem'
> Hex code or GUID (L to show codes, Enter = 8300): 0700
p
> Should print something like:
> Disk /dev/sdc: 15646720 sectors, 7.5 GiB
> Model: DataTraveler 160
> Sector size (logical/physical): 512/512 bytes
> Disk identifier (GUID): ...
> Partition table holds up to 128 entries
> Main partition table begins at sector 2 and ends at sector 33
> First usable sector is 34, last usable sector is 15646686
> Partitions will be aligned on 2048-sector boundaries
> Total free space is 2014 sectors (1007.0 KiB)
> Number  Start (sector)    End (sector)  Size       Code  Name
>    1            2048        15646686   7.5 GiB     0700  Microsoft basic data
w
> Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
> Do you want to proceed? (Y/N): y
q
  1. Format new partition as NTFS (thx @Alex for -Q idea):
sudo mkfs.ntfs -Q /dev/sdc1
  1. Mount new USB partition to temporary directory in your home:
mkdir ~/tmp-win10-usb-drive
sudo mount /dev/sdc1 ~/tmp-win10-usb-drive
  1. Download Windows installation ISO, create new temporary directory in your home and mount it there:
mkdir ~/tmp-win10-iso-mnt
sudo mount Win10_1809Oct_English_x64.iso ~/tmp-win10-iso-mnt
  1. Copy all files from mounted ISO to USB drive (you can use rsync to see progress):
sudo cp -rT ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-drive/
  1. Unmount Windows ISO and USB drive and remove temporary directories:
sudo umount ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-drive/
rmdir ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-drive/
  1. Insert USB drive to new computer and boot from it.

Variant B (For PCs without NTFS support)

Steps for creating USB drive with name /dev/sdc (Replace all commands with YOUR device name!):

  1. Insert USB drive to computer and make sure it is unmounted. Some distributions like to automount USB drives, so make sure you unmount them. Mounted partitions can be found with mount -l | grep '/dev/sdc', then unmount with sudo umount /dev/sdcX (where X is partition number).
  2. Open USB block device using gdisk /dev/sdc
  3. Configure it as GPT
  4. Create first partition of 1GB size and type Microsoft basic data (code 0700).
  5. Create second partition of rest of the size and type Microsoft basic data (code 0700).
  6. Write changes and quit (Next steps will destroy partition table in your USB drive!!!).
sudo gdisk /dev/sdc
> o
> This option deletes all partitions and creates a new protective MBR.
> Proceed? (Y/N): y
> n
> Partition Number: Enter
> First sector: Enter
> Last sector: 1G
> Type: 0700
> n
> Partition Number: Enter
> First sector: Enter
> Last sector: Enter
> Type: 0700
> p
# Should print something like:
> Disk /dev/sdc: 30031250 sectors, 14.3 GiB
> Model: Ultra USB 3.0   
> Sector size (logical/physical): 512/512 bytes
> Disk identifier (GUID): C657C0AF-3FE2-4152-8BF1-CE3CCA9F3541
> Partition table holds up to 128 entries
> Main partition table begins at sector 2 and ends at sector 33
> First usable sector is 34, last usable sector is 30031216
> Partitions will be aligned on 2048-sector boundaries
> Total free space is 4061 sectors (2.0 MiB)

> Number  Start (sector)    End (sector)  Size       Code  Name
>    1            2048         2048000   999.0 MiB   0700  Microsoft basic data
>    2         2050048        30031216   13.3 GiB    0700  Microsoft basic data

w
> Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!!
> Do you want to proceed? (Y/N): y
q
  1. Format first partition as FAT32 and second as NTFS:
sudo mkfs.fat -F32 /dev/sdc1
sudo mkfs.ntfs -Q  /dev/sdc2
  1. Mount new USB partitions to temporary directories in your home:
mkdir ~/tmp-win10-fat-usb-drive
mkdir ~/tmp-win10-ntfs-usb-drive
sudo mount /dev/sdc1 ~/tmp-win10-fat-usb-drive
sudo mount /dev/sdc2 ~/tmp-win10-ntfs-usb-drive
  1. Download Windows installation ISO, create new temporary directory in your home and mount it there:
mkdir ~/tmp-win10-iso-mnt
sudo mount Win10_1809Oct_English_x64.iso ~/tmp-win10-iso-mnt
  1. Copy following files with from mounted ISO to FAT32 formatted USB drive (basically copy everything besides sources/ but include sources/boot.wim):
sudo cp ~/tmp-win10-iso-mnt/* ~/tmp-win10-fat-usb-drive/
sudo cp -r ~/tmp-win10-iso-mnt/boot ~/tmp-win10-fat-usb-drive/
sudo cp -r ~/tmp-win10-iso-mnt/efi ~/tmp-win10-fat-usb-drive/
sudo cp -r ~/tmp-win10-iso-mnt/support ~/tmp-win10-fat-usb-drive/
sudo mkdir ~/tmp-win10-iso-mnt/sources ~/tmp-win10-fat-usb-drive/
sudo cp ~/tmp-win10-iso-mnt/sources/boot.wim ~/tmp-win10-fat-usb-drive/sources
  1. Copy everything from mounted ISO to NTFS formatted USB drive:
sudo cp -rT ~/tmp-win10-iso-mnt/ ~/tmp-win10-ntfs-usb-drive/
  1. Unmount Windows ISO and both USB partitions and remove temporary directories:
sudo umount ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-fat-drive/ ~/tmp-win10-usb-ntfs-drive/
rmdir ~/tmp-win10-iso-mnt/ ~/tmp-win10-usb-drive/
  1. Insert USB drive to new computer and boot from it.

Понравилась статья? Поделить с друзьями:
  • Ubuntu windows network folder is empty
  • Ubuntu windows 10 где лежат файлы
  • Ubuntu vs windows 10 производительность в играх
  • Ubuntu usb boot flash from windows
  • Ubuntu transformation pack for windows 7