Как создать загрузочную флешку windows из под 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» укажите флешку, на которую будет записан образ (данные с неё будут удалены). 
  4. Нажмите кнопку Install и дождитесь завершения записи загрузочной флешки. 
  5. При появлении ошибки с кодом 256 «Source media is currently mounted», размонтируйте образ ISO с Windows 10. 
  6. При ошибке «Target device is currently busy», размонтируйте и отключите флешку, затем снова подключите её, обычно помогает. Если не сработало, попробуйте предварительно отформатировать её. 

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

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

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

  1. Отформатируйте флешку в FAT32, например, в приложении «Диски» в Ubuntu. 
    Форматировать флешку в FAT32 в Linux

  2. Смонтируйте образ ISO с Windows 10 и просто скопируйте всё его содержимое на отформатированную флешку. 
    Копирование файлов установки Windows на флешку в Linux

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

В данной статье мы расскажем как создать загрузочную флешку с Windows в системе Linux с помощью утилиты под названием «Ventoy».

Для начала вам потребуется:

— Сама утилита Ventoy под Linux, скачать вы ее можете с официального сайта.

— ISO Образ нужной вам Windows, скачать его можно в нашем каталоге.

— Так же вам потребуется активировать будущую Windows, оригинальные ключи активации вы можете приобрести у нас в магазине по выгодным ценам от 1140 ₽.

1) После того как вы скачали архив с программой, распаковываем его в удобное для вас место.

2) Переходим в папу с программой, и нажимаем «Свойство» на файле «VentoyGUIx86_x64».

3) В разделе «Права» ставим галочку напротив «Разрешить выполнение файла как программы», чтобы сделать файл исполняемым.

4) После этого запускаем файл.

5) После запуска открывается интерфейс утилиты, если вы будете устанавливать Windows на старый ПК c Legacy Boot, то в разделе Option => Partition Style выбираем «MBR». Если же установка будет производиться на новый ПК с UEFI, тогда выбираем разметку «GPT».

6) После выбора нужной вам разметки, жмем «Install» и ждем какое-то время.

7) После записи программы на флешку, появится два раздела.

— Первый раздел, куда установилась сама утилита с ее файлами.

— Второй раздел, куда нужно будет поместить ISO образ Windows.

8) Все что нам остается, это просто переместить во второй раздел заранее скачанный ISO образ нужной вам Windows.

9) После чего запуститься с этой флешки, выбрать второй раздел и начать процедуру установки системы.

Хотим напомнить что все популярные ISO образы Windows вы можете скачать в нашем каталоге.
— Windows 11

— Windows 10

— Windows 8.1

— Windows 7

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.

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

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

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

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

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

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

Launch GParted

Select your USB drive from the drop-down menu at the top-left corner.

Select USB drive

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

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

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

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

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

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

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

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

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

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

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

UNetbootin 64bit

Step 2. Make the UNetbootin bin file executable with the command below

chmod +x unetbootin-linux64-675.bin

Make the file executable

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

Launch UNetbootin

The UNetbootin main window will open.

UNetbootin Main Window

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

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

UNetbootin Booting process

Step 6. Once done, you will see the Complete Installation message. Click on the Exit button that appears.

UNetbootin Finish window

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.

Иногда из-под Linux необходимо создать загрузочную флешку с Windows.

Способы

UEFI

Последние версии Windows могут загружаться в UEFI если просто отформатировать флешку в FAT32 и распаковать на нее образ.

Для этого делаем следующее:

  • Через Gparted форматируем флешку в FAT32.
  • В том же Gparted делаем RCM по разделу ▷ Управление флагами
  • Отмечаем флаг BOOT
  • Закрываем Gparted
  • Монтируем флешку
  • Монтируем ISO образ
  • Копируем содержимое ISO-образа на флешку

MBR

Делаем тоже самое, что и для UEFI, но кроме этого выполняем следующее:

  • ставим загрузчик GRUB2
# grub-install --target=i386-pc --boot-directory="/media/$user/$drive/boot" /dev/sdX

где boot — каталог на установочной флешке

  • создаем в boot/grub файл grub.cfg со следующим содержимым:
default=1  
timeout=15
color_normal=light-cyan/dark-gray
menu_color_normal=black/light-cyan
menu_color_highlight=white/black

menuentry "Start Windows Installation" {
    insmod ntfs
    insmod search_label
    search --no-floppy --set=root --label $USB_drive_label --hint hd0,msdos1
    ntldr /bootmgr
}

menuentry "Boot from the first hard drive" {
    insmod ntfs
    insmod chain
    insmod part_msdos
    insmod part_gpt
    set root=(hd1)
    chainloader +1
    boot
}

Автоматический способ с помощью WoeUSB

Облегчить создание загрузочной флешки помогают различные утилиты для создания из-под Linux загрузочной флешки с Windows.

К примеру, woeusb (подробнее см. man woeusb).

$ su -
# apt-get install woeusb
# woeusb --device Win10_21H2_Russian_x64.iso /dev/sde

Примечание: Win10_21H2_Russian_x64.iso — тут укажите iso-образ (если вы находитесь в каталоге с ним) или полный путь к нему, /dev/sde — тут укажите путь к устройству флешки, без указания раздела.

