How to make a bootable USB and install Windows 10 using only Linux?

0

So I want to make a dual boot installation with Windows 10 and Ubuntu. In order to do that, I need to install Windows 10 first. The problem is that when I create an installation USB with a Windows 10 image (taken from here) and try to boot from it, I get the following error:

error: unknown filesystem
Entering rescue mode...
grub rescue>

I tried creating an installation USB using dd if=/path/to/windows/installer/image.iso of=/dev/sdd. I also tried woeusb utility.

The questions are:

  1. How do I properly create a Windows 10 USB installer and boot from it, provided that I don't have access to a Windows machine?
  2. Why do I even get a message from grub? My current understanding is that when you boot from an USB, then whatever bootloader that is on the USB should be used.

wrwt

Posted 2019-05-23T22:27:19.653

Reputation: 475

try using https://rufus.ie/

– Sickest – 2019-05-23T23:25:47.200

Re: 2. Yes, correct. It means the media isn't properly made. MKUSB works for the newer Microsoft ISOs. – None – 2019-05-23T23:59:30.653

Answers

1

First, you need to make a partition on your USB and format it in an appropriate filesystem, for Windows NTFS would work. Probably it's a good idea to use parted for creating the disk label anew (msdos or gpt)

Install the tool for working with NTFS and format the newly created partition:

sudo apt-get install ntfs-3g
sudo mkfs.ntfs /dev/sdXX -o 

You can't use dd for writing Windows on USB because it's ISO is not isohybrid. So the only option that I'm aware of is using woeusb

TaPO4eg3D

Posted 2019-05-23T22:27:19.653

Reputation: 101

If you still experience troubles with USB maybe this will be a good workaround for you - https://superuser.com/questions/457640/how-can-i-install-windows-7-without-dvd-or-usb-on-linux/1124958#1124958

– TaPO4eg3D – 2019-05-24T06:18:40.337