Linux create bootable windows usb from iso

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

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

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

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

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

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

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

  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.
  2. Смонтируйте образ ISO с Windows 10 и просто скопируйте всё его содержимое на отформатированную флешку.

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

Источник

Create a Bootable Windows 10 USB in Linux With Ubuntu/Debian GUI

Warning: Writing or selecting the wrong kind of boot record to a device (USB/hard disk) might destroy partition information or file system or data forever. Be careful with partition and disk names.

Method 1 . Create a Bootable Windows 10 USB in Linux with woeusbgui GUI app

This method is recommended for all new Linux users as it requires less typing at the CLI and easy to use. WoeUSB is a simple Linux program to create a Windows 10 USB stick installer from a real Windows DVD or ISO image. From the Github page:

WoeUSB is a simple tool that enable you to create your own usb stick windows installer from an iso image or a real DVD. It is a fork of Congelli501’s WinUSB. This package contains two programs:

  1. woeusb: A command-line utility that enables you to create your own bootable Windows installation USB storage device from an existing Windows Installation disc or disk image
  2. woeusbgui: A GUI wrapper of woeusb based on WxWidgets
Читайте также:  Гаджет для windows новости

It supports Windows Vista, Windows 7, Window 8.x, Windows 10. All languages and any version (home, pro, ltsb, …) and Windows PE.

Clone WoeUSB

Type the following git command git clone https://github.com/WoeUSB/WoeUSB.git
Set the application version string:
cd WoeUSB/
./setup-development-environment.bash
Install WoeUSB’s build dependencies on a Debian or Ubuntu Linux using the apt-get command or apt command sudo apt-get install devscripts equivs gdebi-core
mk-build-deps
sudo gdebi woeusb-build-deps_*.deb
dpkg-buildpackage -uc -b
sudo gdebi ../woeusb*.deb

Install WoeUSB to create usb stick windows 10 installer from an iso image on Linux

Make a Bootable Windows 10 USB from Linux

Method 2 . Bash shell script to create a bootable Windows 10 USB device from one ISO file

Install it as follows from the Github:
sudo apt install extlinux
mkdir

/bin/
curl -L https://git.io/bootiso -O
chmod +x bootiso
To list your usb pen drive run:

/bin/bootiso -l
To write create a bootable Windows 10 USB from an ISO image named

Create a Windows 10 USB bootable device from an ISO image using a bash shell script

Method 3 . Create a Bootable Windows 10 USB in Linux with CLI apps only

First you need to install a tool called ms-sys. It is a Linux cli app for writing Microsoft compatible boot records. This program does the same as Microsoft “ fdisk /mbr ” to a hard disk except that it does not copy any system files, only the boot record written.

  • No ads and tracking
  • In-depth guides for developers and sysadmins at Opensourceflare✨
  • Join my Patreon to support independent content creators and start reading latest guides:
    • How to set up Redis sentinel cluster on Ubuntu or Debian Linux
    • How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
    • How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
    • A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
    • How to protect Linux against rogue USB devices using USBGuard

Join Patreon

Download and install ms-sys

Grab the latest version from this page. Use the wget command or curl command to grab the file:
cd /tmp/
wget https://nchc.dl.sourceforge.net/project/ms-sys/ms-sys%20development/2.5.2/ms-sys-2.5.2.tar.gz
Untar the tar ball named ms-sys-2.5.2.tar.gz using the tar command:
tar -zxvf ms-sys-2.5.2.tar.gz
If you do not have gnu gcc c/c++ compiler installed on a Debian or Ubuntu Linux, install it using the apt command or apt-get command:
sudo apt install build-essential
See the following links for more info:

Читайте также:  Pn 955 нет windows

Build and install it:
cd ms-sys-2.5.2
make
sudo make install

Create a ntfs partition

Linux create windows 10 Bootable USB by coping installer files

You need copy files from Windows 10 ISO image to usb disk. Create a folder on Linux using the mkdir command sudo mkdir /mnt/win10/
Mount Windows 10 ISO image in Linux using the mount command:
sudo mount -t udf -o loop,ro,unhide /mnt/win10/
## I got a win10 ltsb iso file in

/Downloads/ ##
sudo mount -t udf -o loop,ro,unhide

/Downloads/14393.0.160715-1616.RS1_RELEASE_CLIENTENTERPRISE_S_EVAL_X64FRE_EN-US.ISO /mnt/win10/
Mount usb pen drive too:
sudo mkdir /mnt/usb/
sudo mount /dev/sdc1 /mnt/usb/
df -h | grep ‘/mnt’

