Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 grubinst_1.0.1_bin_win.zip, 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

3 Answers 3

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 bootlace.com 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 bootlace.com –  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 bootlace.com in ubuntu to write MBR of a external usb hard disk, and it boots. bootlace.com is also a program for windows, i think –  user26163 Jan 26 '10 at 12:22

Your Answer

 
discard

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