Бывают случаи, когда вам нужно записать 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 ShareAlike 4.0 при копировании материала ссылка на источник обязательна .
Об авторе
Здравствуйте, я изучаю Linux и обладаю хорошими знаниями английского.
Содержание
- Создаём загрузочный USB диск с Windows из под Linux
- Подготовка USB диска
- Копирование файлов Windows на USB диск
- Делаем USB-диск загрузочным
- Если создаем MBR загрузочный диск
- Если создаем UEFI загрузочный диск
- How to Easily Create Windows 10 Bootable USB on Ubuntu or Any Linux Distro
- What you need
- Download Windows 10 ISO
- Creating a Windows 10 Bootable USB for UEFI Firmware
- Boot Windows 10 ISO Installer without USB (BIOS & UEFI)
- Creating a Windows 10 Bootable USB for Legacy BIOS Using WoeUSB
- How to Use WoeUSB From the Command Line
Создаём загрузочный USB диск с Windows из под Linux
В ubuntu уже есть приложение для создания образов дисков — Startup Disk Creator, но оно умеет создавать только загрузочные USB с Linux. Для создания загрузочного USB-диска с Windows из Linux, существует WinUSB, но она довольно давно не обновлялась, и честно говоря, у меня не заработала. Данный пост довольно подробный, и рассчитан преимущественно на людей, плохо знакомых с Linux.
Перед тем как я продолжу, следует указать что в Windows мире два метода загрузки:
- MBR, при котором в начале диска резервируется место, и располагается специальный загрузочный файл;
- EFI, при котором исполняемый файл загрузчика хранится в стандартном расположении на FAT32 файловой системе;
Если вы не знаете какой выбрать, то наиболее часто используемый вариант который работает без модификации файлов Windows — это msdos таблица разделов с fat32 файловой системой и загрузочным флагом.
Прежде всего USB-диск необходимо подготовить. В Linux наиболее простой и удобной для этих целей утилитой является gparted.
Ставим его если не установлен:
Подготовка USB диска
Выбираем нашу USB флэшку, отмонтируем её если она смонтирована:
Отмонтирование USB диска в gparted
Теперь необходимо пересоздать таблицу разделов, при этом выбрать тип msdos . Заходим в меню Устройство (Device) и выбираем Создать таблицу разделов (Create partition table) :
Gparted создание таблицы разделов
После этого выбираем неразмеченную область, нажимаем правой кнопкой мыши по ней же и выбираем пункт меню «Новый». В появившемся окне выбираем файловую систему NTFS или FAT32. Если у вас какая-то нестандартная сборка в которой могут быть файлы больше 4 гигабайт, то файловая система должна быть определенно NTFS, в противном случае, можно выбрать FAT32, и, тогда, так же можно будет загрузиться с UEFI. Так же необходимо указать метку для USB-диска. Важно: метка должна быть не просто «Windows», а какой либо более уникальной. Если файловая система FAT32, то метка должна быть указана заглавными буквами.
Создание нового раздела Gparted
Применяем все наши изменения:
Применение изменений в Gparted
Выходим из gparted.
Копирование файлов Windows на USB диск
Теперь необходимо смонтировать образ с Windows и скопировать данные с него на наш подготовленный ранее usb диск. В большинстве современных рабочих окружений это можно сделать из файлового менеджера. По необходимому образу нажимаем правой кнопкой мыши, выбираем Открыть с помощью и выбираем Disk Image Mounter :
Монтирование образа с Windows в файлом менеджере Thunar
Если у вас нет такой утилиты, то можно смонтировать из командной строки:
Где $HOME/Загрузки/Windows.iso необходимо заменить на путь до образа с Windows. Образ будет смонтирован в директорию /mnt/cdrom .
Делаем USB-диск загрузочным
Если создаем MBR загрузочный диск
Для создания MBR загрузочной записи будем использовать grub:
- $user — имя текущего пользователя;
- $drive — название образа;
- /dev/sdX — расположение диска (в моем случае /dev/sdb ;
Если образ монтировали руками, то /media/$user/$drive/boot необходимо заменить на /mnt/cdrom/boot .
В случае, если не было никаких ошибок, то в консоли должны увидеть примерно следующее:
Теперь на USB-диске в директории boot/grub необходимо создать файл grub.cfg с таким содержимым:
В листинге выше, $USB_drive_label необходимо заменить на метку, которую мы присвоили диску на первом шаге. В данном случае WINUSB2503 .
Перезагружаемся, загружаемся с USB-диска и выбираем Start Windows Installation .
Если создаем UEFI загрузочный диск
С UEFI все несколько проще. Следует обратить внимание, что данный способ подходит только для Windows 7 x64 и выше.
После того, как все файлы скопировались, необходимо зайти в директорию efi/boot . Если в ней присутствуют файлы bootx64.efi или bootia32.efi то всё в порядке, можно пробовать загрузиться с диска.
Источник
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
- 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.
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.
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.
Источник
We have previously looked at how you can create a bootable USB drive of various Linux distributions from a Windows PC. Some of these posts include Creating a Linux Mint Live USB drive on Windows and create a bootable Ubuntu Live USB drive on Windows using tools like Rufus and PowerISO. This post will do the reverse – How to create Windows 10 USB installation Drive in Linux.
You Might Be Interested In
Requirements
- Windows 10 ISO file
- A USB drive (at least 8GB)
- Root privileges
- An active internet connection to download some of the tools
Creating Windows 10 USB installation Drive in Linux
To get started, download the Windows 10 ISO file from their official website. Earlier versions were around 4GB in size, but I saw the latest version is nearly 5.7GB. That’s why I recommend you have a USB drive with at least 8GB of space. However, if you are using an earlier Windows ISO version (maybe Windows 10 2015), which is about 3.6GB, a 4GB-USB Drive would be okay.
Download Windows 10
Format the USB Drive
Even though we will look at various methods you can use to make the USB drive bootable, always ensure your USB is formatted with the right file format. We will use the disk utility that comes pre-installed with most Linux distribution and Gparted. Note: GParted is not pre-installed in most Linux distribution, but it’s one of the best tools to manage and partitions your disks. Our post on How to safely create or resize partitions in Linux using GParted can give you a little more insight into this fantastic tool.
Format USB with Disks Utility
Step 1. Insert/Plug your USB drive and launch the Disks utility from the applications menu.
Launch Disks
Step 2. The Disk Utility window will open, listing all the available Hard drives and USB drives connected to your PC. Select your USB drive. From the image below, you can see I have my 8GB USB drive selected.
Disk Utility
Step 3. With your USB selected, click on the Settings button (represented with a gear icon). A menu will pop-up with several options. Select the first option, which is ‘Format.’
Open Settings
Step 4. A window will pop-up listing several options. Enter the Volume Name (can be any) and select the file format you want to use.
Note: If your Windows ISO file is less than 4GB, you can select the FAT option. However, if it’s bigger than that, use the NTFS option as I have done on the image below. That is because the FAT file system only supports a maximum file size of 4GB; for any file more extensive than 4GB, use exFAT or NTFS. Click Next when done.
Format USB
Step 5. You will see a warning – “all data on the volume will be lost.” You can also see the configurations below. Click on Format to finalize the process.
Confirm and Format USB
Once the format process complete, you can now create a bootable USB drive of Windows.
Format USB with GParted
Gparted is a free Disk manager utility available for most Linux distributions. It creates, resize, and move partitions, format and also create partition tables.
To install Gparted, execute any of the commands below depending on your distribution.
-
Ubuntu/Debian
sudo apt install gparted
-
Fedora
su -c "yum install gparted"
-
Mageia
sudo urpmi gparted
-
OpenSUSE
sudo zypper install gparted
Once you have successfully installed GParted, proceed to launch it from the applications menu or execute the command GParted on the Terminal. Note: GParted requires root privileges. You will, therefore, be required to enter your Root password.
Launch GParted
Select your USB drive from the drop-down menu at the top-left corner.
Select USB drive
Right-click on your USB drive and select the Format option. Use the NTFS file system. If you don’t see these options (or they are greyed out), you might need to unmount your USB drive first. You will see the unmount option when you right-click on the USB.
Once done, click on the Green tick at the top to apply the changes.
Apply Changes
Let’s now look at the various methods you can use to create a bootable USB drive of Windows on Linux.
1. Create a bootable Windows USB with Disk Image Mounter
Step 1. Launch the File Manager and navigate to the directory containing your Windows ISO file. Right-click on it and select the option “Open with Disk Image Mounter.”
Disk Image Mounter
Step 2. The Windows ISO file will be mounted as a drive, and you can find it on the left side of the file manager. For some, you might need to click on “Other Locations” to see the mounted Windows ISO.
Mount Windows ISO
Step 3. Click on the mounted Windows ISO and copy all the contents to the USB drive. You can use the shortcuts Ctrl + A to select everything, Ctrl + C to copy, and Ctrl + V to paste the files to the USB drive.
Copy Files to USB
Now, wait for the process to complete. Once done, you can proceed to eject your PC from the file manager. Do this by right-clicking on the drive and clicking the eject option. You might get an error like “Do not unplug the drive until the write process has finished.” Please wait for a while until you see the notification, “can be safely removed.”
Eject USB Drive
Note: From my experience working with Linux systems, never remove/unplug your USB drive from your PC without ejecting it from the file manager first. That’s especially when copying files. Even though it might show a “tick,” which means the copying process is complete, that might not be the case, and you will lose data if you forcefully unplug it without ejecting it.
If you did everything correctly, you now have a bootable USB drive of Windows 10. You can proceed to use it to boot up your PC and install Windows 10.
2. Create a bootable Windows USB with WoeUSB
WoeUSB is a Linux tool used to create a bootable USB drive for Windows. The tool is available in two formats. The woeusb program runs on the command-line and the woeusbgui, which presents a graphical interface. WoeUSb is free, and the source code is available on GitHub.
Install WoeUSb
Below are the installation procedure and commands for various Linux distributions.
-
Ubuntu/Debian
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt update sudo apt install woeusb
Alternatively, you can download the DEB file from the link below;
Download WoeUSB DEB
Note: If you get an error like “woeusb : Depends: libwxgtk3.0-0v5 (>= 3.0.4+dfsg), but it is not installable – E: Unable to correct problems, you have held broken packages” while executing the commands above, download and install the libwxgtk package from this link. Once done, try installing WoeUSB again.
Broken package error
-
Fedora
To install WoeUSb on Fedora, we will use the Snap package format. Execute the commands below:
sudo dnf install snapd sudo ln -s /var/lib/snapd/snap /snap sudo snap install woe-usb --edge
-
Linux Mint
use the commands below:
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt update sudo apt install woeusb
-
Elementary OS
Like Fedora, use the snap package manager to install WoeUSb on Elementary OS:
sudo apt update sudo apt install snapd sudo snap install woe-usb --edge
If you are using any other Linux distribution that is not mentioned above, use Snap to install WoeUSb. Now, let’s proceed and see how you can create a bootable USB drive of Windows in Linux systems.
Step 1. Format the USB drive. Use any of the methods described above.
Step 2. Once you have successfully installed WoeUSB, launch it from the applications menu.
Launch WoeUSB
The main WoeUSB window will open. It contains three main sections. The Source section is where you will select the Windows ISO file you want to use. In the File system section, select the file system format you want to use – whether FAT or NTFS. The final section is the Target device. Here, you will need to select the destination USB drive that you want to make bootable.
WoeUSB main window
Step 3. After you have selected the ISO file, chosen the file system format to use, and the destination USB drive, click on the Install button at the bottom right. WoeUSB will start copying the files to the destination USB drive.
WoeUSB
Note: It might take some time to make the USB drive bootable (up to 15 minutes). You might see the “Done” notification but don’t eject the USB drive until you see an “Installation Success” pop-up window.
Installation Success
Step 4. Click OK and close the WoeUSb window. You can now eject the USB drive from the file manager and use it to boot and install Windows.
3. Create a bootable Windows USB with UNebootin
UNetbootin is a cross-platform utility used to create a bootable USB drive. Unlike WoeUSb, which supports only Windows ISO files, UNetbootin can also create bootable USB drives of Linux files. One additional exciting feature with the UNetbootin is it is available as a bin file. Therefore, you are only required to make it executable and run it. You don’t need to install it.
Step 1. Download UNetbootin bin file.
To download the 64bit file of UNetbootin, execute the command below.
wget https://github.com/unetbootin/unetbootin/releases/download/675/unetbootin-linux64-675.bin
To download the 32bit file of UNetbootin, execute the command below:
wget https://github.com/unetbootin/unetbootin/releases/download/675/unetbootin-linux-675.bin
In my case, I will download the 64bit file.
UNetbootin 64bit
Step 2. Make the UNetbootin bin file executable with the command below
chmod +x unetbootin-linux64-675.bin
Make the file executable
Step 3. Once done, you can proceed to run the bin file. Execute the command below to run UNetbootin as root.
sudo QT_X11_NO_MITSHM=1 /home/tuts/Downloads/Programs/unetbootin-linux64-675.bin
Please note, you might need to change the path to point to the directory containing the Windows ISO file.
Launch UNetbootin
The UNetbootin main window will open.
UNetbootin Main Window
Step 4. There are two main sections – Distribution and Diskimage. Select the Diskimage area and choose the path of the Windows ISO file. Just below that, select Disk Type and the USB drive. Once done, Click OK.
UNetbootin
Step 5. UNetbootin will start making the USB drive bootable. You can follow what’s happening on the UNetbootin window. You can track the overall progress at the bottom of the window in the progress bar.
UNetbootin Booting process
Step 6. Once done, you will see the Complete Installation message. Click on the Exit button that appears.
UNetbootin Finish window
You can now eject the USB from the file manager and use it to boot and install Windows.
Conclusion
That’s our complete guide on how you can create a bootable USB drive of Windows on Linux systems. Out of the three methods discussed above, I would highly recommend the Disk Image Mounter method. Do you have another way that you use to create a bootable USB drive of Windows on Linux? Please, share with our readers in the comments below. If you come across any errors executing the commands above, feel free to hit the comments.
If you are new with the whole procedure of booting your PC from a USB drive, please check out our post on How to boot your Windows or Linux PC from a USB Drive. It will give you a detailed guide on the entire process.
You Might Be Interested In
Если вы хотите записать установочник Windows на отдельный носитель, а ваш компьютер при этом работает на Linux, никаких проблем не будет – несмотря на конкуренцию между двумя операционными системами, это совсем несложная задача. Есть несколько способов записи: используя функционал «Линукс» и посредством сторонних приложений. Разберем четыре самых простых варианта с последовательными инструкциями.
Терминал и Gparted
Для создания загрузочной флешки с образом Windows 10, нам понадобится «Командная строка» в Linux – так называемый терминал, либо же «Редактор разделов» — Gparted. Начнем с первого.
- Подключите флешку, которая будет носителем дистрибутива.
- Чтобы добраться до терминала, нажмите Ctrl+Alt+T или откройте меню, найдите в нем «Настройки»- «Устройства» — «Клавиатура» и задайте собственное сочетание клавиш для вызова «Командной строки», а затем нажмите его.
- Также можно нажать Alt+F2, и перед вами появится окно «Выполнить» — точь-в-точь, как в Windows. В него нужно вписать либо: «$ gnome-terminal» (через пробел между значком $ и командой, но без кавычек), либо: «$ konsole».
- В первом случае вы увидите классический вариант «Командной строки» без какой-либо графики, а во втором – небольшое, приятное глазу окошко, расположенное прямо поверх экранной заставки. Можете выбирать, что вам нравится больше – это не имеет значения, все будет работать одинаково.
- Далее нужно узнать наименование вашей флешки. Для достоверности впишите в «Командную строку»: «fdisk –l» (без кавычек), нажмите «Enter» и сохраните полученный результат – сейчас он нам пригодится.
- Теперь впишите команду: «$ sudo mkfs.ntfs /dev/имя_вашего_накопителя» и нажмите «Enter» — носитель отформатируется и будет готов к дальнейшей работе.
- Впишите в командную строку: «# dd if=windows.iso of=/dev/sdx» (без кавычек, x в конце команды буква вашей флешки). Таким образом, система «понимает», что от нее ожидают записи загрузочного диска.
Теперь сделаем то же самое через «Редактор разделов» Gparted.
- Установите загрузочную флешку, с которой предполагается записывать образ через Linux для Windows.
- Снова вызовите «Командную строку» и попросите систему открыть Gparted – впишите: «$sudo apt install gparted ntfsprogs», нажмите «Enter» и дождитесь результата.
- Когда откроется окно «Редактора», справа вверху вы увидите небольшое изображение диска. Кликните его и выберите нужную флешку.
- Теперь накопитель с информацией о нем отображается ниже, в основном окне. Кликните по нему ПКМ и нажмите «Отмонтировать». После этого недоступные команды, отображавшиеся серым цветом, станут кликабельными.
- И снова клик ПКМ по названию флешки – на этот раз выбираем «Форматировать в…». Появится много разноцветных квадратиков с надписями – нас интересует ярко-голубой с надписью: «ntfs».
- Соглашаемся с проведением форматирования.
- Опять правый клик по названию флешки и выбор опции Manage flags с меткой напротив boot. Примените изменения.
- Возвращаемся к «Командной строке» и по порядку вписываем: «$ sudo mkdir /media/iso» и «$ sudo mount windowsiso /media/iso -t udf -o loop», чтобы отыскать файлы образа.
- Обязательно проверьте точку монтирования через команду: «ls /run/media» и запомните результат.
- Все, запускаем процесс записи командой: cp -R /media/iso/точка_монтирования_флешки.
Как видите, можно справиться своими силами с ОС, но если это не для вас, читайте ниже о том, как всё автоматизировать.
Утилита WINUSB
Создать загрузочную флешку с Windows 10 на Linux можно также с помощью специальной программы – это намного быстрее, чем выполнение всех предыдущих шагов. Наверное, вы уже знаете, что программы в Linux можно устанавливать прямо из «Командной строки». Воспользуемся этой приятной опцией и зададим значения:
$ sudo add-apt-repository ppa:colingille/freshlight
$ sudo apt update
$ sudo apt install winusb
Можно также установить это приложение, просто воспользовавшись поиском в репозитории, вовсе без командной строки. Когда откроется окно программы, вы увидите два предложения:
- записать ОС из iso-образа;
- записать ОС с диска.
Выбирайте первое и подтверждайте начало процесса. Больше не потребуется никаких манипуляций – можно вынимать флешку и пользоваться.
Утилита Etcher
Предыдущая программа очень проста и хороша, но, к сожалению, совместима не со всеми разновидностями Linux и не всегда запускается, потому что разработчики не часто представляют публике актуальные обновления. Если это ваш случай, то попробуйте Etcher. Как и все приложения для Linux, оно распространяется бесплатно. С помощью «Этчер» можно записать образ Linux и Windows 7-10 буквально в несколько кликов. Только перед загрузкой обратите внимание, подходит ли ПО к вашей сборке. А теперь разберем, как сделать загрузочную флешку:
- Запустите программу и нажмите первую подсвеченную кнопочку: «Выбрать образ». Укажите нужный.
Etcher
- Далее подключите накопитель и начните запись – после выполнения первого шага, подсветится кнопочка второго – выбор флешки, на которую будет записываться образ Windows.
- По завершении работы вы увидите надпись, свидетельствующую о том, что флешка готова к использованию.
Создание загрузочной флешки Windows в Linux без программ
На основе всего вышенаписанного вы можете вообще обойтись без посредничества стороннего ПО и сформировать флешку с установочником в «Линукс» гораздо быстрее. Для этого:
- запаситесь образом оптического диска Windows (можно скачать его или списать с работающей системы);
- флешкой с достаточным количеством памяти.
Далее порядок действий такой:
- Флешку нужно предварительно настроить на формат ntfs или FAT32 (выше рассказано, как это сделать).
- Образ оптического диска надо превратить в установочные файлы. Чтобы сделать это, откройте его через архиватор и извлеките содержимое из хранилища.
- Все элементы просто перетаскиваются на флешку.
Надо отметить, что данный способ будет эффективен только для обновленного посредника между ОС и микропрограммами – UEFI с системой структурирования разделов GPT и разрядностью 64 бита. Для более ранней версии БСВВ такой метод не подойдет – вы просто не найдете нужных файлов. Чтобы воспользоваться флешкой, очень важно настроить UEFI таким образом, чтоб накопитель распознавался, как средство запуска ОС. Для этого перезагрузите ПК и нажмите сочетание клавиш, подходящее под вашу версию БСВВ (чаще F2 или Del, но могут быть и другие варианты), и вызовите посредника. Вы увидите окошко с изображениями жестких дисков, которые пронумерованы по порядку. Выберите вашу флешку (она должна быть заранее подключена) и перетащите её на первое место (к счастью, UEFI позволяет пользоваться мышкой и имеет более-менее понятный внешний вид). После повторной перезагрузки сразу запустится окно установки Windows.
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!):
- 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 withsudo umount /dev/sdcX
(whereX
is partition number). - Open USB block device using
gdisk /dev/sdc
, configure it asGPT
and createMicrosoft basic data
partition (code0700
), 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
- Format new partition as NTFS (thx @Alex for
-Q
idea):
sudo mkfs.ntfs -Q /dev/sdc1
- Mount new USB partition to temporary directory in your home:
mkdir ~/tmp-win10-usb-drive
sudo mount /dev/sdc1 ~/tmp-win10-usb-drive
- 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
- 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/
- 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/
- 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!):
- 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 withsudo umount /dev/sdcX
(whereX
is partition number). - Open USB block device using
gdisk /dev/sdc
- Configure it as
GPT
- Create first partition of 1GB size and type
Microsoft basic data
(code0700
). - Create second partition of rest of the size and type
Microsoft basic data
(code0700
). - 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
- Format first partition as FAT32 and second as NTFS:
sudo mkfs.fat -F32 /dev/sdc1
sudo mkfs.ntfs -Q /dev/sdc2
- 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
- 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
- Copy following files with from mounted ISO to FAT32 formatted USB drive (basically copy everything besides
sources/
but includesources/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
- Copy everything from mounted ISO to NTFS formatted USB drive:
sudo cp -rT ~/tmp-win10-iso-mnt/ ~/tmp-win10-ntfs-usb-drive/
- 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/
- Insert USB drive to new computer and boot from it.
If you boot with UEFI (not BIOS or UEFI with BIOS compatibility mode (a.k.a. CSM)) all you’ll need is GParted and a file manager.
The ISO must be configured for UEFI boot for this to work. I’ve successfully done this with both Windows 8.1 and Ubuntu 14.04, but I can’t vouch for any other OS. (Edit: I just tried this with Windows 10 without success. Don’t know why, but WinUSB worked so I didn’t investigate further.)
This is what I do to create a bootable USB drive for UEFI firmware:
- Create a GPT partition table on your USB drive. In GParted, chose «Device» and then «Create partition table…». Choose gpt in the dropdown.
- Format a partition on the USB drive to FAT32 using GParted. All UEFI compliant firmwares must support FAT12, FAT16 and FAT32, so any of these should be fine, but NTFS will not work.
- Mount the USB drive like you would any other external storage so you can access the filesystem on the partition you created.
- Mount the ISO you wish to add to the USB drive so you can access the files in there.
- Now, when you have access to both the ISO and the USB drive as filesystems in your file manager (Nautilus or whatever) just copy and paste all files in the ISO to the USB drive.
- Add the ‘boot’ flag to the partition you’ve created and added the files to. In GParted, right click the partition, choose «manage flags» and then check the «boot» option.
(While testing this I couldn’t mount the USB drive anymore after setting the boot flag. I don’t know why, but GParted could still see it and the end result was still a bootable USB drive, so I guess it doesn’t really matter.)
- Restart your computer and choose to boot from the USB drive.
Once again: Please note that for this to work, your computer’s firmware must be UEFI compliant and the ISO must be ready for UEFI boot.
If you find an EFI directory in the ISO that’s usually a good sign.
To see whether you’re currently using UEFI boot, run sudo efibootmgr -v
in a terminal. If it lists a number of boot options you’re good to go. If you’re using BIOS compatibility mode you’ll see something like this:
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
For more information on UEFI, please read this excellent essay on the subject: https://www.happyassassin.net/2014/01/25/uefi-boot-how-does-that-actually-work-then/
Also, I don’t think Ubuntu will work with Secure Boot enabled, so you’ll have to disable that to be able to use UEFI boot with Ubuntu.
Windows2usb
Burn Windows ISO to USB Flash Drive on Linux
What is this?
Windows2usb is a bash script which writes Microsoft Windows 7/8/8.1/10/11 installation DVD images to USB Flash Drive or external HDD on Linux. It was designed with compatibility in mind, and should work in all cases, contrary to other popular Linux tools.
Features:
- Fully automatic, no preparations required
- Supports BIOS and UEFI, FAT32 and NTFS
- Supports custom Windows ISOs with install.wim > 4GiB
- Uses stock Windows bootloaders where possible
- Does not break UEFI Secure Boot chain
Windows 7/8/8.1/10/11 ISO to Flash Drive burning utility
WARNING: this program will delete all existing data on your drive!
windows2usb <device> <windows iso> [mbr/gpt/gptntfs/gpt+uefintfs]
mbr mode: the most universal, RECOMMENDED and DEFAULT method.
This mode creates MBR partition table with FAT32 partition,
installs BIOS and UEFI bootloaders, supports Secure Boot.
install.wim file larger than 4 GiB will be split.
Suitable for all computers (UEFI/CSM/BIOS).
gpt mode: less universal mode, for modern (UEFI) computers.
GPT+FAT32, UEFI only, supports Secure Boot.
gptntfs mode: all the same as 'gpt' but NTFS is used.
GPT+NTFS, UEFI only, supports Secure Boot.
Large install.wim file will not be split.
NOTE: not all UEFI are compatible with this mode,
NTFS driver should be present on the motherboard.
gpt+uefintfs mode: alternative hacky installation method, not recommended.
This mode uses NTFS partition and third-party 'uefintfs' bootloader.
GPT+NTFS(data)+FAT32(efi), UEFI only, supports Secure Boot
(since uefintfs Oct 23, 2021 release).
Large install.wim file will not be split.
How to use?
Download latest portable AppImage version from the Releases page, set execution bit (chmod +x windows2usb-*.AppImage
) and run it from the terminal.
windows2usb <device> <windows iso>
For example:
./windows2usb.AppImage /dev/sdz /home/valdikss/windows10.iso
The program prints removable storage list if no arguments are supplied.
If you don’t want to use AppImage, you’ll need to install all dependencies and download uefi-ntfs.img from Rufus project.
Feature Matrix
Modes | Legacy/UEFI-CSM Boot | UEFI Boot | Large ISO (>4GB) | Secure Boot | File System | Part Table |
---|---|---|---|---|---|---|
mbr(hybrid) | Supported | Supported | Supported | Supported | FAT32 | MBR |
gpt | No | Supported | Supported | Supported | FAT32 | GPT |
gptntfs | No | Partial | Supported | Supported | NTFS | GPT |
gpt+uefintfs | No | Supported | Supported | Supported | NTFS | GPT |
BIOS Boot
BIOS Boot (Legacy Boot/UEFI-CSM) uses stock Windows 7 MBR and FAT32 bootloader, courtesy of ms-sys project.
BIOS boot is supported only in recommended ‘mbr’ mode.
To burn ISO compatible with BIOS boot (and UEFI boot as well), run:
windows2usb <device> <windows iso> mbr
UEFI Boot
UEFI Boot is supported in all modes. Recommended mode: ‘mbr’.
To burn ISO in this mode, run:
windows2usb <device> <windows iso> mbr
‘MBR’, ‘GPT’ and ‘GPTNTFS’ modes utilize Windows UEFI bootloader from the ISO file, with Secure Boot support.
UEFI Boot with NTFS Partition and uefi-ntfs bootloader
A special ‘gpt+uefintfs’ mode uses uefi-ntfs bootloader from Rufus project. Windows2usb creates 2 partitions in this mode, small 1 MiB FAT32 partition with uefi-ntfs and huge NTFS partition with ISO data.
This mode was included earlier to work with installation disks where install.wim file is greater than 4 GiB, but since then split WIM file functionality was introduced, and now this mode may be considered obsolete.
uefi-ntfs bootloader is signed by Microsoft since Oct 23, 2021 release and supports Secure Boot.
Alternatives
WoeUSB—uses GRUB for BIOS Boot.
bootiso—supports Windows and Linux ISOs.
Ventoy—Booting multi-tool with brilliant support of Windows ISO direct loading.
Credits
This script uses:
- lsblk and sfdisk from util-linux
- ms-sys for native Windows 7 MBR and NTFS bootloaders
- p7zip for ISO extraction
- autofsync to prevent filesystem bufferbloat and properly show copying progress (AppImage only)
- wimlib to split large install.wim files to fit FAT32 partition
- uefi-ntfs
Если вам по той или иной причине потребовалась загрузочная флешка 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
После установки порядок действий будет следующим:
- Запустите программу.
- Выберите ISO образ диска в разделе «From a disk image» (также, при желании, можно сделать загрузочную флешку с оптического диска или смонтированного образа).
- В разделе «Target device» укажите флешку, на которую будет записан образ (данные с неё будут удалены).
- Нажмите кнопку Install и дождитесь завершения записи загрузочной флешки.
- При появлении ошибки с кодом 256 «Source media is currently mounted», размонтируйте образ ISO с Windows 10.
- При ошибке «Target device is currently busy», размонтируйте и отключите флешку, затем снова подключите её, обычно помогает. Если не сработало, попробуйте предварительно отформатировать её.
На этом процесс записи завершен, можно использовать созданный USB накопитель для установки системы.
Создание загрузочной флешки Windows 10 в Linux без программ
Этот способ, пожалуй, ещё проще, но подойдет только в том случае, если вы планируете загружаться с созданного накопителя на UEFI-системе и устанавливать Windows 10 на GPT диск.
- Отформатируйте флешку в FAT32, например, в приложении «Диски» в Ubuntu.
- Смонтируйте образ ISO с Windows 10 и просто скопируйте всё его содержимое на отформатированную флешку.
Загрузочная флешка Windows 10 для UEFI готова и с неё можно без проблем загрузиться в EFI-режиме.
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
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.
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.
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’.
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.
You’ll find the .tar.gz file with Linux in its name. This is the file you should download.
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:
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.
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.
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.
- VTOYEFI: A small partition for the UEFI files.
- Ventoy: A big, empty partition in ExFAT format where you’ll copy the ISO image.
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.
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.
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
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.
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 to leave a comment.