Источники

  • youtube.com/Алексей Лещенко
  • the-bosha.ru

WoeUSB is the best way to create a bootable Windows 11 USB on Linux. It takes care of the formatting, flashing, and other configuration settings. All the user has to do is provide a Windows 11 ISO.

The WoeUSB app isn’t installed on any Linux operating systems by default. Thankfully, you’ll be able to set up the app using the commands below.

Ubuntu

Sadly, Ubuntu doesn’t provide WoeUSB in their official software repositories, and past PPAs are no longer available. As a result, Ubuntu users will need to get it working with the Python3 package tool.

You must set up the dependencies required to run the software to start. Using the apt install command down below, set up the packages.

sudo apt install git p7zip-full python3-pip python3-wxgtk4.0

With all of the packages set up and configured, use the pip3 install command to download and install the latest version of WoeUSB on your Ubuntu system.

sudo pip3 install WoeUSB-ng

Debian

Like Ubuntu, there is no way to get the WoeUSB app through official software sources, so it must be installed via Python. Use the apt-get install command and set up the latest dependency packages.

sudo apt-get install git p7zip-full python3-pip python3-wxgtk4.0

Once all of the packages are configured and installed on your system, you can install the latest version of the WoeUSB application on your Debian Linux system.

sudo pip3 install WoeUSB-ng

Arch Linux

The WoeUSB application is available in the Arch Linux Community software repository. However, this version doesn’t ship with a GUI. To get the GUI version, install WoeUSB with the commands below.

wget https://builds.garudalinux.org/repos/chaotic-aur/x86_64/woeusb-ng-0.2.10-1-any.pkg.tar.zst

sudo pacman -U woeusb-ng-0.2.10-1-any.pkg.tar.zst

Fedora

The WoeUSB application is in the official Fedora Linux package repositories. However, the Python version of the app works much better. Install the dependency packages using dnf install and set up the app using pip3 install to get it set up.

sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4

sudo pip3 install WoeUSB-ng

OpenSUSE

To get the latest version of WoeUSB working on your OpenSUSE Linux system, head over to the WoeUSB-ng page on the OpenSUSE build site. Then, select your operating system, and choose the “1 Click Install” button to install the software to your system.

Generic Linux

If you’re using a Linux OS not covered by the instructions in this guide, you’ll still be able to install the software through Python 3. However, you’ll first need to set up the package dependencies.

To create a bootable Windows 11 USB on Linux, follow the step-by-step instructions below.

Step 1: Open up the app menu and launch “Woeusb-ng.” When you launch the app, you’ll be asked to enter your password. Using the keyboard, enter your password to access the app.

Step 2: Once the Woeusb-ng application is open, you must download Windows 11. Head over to the Windows 11 download page and find “Download Windows 11 Disk Image (ISO).”

Step 3: After locating “Download Windows 11 Disk Image (ISO),” find the “Select Download” menu and choose “Windows 11 (multi-edition ISO),” and click on the blue “Download” option to download the ISO file.

Step 4: Once the Windows 11 ISO is done downloading, go to WoeUSB and find the “From a disk image (iso)” area. Click on the “None” button to bring up a pop-up window.

Step 5: Use the pop-up window to browse for the Windows 11 ISO you downloaded previously. Then, find “Target device” and select your USB flash drive. Finally, click on the “Install” button when you’re ready to begin.

Step 6: After selecting the “Install” button, WoeUSB will present a message. This message states, “Are you sure? This will delete all your files and wipe out the selected partition.” Click the “Yes” button to continue.

The installation process will take time to complete, as the Windows 11 ISO file is enormous. When the process is complete, you will see “Installation succeeded!”

Other ways to create a Windows 11 USB on Linux

While the WoeUSB app is undoubtedly useful, it isn’t the only way to create a live Linux USB. It is also possible to create one by hand by following the step-by-step instructions below.

Step 1: Head over to the official Windows 11 download page, find “Download Windows 11 Disk Image (ISO),” and download your ISO.

Step 2: After downloading your ISO file, install the gparted app, plug in your USB flash drive, and open the Gparted application.

Step 3: Select your USB flash drive inside of Gparted. Then, click on the “Device” menu. Next, select “Create Partition Table,” select the “Gpt” option, and click “Apply.”

Step 4: Right-click on “unallocated” and select the “New” option in the right-click menu. Create a new Fat32 partition with 1024 MB in size.

Be sure to label it “BOOT” in all caps.

Step 5: After creating the Fat32 partition, right-click on the unallocated space, select the “New” option and create a new NTFS partition with the remaining space left over. Be sure to label this partition “INSTALL.”

Step 6: Open the Linux file manager, select downloads, and right-click on the Windows 11 ISO file. Select “Open with disk image mounter.”

Alternatively, you can mount the ISO with the following commands.

mkdir -p ~/win11iso/
sudo mount -o loop ~/Downloads/Win11_English_x64v1.iso ~/win11iso/

Step 7: Once the image is mounted, copy all files to the flash drive to create your Windows 11 live USB.

default avatar image

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Гибернация компьютера по таймеру windows 10
  • Epson lq 630 драйвера windows 10
  • Программы для шифрования данных windows
  • Дефолтные обои windows 11
  • Как передавать файлы с iphone на windows