2

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?

2 Answers2

2

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.

Cornelius
  • 9,653
0

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

DnrDevil
  • 1,478