Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

grubinst.exe is a console mode program to install GRUB4DOS boot code to the MBR or partition boot sector.

I downloaded it from GRUB4DOS project page, and I think its for 32 bit windows.

But I can run it in 64 bit ubuntu

$ ./grubinst.exe --version
grubinst version : 1.0.1
share|improve this question
up vote 3 down vote accepted

There is so-called binfmt support on Linux that allows passing of arbitrary binary file (e.g. Windows executables) executions to some Linux application that knows how to handle it (e.g. wine).

Also is a specially formatted binary that has ELF header and both Linux and DOS code: ELF (linux executable) header must be placed at start of file and DOS code must be started at position 0x100 (remember, COM is not PE, NE or MZ executable, it is just a piece of code), so there it is and ELF header redirects Linux file loader to Linux code that is placed after DOS'.

share|improve this answer

Do you have wine (or something similar) installed? Then that can be expected to work. Try

sudo update-binfmts --display
share|improve this answer
I uninstalled wine. grubinst.exe wont work any more, it says "run-detectors: unable to find an interpreter for ./grubinst.exe" But i can still run – user26163 Jan 26 '10 at 12:42

Perhaps because you have wine installed.

Wine runs a background daemon to allow windows .exe files to be run the same way that normal linux programs are run.

However, you would likely find that the program would still not be able to write to the MBR, simply because wine doesn't implement that sort of thing.

share|improve this answer
I do have wine installed, but i think to run it through wine, i should type "wine grubinst.exe" I used in ubuntu to write MBR of a external usb hard disk, and it boots. is also a program for windows, i think – user26163 Jan 26 '10 at 12:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.