{"id":39555,"date":"2022-05-08T17:18:07","date_gmt":"2022-05-08T17:18:07","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=39555"},"modified":"2024-05-16T06:58:34","modified_gmt":"2024-05-16T06:58:34","slug":"create-usb-installer-windows-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/05\/create-usb-installer-windows-ubuntu-linux\/","title":{"rendered":"How to Create USB Installer for Windows 7\/8\/10 in Ubuntu 22.04 Linux"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-39556\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Want to create an USB installer for Microsoft Windows, but only has a Linux PC (or server)? Here&#8217;s how to do the trick in Ubuntu, Arch, Fedora, and their based systems, e.g., Linux Mint, Manjaro.<\/p>\n<h3>WoeUSB-ng<\/h3>\n<p>Today when I was installing Windows 7 on my 10 years old laptop, the first I tried is booting the ISO image via <a href=\"https:\/\/github.com\/ventoy\/Ventoy\" target=\"_blank\" rel=\"noopener\">Ventoy<\/a> USB stick. Sadly, it just didn&#8217;t boot!<\/p>\n<p>So, I turned to <a href=\"https:\/\/github.com\/WoeUSB\/WoeUSB-ng\" target=\"_blank\" rel=\"noopener\">WoeUSB-ng<\/a>. It&#8217;s a free open-source tool to create a Windows USB stick installer from a real Windows DVD or iso image.<\/p>\n<p>It&#8217;s a rewrite of WoeUSB in Python programming language with graphical interface support! With it, you can burn <b>Windows Vista<\/b>, <b>Windows 7<\/b>, <b>Window 8.x<\/b>, <b>Windows 10<\/b> and <b>Windows PE<\/b> into USB with following boot mode:<\/p>\n<ul>\n<li>Legacy\/MBR-style\/IBM PC compatible bootmode<\/li>\n<li>Native UEFI boot for Windows 7 and later (FAT file-system only).<\/li>\n<\/ul>\n<h3>Step 1: Install WoeUSB-ng<\/h3>\n<p>Arch Linux users just need to run <code>yay -S woeusb-ng<\/code> command in terminal to install the app.<\/p>\n<h4>1.) Install Dependency<\/h4>\n<p>Firstly, press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, run the command below to install the dependencies:<\/p>\n<pre>sudo apt install git p7zip-full python3-pip python3-wxgtk4.0 grub2-common grub-pc-bin<\/pre>\n<p><i>Type user password for sudo authentication, though there&#8217;s no asterisk feedback<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-39558\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-woeusbng-dependency-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-woeusbng-dependency-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-woeusbng-dependency-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-woeusbng-dependency-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-woeusbng-dependency.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>For Fedora, run the command below instead:<\/p>\n<pre>sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4<\/pre>\n<h4>2.) Install WoeUSB-ng<\/h4>\n<p>As a Python application, it&#8217;s easy to install via the pip package manager. To do so, just run command:<\/p>\n<pre>sudo pip3 install WoeUSB-ng<\/pre>\n<p><b>Due to policy change, the command above does no longer work in Ubuntu 24.04, see <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2024\/03\/pip-install-error-ubuntu-2404\/\" target=\"_blank\" rel=\"noopener\">this post<\/a> for workarounds, or just run the command below instead:<\/b><\/p>\n<pre>sudo pip3 install WoeUSB-ng --break-system-package<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-39559\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/pip-woeusb-600x180.webp\" alt=\"\" width=\"600\" height=\"180\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/pip-woeusb-600x180.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/pip-woeusb-300x90.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/pip-woeusb.webp 732w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Once installed, click the top-left &#8220;<i>Activities<\/i>&#8221; button, then search for and open the tool:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-39560\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/open-woeusbng.webp\" alt=\"\" width=\"494\" height=\"282\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/open-woeusbng.webp 494w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/open-woeusbng-300x171.webp 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/p>\n<h3>Step 2: Create Windows USB Installer via WoeUSB-ng<\/h3>\n<p>Firstly, you need to download the Windows ISO image or insert the CD\/DVD drive, plug in your USB stick (8GB+ is recommended).<\/p>\n<p>Then, launch WoeUSB-ng from start menu, select your ISO image or CD\/DVD drive and highlight the USB stick (click &#8220;Refresh&#8221;) if not in list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-39561\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-creation.webp\" alt=\"\" width=\"437\" height=\"531\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-creation.webp 437w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-creation-247x300.webp 247w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/p>\n<p>Before clicking the &#8220;Install&#8221; button, <b>backup your data in the USB stick<\/b>. It by default formats the drive into FAT, though you can select &#8220;NTFS&#8221; in options.<\/p>\n<p>After clicking &#8220;Install&#8221; and confirm in pop-up dialog, it will open a new small dialog indicates the installing process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-39563\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-burning.png\" alt=\"\" width=\"352\" height=\"198\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-burning.png 352w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woeusb-burning-300x169.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/p>\n<p>If everything goes OK, it should prompt &#8220;Installation Succeed&#8221; when done. Plug the USB stick in target machine and select boot it in BIOS or UEFI, and enjoy!<\/p>\n<h4>Create USB Windows Installer from command line<\/h4>\n<p>Running Linux without a desktop session? The tool also has command line options to do the job.<\/p>\n<p>Firstly, find out the USB stick device name (usually <code>\/dev\/sdb<\/code>) via command:<\/p>\n<pre>sudo fdisk -l<\/pre>\n<p>Then, run the command to create installer from iso image (run <code>woeusb -h<\/code> to get more options):<\/p>\n<pre>sudo woeusb --device \/PATH\/TO\/ISO \/dev\/sdb<\/pre>\n<p>And for BIOS boot, it&#8217;s better to add &#8216;&#8211;workaround-bios-boot-flag&#8217; to workaround BIOS bug that won&#8217;t include the device in boot menu.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woe-commandline.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-39564\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woe-commandline-600x345.webp\" alt=\"\" width=\"600\" height=\"345\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woe-commandline-600x345.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woe-commandline-300x173.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woe-commandline-768x442.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/woe-commandline.webp 957w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Uninstall WoeUSB-ng<\/h3>\n<p>To remove the application, open terminal and run the command:<\/p>\n<pre>sudo pip3 uninstall WoeUSB-ng<\/pre>\n<p>Then clear the shortcut icon via command:<\/p>\n<pre>sudo rm \/usr\/share\/applications\/WoeUSB-ng.desktop<\/pre>","protected":false},"excerpt":{"rendered":"<p>Want to create an USB installer for Microsoft Windows, but only has a Linux PC (or server)? Here&#8217;s how to do the trick in Ubuntu, Arch, Fedora, and their based systems, e.g., Linux Mint, Manjaro. WoeUSB-ng Today when I was installing Windows 7 on my 10 years old laptop, the first I tried is booting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":39556,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1581],"class_list":["post-39555","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-live-usb"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/39555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=39555"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/39555\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/39556"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=39555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=39555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=39555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}