I recently installed Ubuntu on my Asus T100TAF. Alas, I rushed into it, not knowing no one had a fix for the sound yet. I'm trying to get back to windows by following this guide: http://onetransistor.blogspot.com/2014/09/make-bootable-windows-usb-from-ubuntu.html

When I get to step 3, which is entering this into the terminal:

sudo grub-install --target=i386-pc --boot-directory="/media/<username>/<drive_label>/boot" /dev/sdX

I get this error:

grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.

Could anyone tell me what's gone wrong, and help me complete this step?

  • Why not just follow askubuntu.com/questions/289559/… – DnrDevil Feb 20 '16 at 15:39
  • @DnrDevil , I tried that, but the WinUSB link seems to be broken. – Ml864 Feb 20 '16 at 15:45
  • On 14 you have to install the .deb first – DnrDevil Feb 20 '16 at 15:54
  • Welcome to AU ! You want to make a Win bootable USB drive, rather than a dual boot. Not sure you are "on-topic" here.... Either way and although you might eventually get some help here, yr best bet is to try the "General Help" section of the Ubuntu Forum at ubuntuforums.org. --- In case making a dual boot instead crosses yr mind, you should know that it is more usual to install a Linux Ubuntu alongside an existing M$Win, rather than the opposite. Make sure to state you're dealing with BIOS-MBR rather than GPT - UEFI as the two config's protocols are different from one another. ;-) – Cbhihe Feb 20 '16 at 15:55
  • @chhihe , I am not trying to dual-boot ubuntu with windows. I am trying to replace ubuntu with windows. – Ml864 Feb 20 '16 at 16:02

I have reasons to believe that your Ubuntu installation is in UEFI mode. Are you sure you want to make a MBR bootable USB drive of Windows and install Windows in non-UEFI mode?

Anyway, for your situation, the answer is right on the page with the tutorial:

'modinfo.sh' doesn't exist

grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.

Install the grub-pc-bin package with sudo apt-get install grub-pc-bin and run the grub-install command again.

But if you want to make an UEFI bootable USB just copy Windows files from mounted image to a FAT32 formatted USB drive.


I would use WinUsb to accomplish this.

You first you need the .deb for 14.04 here(64bit) or 32bit here

Then follow the install guide for winusb here

Then follow how to install bootable windows on ubuntu

  • installed winusb and it shows up in my applications, but it will not open and the commands for the terminal do not work. I am running Ubuntu 15.10 with Xubuntu – Ml864 Feb 20 '16 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.