Ready to burn the Windows 10 ISO to a USB on Linux

Use ms-sys command to write mbr to create a bootable Windows 10 pro usb in Linux

In order to burn the Windows 10 ISO to a USB and boot it, run:
sudo ms-sys -7 /dev/sdc
Sample outputs:

Unmount /dev/sdc:
sudo sync
sudo umount /mnt/usb/
Now boot from USB pen and you should see Windows 10 installer as follows:

Conclusion

And there you have it. You just created a Windows 10 bootable USB stick on Linux using two different methods. Creating a Microsoft bootable Windows 10 USB stick from Linux is very simple, and I hope it helps you manage your enterprise workload without leaving Linux desktop.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via

Источник

Make a bootable flash drive from an ISO image

We all know that installing an operating system from a USB drive is much faster than installing from DVD. In this article we will look at several ways to create a bootable USB drive.

Before describing how to create a bootable USB drive read the article How to correctly format the USB stick in Linux Mint. In some cases described below, it is desirable to have already formatted the USB flash drive in FAT32 format.

1. LinuxLive USB Creator (only for Windows users)
If you are a user of the Windows operating system and want to make a bootable USB flash drive with a Linux distribution – this program is for you.
It is very simple, select the USB flash drive, please specify the iso image will be copied, turn on the option to format the USB stick and click on the lightning.
You can download the program on the official developer’s website http://www.linuxliveusb.com/en/download.

Rufus is a utility that helps format and create bootable Flash/Pen/Key drives, memory cards, etc.
Rufus will be especially useful in cases where:
-you need to create a bootable USB disk from a bootable ISO image (Windows, Linux, UEFI, and others)
-need to work on systems that have no OS installed
-you need to flash a BIOS or other firmware from DOS
-you need to run a low-level utility
-Despite its small size, Rufus knows how to do everything!

3. UNetbootin (for Linux, Windows, Mac users)

A very common program. The principle of operation is the same as the previous program. Select the image, select the flash drive, and click OK. For details, see the screenshots below.

Читайте также:  Посмотреть дескрипторы процесса linux

Installation latest version into Linux Mint 14/15/16/17/17.1:

4. LiveUSB MultiSystem (for Linux users) -To create a bootable USB flash drive with multiple operating systems (windows or linux) read article Create your LiveUSB MultiBoot very simple in Linux Mint.

5. Either – program to burn the iso image with the distro on a USB flash drive or micro SD card (Windows, MacOS and Linux) read article Either – program to record the iso image on a USB flash drive

6. YUMI – Multiboot USB Creator (for Linux, Windows users)

YUMI (Your Universal Multiboot Integrator), is the successor to our MultibootISOs. It can be used to create a Multiboot USB Flash Drive containing multiple operating systems, antivirus utilities, disc cloning, diagnostic tools, and more. Contrary to MultiBootISOs which used grub to boot ISO files directly from USB, YUMI uses syslinux to boot extracted distributions stored on the USB device, and reverts to using grub toBoot Multiple ISO files from USB, if necessary.

Important Note : YUMI was intended to be used to try to run various “LIVE Linux” Operating Systems from USB. Installing Linux from the YUMI created USB Drive to a Hard Drive is not officially supported. If the installer portion of any Live Linux distro does work, consider it a bonus.

Installation latest version into Linux Mint 14/15/16/17/17.1:

Download DEB package “YUMI for Ubuntu Linux” from website

7. USB image writer (for Linux users)

Linux Mint have default utility USB image writer. One time I used this program, but personally I have not always made a bootable USB flash drive.

Locate menu, the program will run. Select the image, select the USB drive and click Write.

Multiboot USB flash drive designed for loading and installing operating systems Windows/Linux and restoration-resuscitation tools directly from the USB drive.

9. WinUSB – Create Windows Usb stick
is a simple tool that allows you to create your own Windows installation on USB stick from an ISO image or DVD disk in Linux Mint.

10. Using the terminal (in my opinion the best 100% of the way)

As is known, the terminal is installed in any Linux distribution by default, so install additional software is not required.

The terminal command to write the iso image, the distribution is as follows:

Where instead of /home/USER/linuxmint.iso you need to specify the path to the iso file. sdb in the end, it’s a stick on which is written the way.

To determine your flash drive, run in terminal:

And if you stick decided differently, change in the command.

To be entered correctly in the command path to the file, open the folder with the file, open next to the terminal and drag the file into the terminal:

Now we are ready to start. I got the command:

The cursor of the terminal is blinking and it seems that nothing happens, but actually being recorded. Wait for the image capture and at the end you should see in the terminal like this:

Источник

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