Задача:
Дано:
- Есть лицензионный диск с Windows 7 или ISO-образ этого диска
- Есть флешка, превосходящая своим объёмом размер диска или ISO-образа
- Есть ноутбук, или системный блок, на который нужно установить Windows
- Есть компьютер с установленным Debian GNU/Linux (в моём случае 8.0)
- Нет привода для чтения дисков, ни встроенного, ни переносного
- Нет компьютера с установленной Windows 7
Найти:
- Как записать дистрибутив Windows 7 на флешку, чтобы с неё можно было загрузиться?
Решение задачи:
Подготовка
1. Для начала, если у вас диск с Windows 7, то нужно создать из него ISO-образ.
Для этого можно просто выполнить в консоли команду:
# dd if=/dev/cdrom of=/home/user/windows7image.iso
разумеется, диск должен быть вставлен, а устройство, которое представляет собой CD-ROM должно быть в /dev/cdrom. Если нет — узнайте где оно (например /dev/sr0) и измените строку.
Путь к файлу тоже стоит установить свой собственный, врядли в системе вас зовут user.
2. Установка ПО:
Установим Unetbootin, который понадобится для создания загрузочного диска, и какую-нибудь утилиту для разбивки диска, в моём случае это partitionmanager (из набора KDE), также, полным аналогом является gparted, а если вам проще разбивать диск в консоли через fdisk или cfdisk — можете вообще не ставить никаких GUI-инструментов для этого.
# apt-get install unetbootin partitionmanager
Первое форматирование флешки
Обычно на флешках нет таблицы разделов, а, вместо этого, вся флешка отформатирована в FAT32. Нам нужно создать на ней таблицу разделов, один единственный раздел, и отформатировать его в FAT32.
Это нужно для того, чтобы обмануть Unetbootin. В чём заключается обман, будет объяснено похже.
С помощью partitionmanager, gparted или fdisk нужно сделать следующее:
1) Если на флешке нет таблицы разделов — создать её. Тип таблицы разделов — DOS
2) Создать Primary раздел, занимающий ВСЁ место, и отформатировать его в FAT32
3) Включить на разделе флаг Boot
После того, как эти задачи будут выполнены — нужно
4) Выдернуть флешку и вставить её обратно
Запуск и обман Unetbootin
Unetbootin в своей работе нуждается во флешке, отформатированной в FAT32, однако, чтобы флешка с файлами Windows 7 стала загрузочной, она должна быть отформатирована в NTFS. А c NTFS наш Unetbootin, начиная с какой-то древней версии, не работает. Сделано это потому, что драйвера NTFS в Linux долгое время были не очень стабильными и надёжными, а в проблемах, возникающие из-за этого, винили Unetbootin. Также, сделать загрузочную флешку с Linux’ом (для чего изначально предназначался Unetbootin) в файловой системе NTFS не получится.
В связи с вышеописанным, Unetbootin НЕ УВИДИТ вашу флешку, если она будет отформатирована в NTFS.
Итак, запускаем Unetbootin, заранее вставив подготовленную флешку.
1. В нижнем поле «Носитель» должно появиться ваше устройство, с именем, похожим на /dev/sdc1, выбирайте его.
2. Поставьте галочку около пункта «Образ диска»
3. Справа от этого пункта, нажав на кнопку «…» выберите файл ISO-образа.
4. Всё! Больше пока НИЧЕГО нажимать не надо! Закрывать Unetbootin тоже не надо!
«Подстава» NTFS
Теперь, когда Unetbootin уверен, что ему дали правильное FAT32-устройство, нужно сменить файловую систему на NTFS
1. Если флешка была примонтирована — отмонтируем её.
2. Запустил partitionmanager или gparted, форматируем раздел на флешке в формат NTFS. Если лень запускать GUI-приложения, можно сделать это командой:
где вместо sdX1 нужно подставить имя вашего устройства, например sdc1.
3. После форматирования, вытаскиваем флешку, и вставляем её обратно, после чего монтируем. В KDE, Gnome и прочих *DM вы легко это сделаете одним кликом мышки. В консоли же старая добрая команда:
# mount /dev/sdc1 /mnt/flash
Итак, после монтирования флешка всё ещё имеет то имя устройства (скажем /dev/sdc1) про которое помнит Unetbootin, но уже имеет другую файловую систему. На самом деле, Unetbootin’у всё равно какая ФС на флешке, ведь он просто копирует файлы в папку, куда примонтирована флешка.
Завершение
1. В окне Unetbootin нажимаем «Ok» после чего начинается процесс копирования установочных файлов Windows на флешку.
2. По завершению Unetbootin предлагает перезагрузиться, что нужно делать только в том случае, если Windows вы хотите установить на тот же самый компьютер.
3. Если перезагрузку вы не нажали — перед выдёргивание флешки не забудьте её по-хорошему отмонтировать.
Можно устанавливать
Если компьютер не грузится с флешки — нужно настроить его BIOS соответствующим образом, либо выбрать вариант загрузки с флешки, нажав на начальном экране BIOS’а кнопку F10 или F12 (у каждого производителя это что-то своё).
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.
Creating a bootable USB drive for Windows 10/11 in Linux can be challenging for some users, especially those new to Linux. A bootable USB drive is essential when installing Windows on a computer, as it allows you to bypass traditional installation methods such as a CD/DVD or over the network. It can also be used for system recovery or troubleshooting purposes.
This article is a step-by-step guide on creating a bootable Windows 10/11 USB drive in Linux. It will cover everything you need to know, from the tools you need to the actual installation process. So if you’re a Linux user wanting to install Windows on your computer or create a bootable USB drive for system recovery purposes, this article is for you.
Creating a bootable Windows 10/11 USB in Linux
Prerequisites
Before you can create a bootable Windows 10/11 USB drive in Linux, you will need to make sure you have the following prerequisites:
- A Linux distribution installed on your computer. Ubuntu, Arch Linux, Fedora, and CentOS are popular Linux distributions you can use. (I will use Ubuntu 22.04 for illustration purposes)
- A Windows 10/11 ISO file. You can download the latest Windows 10/11 version from the official Microsoft website.
- A USB drive with at least 8GB of storage capacity.
Using WoeUSB
WoeUSB is a powerful tool that allows you to create bootable Windows USB drives from ISO images on Debian-based distros. There are two methods to install WoeUSB: using the PPA repository or using a bash script. Let’s explore both methods:
Installing WoeUSB on Debian-based Linux derivatives
Follow the section below to find out how to install WoeUSB on Debian-based Linux derivatives:
Step 1: Downloading and Installing WoeUSB
There are several distinct methods that can be used to download and install WoeUSB on Debian-based distros. To get a glimpse at some of them, check out the subsequent sections:
Method 1: Using PPA to Install WoeUSB
Step 1: Add the WoeUSB PPA
Launch the terminal by pressing “CTRL+ALT+T” and add the WoeUSB PPA to your Ubuntu system with the following command:
sudo add-apt-repository ppa:tomtomtom/woeusb -y
Add woeusb PPA
Step 2: Update Ubuntu Core Libraries
After adding the PPA, it’s essential to update the core libraries of Ubuntu:
sudo apt update
Update system resources
Step 3: Install WoeUSB
Once the repositories are updated, you can install both the CLI and the GUI support for WoeUSB with the following command:
sudo apt install woeusb woeusb-frontend-wxgtk -y
Install woeusb
If you only need the CLI (Command Line Interface) of WoeUSB, you can install it separately:
sudo apt install woeusb -y
Install woeusb cli
To verify that WoeUSB is successfully installed, run the following command:
woeusb -h
Verify is woeusb was successfully installed
This command will display the version and possible usage of the WoeUSB tool.
Launching the WoeUSB GUI
To launch the WoeUSB GUI, run the following command:
woeusbgui
Launch woeusb
The WoeUSB GUI will be launched and ready to use.
Method 2: Install WoeUSB Using a Bash Script
The second method involves installing WoeUSB using a bash script available on GitHub. Follow these steps:
Step 1: Download the Script
Download the latest bash script of WoeUSB from the GitHub repository. The downloaded file will appear in the “Downloads” directory of Ubuntu.
Download woeusb bash script
Step 2: Make the Script Executable
Open the terminal and make the bash script executable with the following command:
cd Downloads chmod +x woeusb-5.2.4.bash
Make script file executable
Step 3: Install the Wimtool Utility
Before executing the script, install the “wimtools” utility, which is required for WoeUSB to function properly:
sudo apt install wimtools
Install the wimtools utility
Step 4: Execute the Bash Script
Run the bash script with the following command:
./woeusb-5.2.4.bash
Execute the bash script file
The WoeUSB Command Line Interface will now be ready to use.
Installing WoeUSB on Other Linux Distros
WoeUSB is not limited to Ubuntu or Debian-based Linux distributions; it can be installed on various other Linux distros as well. The installation process could differ slightly depending on the package manager used by the specific Linux distro. Below are the steps to install WoeUSB on Arch Linux, Fedora, and CentOS:
Installing WoeUSB on Arch Linux
To install WoeUSB on Arch Linux, follow the steps provided below:
Step 1: Open a Terminal
First, open a terminal on your Arch Linux system. You can do this by clicking the “CTRL+ALT+T” keyboard combination or by searching for “Terminal” in the application launcher.
Step 2: Install WoeUSB
Use the following command to install WoeUSB from the AUR (Arch User Repository):
yay -S woeusb-git
The above command assumes you have an AUR helper like “yay” installed. If you don’t have an AUR helper, you can install “woeusb-git” manually by cloning the AUR repository and building the package. Here’s how you can do it:
git clone https://aur.archlinux.org/woeusb-git.git cd woeusb-git makepkg -si
Enter your password when prompted to proceed with the installation.
Step 3: Launch WoeUSB
Once the installation is complete, you can start WoeUSB by running the following command in the terminal:
woeusbgui
The WoeUSB graphical user interface (GUI) will be launched, and you can now use it to create bootable Windows USB drives from ISO images.
WoeUSB is now successfully installed on your Arch Linux system. You can employ this powerful tool to create bootable USB drives for Windows 11/10 and other Windows operating systems. Enjoy the convenience of WoeUSB’s user-friendly interface and create bootable media effortlessly.
Installing WoeUSB on Fedora
To install WoeUSB on Fedora, use the following steps:
Step 1: Open a Terminal
Open a terminal on your Fedora system. You can do this by clicking the “CTRL+ALT+T” keyboard combination or by searching for “Terminal” in the application launcher.
Step 2: Install WoeUSB
Use the following command to install WoeUSB from the official Fedora repositories:
sudo dnf install woeusb
Enter your password when prompted to proceed with the installation.
Step 3: Launch WoeUSB
Once the installation is complete, you can start WoeUSB by running the following command in the terminal:
woeusbgui
The WoeUSB graphical user interface (GUI) will be launched, and you can now use it to create bootable Windows USB drives from ISO images.
WoeUSB is now successfully installed on your Fedora system. You can employ this powerful tool to create bootable USB drives for Windows 11/10 and other Windows operating systems.
Installing WoeUSB on CentOS
Please note that CentOS may not have an official package for WoeUSB. However, you can still use the WoeUSB bash script method, as shown in the “Install WoeUSB Using a Bash Script” section in the previous instructions. The bash script method allows you to install WoeUSB on CentOS without relying on specific repositories or package managers.
To use the bash script method, follow the steps provided in the previous section (“Install WoeUSB Using a Bash Script”). This method works on various Linux distros, including CentOS.
Once you have installed WoeUSB on your preferred Linux distro, you can use it to create bootable Windows USB drives from ISO images, just like on Ubuntu. WoeUSB provides a user-friendly interface for this purpose and is a reliable tool for creating bootable media. With WoeUSB, you can effortlessly create bootable Windows 11/10 USB drives on different Linux distributions.
Step 2: Insert the USB Drive
Insert the USB thumb drive into any available USB port on your Linux computer.
Step 3: Launch WoeUSB
Navigate to the ‘Activities’ section, look for ‘WoeUSB’ and launch it. If that method fails, launch your terminal and move to section 4 below and follow the subsequent steps to create a bootable Windows 10/11 USB drive using WoeUSB:
Step 4: Select the Windows ISO
Open the WoeUSB graphical user interface (GUI) by running the following command in the terminal:
woeusbgui
Launch woeusb
Click on the “From a Disk image (iso)” option in the GUI.
Select iso option
Navigate to the location where the downloaded Windows 11/10 ISO file is located.
Choose downloaded iso image
Select the downloaded Windows ISO file and click “Open” to load it into WoeUSB.
Click open to load it into woeusb
Step 5: Select the USB Drive
Choose the target USB drive you inserted earlier from the list of available drives in the WoeUSB GUI. Double-check the USB drive name to avoid accidentally overwriting any critical data.
Choose target device
Step 6: Start the Creation Process
Once you have ascertained the Windows ISO and the USB drive in the WoeUSB GUI, click the “Install” button to start creating the bootable Windows USB drive. WoeUSB will format the USB thumb drive and copy the contents of the downloaded ISO file onto it. This process might take some time to complete depending on several factors, such as computer specs.
Click install button to start the creation process
Step 7: Eject the USB Drive
After the creation process is finished, you will receive a notification from WoeUSB. First, safely eject the USB drive from your computer.
Installation process complete
Congratulations, you have successfully created a bootable Windows 10/11 USB drive in Linux using WoeUSB! However, it is essential to note that this is not the only method available for creating a bootable USB thumb drive for Windows 10/11 on Linux. Continue reading to explore other alternative methods for achieving the same result.
Step 8: Boot from the USB Drive
To install Windows 10/11 on a computer, restart the PC and access the boot menu while powering on the PC by pressing the appropriate key (usually F12 or Esc). Select the bootable USB flash drive as the primary boot device. Note that the key to access the computer’s boot menu may vary depending on your system’s manufacturer. Refer to your system’s user manual or search online for specific instructions.
Step 9: Install Windows
Your PC will boot from the selected USB drive, and you can install Windows 11/10 by following the on-screen instructions.
Following the steps above, you can create a bootable Windows 11/10 USB drive on Linux using WoeUSB. WoeUSB simplifies the process and ensures a successful installation. Enjoy installing Windows 11/10 on your desired computer.
Note: These steps should help you install and use WoeUSB on Arch Linux, Fedora, and CentOS. Remember to adjust the version numbers and filenames based on the latest releases.
Command-line way of creating a Windows installer USB drive
In addition to the method we discussed earlier using WoeUSB, there are other methods you can use to create a bootable Windows 10/11 USB in Linux. In this section, we will discuss some of these methods.
Using dd Command
One of the straightforward methods to create a bootable Windows 10/11 USB in Linux is using the dd command. This method works well for creating bootable USB drives for any operating system, including Windows.
Here are the steps to follow:
Step 1: Download the Windows ISO
Download the Windows ISO from the official Microsoft website. Make sure to download the correct ISO file for your system architecture.
Step 2: Insert the USB Drive
Insert the USB drive into your computer’s USB port.
Step 3: Identify the USB Drive
Identify the device name of the USB drive using the following command:
sudo fdisk -l
Check the USB drive name
This will list all the storage devices connected to your computer. Look for the device name of your USB drive. It will be in the format /dev/sdx, where x is a letter representing the device identifier.
Note: Be careful when selecting the device name for your USB drive, as choosing the wrong device can result in data loss.
Step 4: Unmount the USB Drive
Unmount the USB drive using the following command:
sudo umount /dev/sdx
Replace /dev/sdx with the device name of your USB drive. For my case, I will execute the following code:
sudo umount /dev/sdb1
Unmount disk
Step 5: Write the Windows ISO to the USB Drive
Write the Windows ISO to the USB drive using the following command:
sudo dd bs=4M if=/path/to/windows.iso of=/dev/sdx status=progress && sync
Replace /path/to/windows.iso with the path to the Windows ISO file and /dev/sdx with the device name of your USB drive.
Example:
sudo dd bs=4M if=/home/fosslinux/Documents/Win11_22H2_EnglishInternational_x64.iso of=/dev/sdb1 status=progress && sync
Write the Windows ISO to USB
The bs=4M option sets the block size to 4 megabytes, which can improve performance. The status=progress option displays the progress of the write operation. The sync command ensures that all data has been written to the USB drive before the command exits.
Step 6: Eject the USB Drive
Once the write operation is complete, eject the USB drive from your computer.
Using the bootable drive to install Windows 10/11
Now that you have created a bootable Windows 10/11 USB drive in Linux, you can install Windows on your computer. The installation process will vary depending on whether your computer uses BIOS or UEFI.
Installation Process for BIOS
To install Windows using the bootable USB drive on a computer that uses BIOS, follow these steps:
Step 1: Insert the USB Drive
Insert the bootable USB drive into your computer’s USB port.
Step 2: Boot from the USB Drive
Restart your computer and press the key to access the boot menu. The key to accessing the boot menu may vary depending on your computer’s manufacturer. Standard keys include F2, F12, and Del.
Select the USB drive from the boot menu and press Enter to boot from it.
Step 3: Install Windows
Follow the on-screen prompts to install Windows on your computer. You may need to enter the product key during the installation process.
Installation Process for UEFI
To install Windows using the bootable USB drive on a computer that uses UEFI, follow these steps:
Step 1: Insert the USB Drive
Insert the bootable USB drive into your computer’s USB port.
Step 2: Boot from the USB Drive
Restart your computer and access the UEFI firmware settings. The key to access the UEFI firmware settings may vary depending on your computer’s manufacturer. Standard keys include F2, F12, and Del.
Enable Legacy Boot or Compatibility Support Module (CSM) and disable Secure Boot in the UEFI firmware settings.
Save the changes and exit the UEFI firmware settings.
Step 3: Install Windows
Restart your computer and press the key to access the boot menu. The key to accessing the boot menu may vary depending on your computer’s manufacturer. Standard keys include F2, F12, and Del.
Select the USB drive from the boot menu and press Enter to boot from it.
Follow the on-screen prompts to install Windows on your computer. You may need to enter the product key during the installation process.
That’s it. Wait for the installation process to complete. Once it does, enjoy your newly installed Windows OS!
Important aspects to consider while creating a bootable drive
One thing to remember when creating a bootable Windows USB drive in Linux is that it may take longer than making one in Windows, depending on your chosen method. Some ways, such as the dd command, may take longer to complete, but they are generally more reliable.
Additionally, you must ensure you have enough storage space on your USB drive for the Windows ISO file and any other files you may need. A standard 8GB USB drive should be sufficient for most purposes, but you may need more space if you have a large ISO file or need to store additional files on the drive.
Finally, double-checking your work before using the bootable USB drive to install or repair Windows on a computer is always a good idea. Ensure the USB drive is formatted correctly and that you have selected the correct ISO file before proceeding. This will help ensure that the installation or repair process goes smoothly without any issues.
Overall, creating a bootable Windows 10/11 USB drive in Linux is a valuable skill, primarily if you frequently work with Windows computers or need to repair a computer with a corrupted or non-functional operating system. With the right tools and patience, you can create a bootable USB drive that will allow you to install or repair Windows easily.
Conclusion
Creating a bootable Windows 10/11 USB drive in Linux is a valuable skill for anyone who needs to install Windows on a computer or create a bootable USB drive for system recovery purposes. With the help of the free and open-source tool WoeUSB, the process can be done easily and quickly.
In this article, we covered the prerequisites; we discussed two methods for creating a bootable USB drive: WoeUSB and the dd command. Each method has its own advantages and disadvantages, and you should choose the one that works best for you. Besides, we discussed how to use the bootable drive to install Windows 10/11 and the step-by-step process for creating a bootable Windows 10/11 USB drive in Linux. We have also provided examples of the installation process for both BIOS and UEFI systems.
No matter which method you choose, download the correct Windows ISO file and follow the instructions carefully. With attention to detail and patience, you can create a bootable Windows 10/11 USB drive in Linux that will allow you to install or repair Windows on any computer.
We hope this article has been helpful to you in creating a bootable Windows 10/11 USB drive in Linux. If you have any questions or feedback, please comment below. Thank you for reading!
Бывают случаи, когда вам нужно записать Windows на флешку в Linux, например, когда вы хотите поставить эту систему второй для использования специализированных программ, или вам нужно переустановить операционку своим знакомым. Или же есть пользователи Linux, которые решили вернуться на Windows, но единственную флешку уже перезаписали под Linux LiveUSB.
Загрузочная флешка Windows в Linux создается достаточно просто. Я предлагаю несколько способов решения этой проблемы. Все их я перечислил ниже.
Содержание статьи
- Загрузочная флешка 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 не представляет сложности. Это были все способы, которые я знаю. Если они вам помогли, напишите об этом. Если вы знаете еще способы, обязательно напишите о них в комментариях!
Об авторе
Здравствуйте, я изучаю Linux и обладаю хорошими знаниями английского.