Home » Questions » Computers [ Ask a new question ]

Why can i run grubinst.exe in 64 bit ubuntu

Why can i run grubinst.exe in 64 bit ubuntu

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

Asked by: Guest | Views: 57
Total answers/comments: 2
Guest [Entry]

"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'."
Guest [Entry]

"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."