1

I want to create a Windows 10 bootable USB drive (or microSD in USB) through Ubuntu without thirdy party apps.

I tried dd, but it won't work, no boot.

I also tried formatting the device as FAT32 and copying the files, but that does not work anymore as one of the files from the ISO is larger than 4gb.

The answers on How can I create a Windows bootable USB stick using Ubuntu? all use third party apps or make me copy the files, which won't work anymore

Archisman Panigrahi
  • 25,210
  • 17
  • 90
  • 185
Guerlando OCs
  • 621
  • 7
  • 45
  • 85
  • 3
    *Officially* the only way to create proprietary Windows installation media is using the proprietary "media creation tool" from Microsoft which only works on (proprietary) Windows. The question you linked contains all the info available for how to do this using Ubuntu – Nmath Jul 05 '21 at 02:16
  • To boot in UEFI mode, you have to have install files in a FAT32 partition with esp,boot flags. It used to be that you could just extract ISO and have it boot in UEFI only mode. But Microsoft made the .wim file over 4GB and that does not fit on FAT32 partition. The Windows installer automatically splits the .wim file to make it work. Many older instructions are for the older smaller .wim file. https://askubuntu.com/questions/1274878/make-windows-10-bootable-usb-in-ubuntu & https://www.dedoimedo.com/computers/windows-10-usb-media-linux.html – oldfred Jul 05 '21 at 03:32
  • 1
    How do you decide if an app is third party? Ubuntu developers did not create dd either. Third party apps make Ubuntu what it is. – Archisman Panigrahi Jul 05 '21 at 03:42
  • @ArchismanPanigrahi I just meant something in a PPA or downloadable. Things in apt-get should be ok, but the less dependent method would be preferable – Guerlando OCs Jul 05 '21 at 03:45
  • You can modify this method to make a bootable Windows USB rather than booting it from HDD: https://askubuntu.com/a/1337982/43926 It is toward the bottom of your link. You can copy the Windows files to a NTFS partition, no need for FAT32 – C.S.Cameron Jul 05 '21 at 04:18
  • 1
    Did you mean "with only free software". Then change it. – Albert van der Horst Jul 13 '21 at 14:16
  • Try to follow this link https://itsfoss.com/bootable-windows-usb-linux/#first-method. Note: I can't comment yet, so I added this to answer C: – abeciaj Jul 14 '21 at 00:47
  • @abeciaj this does not work anymore since a file larger than 4gb can't be copied to a FAT drive, and the windows iso has a file larger than 4gb – Guerlando OCs Jul 14 '21 at 20:15
  • Does balena etcher fits your needs ? if it does, i will post an easy answer to your question. – CrazyTux Jul 16 '21 at 20:03
  • You can follow the instructions at [this link](https://help.ubuntu.com/community/Installation/iso2usb/diy/windows-installer-for-big-files) and that way do it with native tools. That procedure is automated in [mkusb](https://help.ubuntu.com/community/mkusb). The choice is yours :-) – sudodus Jul 16 '21 at 20:06

4 Answers4

1

A simple 'Do it yourself' method

A rather simple 'Do it yourself' method is described at the following links. You can create Windows install drives that work in UEFI mode as well as in BIOS mode,


This 'Do it yourself' method is for you

  • if you have a Windows iso file that contains a file, install.wim, with a size > 4 GiB, or
  • if you don't like PPAs, or
  • if you want to 'Do it yourself' and understand the details

Implemented in mkusb version 12.5.6 and newer versions

This 'Do it yourself' method is implemented in mkusb-tow and available via mkusb version 12.5.6 (mkusb-dus) and mkusb-plug.

You get/update this new version of mkusb from the mkusb PPA via the following commands

sudo add-apt-repository universe  # this line only for standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install mkusb mkusb-plug

sudo apt-get install usb-pack-efi  # only for persistent live drives
sudodus
  • 45,126
  • 5
  • 87
  • 151
0

To my knowledge there is no way to make the USB bootable natively

There are a lot of great apps that are free, or code one your self

Since this in the ubuntu exchange See if this helps https://help.ubuntu.com/community/Installation/FromUSBStick#Unetbootin

-2

On linux, you can use the dd tool on command line (for more info $ man dd) or the Disks tool to restore a given OS iso to the disk, which by default should be bootable.

For Disks aka gnome-disk-utility, search for the app, it comes preinstalled in most linux distros. Select the disk you want to make bootable (be careful not to select the current main os or any other hard drive that may contain some important stuff). From the top right menu, select Restore Disk Image and select the iso of the os to make bootable.

That should make a bootable with almost no thirdparty apps.

Ricoh
  • 1
  • 3
  • 1
    This cloning method that you describe works with most Linux distros, because they are distributed with *hybrid* iso files. But the current Windows iso files are *not* hybrid iso files, so this method does not work. – sudodus Jul 17 '21 at 21:03
  • this does not work with Windows – Guerlando OCs Jul 18 '21 at 01:03
-5

I could understand if my answer is not accepted but :

You should try Ventoy:

  • You install it on your USB key ( few MB )
  • Then you can alsmot any iso ( linux , Windows etc...) on the key
  • And ventoy will let you choose the iso to boot

https://www.ventoy.net