Create windows to go USB from Ubuntu [closed]

I'm addressing the part of your question for having a Windows Installation on a USB that you can plug into any computer, and run Windows. You also wanted to do this from you Ubuntu OS without any special tools. The applications used are available from the Repository.

  • Virtualbox
  • Gparted

You can do this by installing Virtualbox:

$ sudo apt install virtualbox

Follow the GUI to create a Windo Windows 10 Machine.

Connect your Windows 10 ISO to the virtual machine and install Windows 10.

Make sure you the virtual machine is not larger than your USB drive.

Install Windows 10 to the VM.

Then go to the folder of the Windows 10 machine and run this to create an image of the vdi file.

$ VBoxManage clonehd ["Windows 10.vdi"] ["win10.img"] --format RAW

The first parameter is the name of your windows vdi file (not including the brackets). The second parameter is the name you decide to call the image file.

Now run this dd command to write the image to your pendrive.

$ sudo dd if=[win10.img] of=[/dev/sdc] bs=4M status=progress

Again, the names in the brackets are a variable. Replace those names with your actual file and device on your system.

Us Gparted to fix the integrity of your created Pendrive.

$ sudo apt install gparted

It's important to have your Windows Installation drive smaller than your destination pendrive. When the company finishes you will have unallocated space, the difference between the larger drive. You can fix this by running Gparted to resize your Windows Installed partition.


It seems as though there is no WinToUsb like program for Linux so the only way to make a portable Windows is by creating one in a Windows virtual box or on Windows. I decided to install Windows 10 on part of my disk which I resized using the Gpart editor to keep my Ubuntu data. If I decide to make a portable USB I'll use either Rafus or WinToUsb, Rafus can only create a portable USB if your running 8.1+ and WinToUsb is avaliable on most windows os


I have Ubuntu installed in a USB boot drive (actually an SSD in an external box, that can be connected via USB 3 as well as eSATA) such that it can boot from both BIOS and UEFI. It is portable between computers.

In this Ubuntu I have installed VirtualBox, and in VirtualBox I made a virtual machine, where I have installed Windows 10. It works well for me and provides a system where also Windows is portable.


Edit1 : I add a screenshot describing how to connect the virtual machine to an iso file, which makes it possible to boot from it. After booting the virtual machine: press F12 to get a boot menu, where you can select virtual drive to boot from (in this case the virtual internal drive 'w10.vdi' or the virtual optical disk 'Win10_1607...').

choose _virtual_optical_disk

Edit 2: @KarlMorrison suggests to use Windows in the virtual machine as a tool to install Windows into an external drive,

You are actually half-way there with this answer. Install VM on Ubuntu -> Install Win10 in VM -> Boot Win10 in VM -> Install WinToUSB -> Use WinToUSB to install Win10 to External USB