Re: [Solved] Install Grub4dos to PBR from Linux
Posted: 22. Nov 2016, 18:13
The package contains several files which, according to the documentation, should be executable on both DOS/Windows and on Linuxwestms wrote:Correct.gapan wrote:Isn't grub.exe a DOS/Windows executable? How would it ever work on linux?
. . .
If one look at the beginning of the file grub.exe, one can see that it starts with the ASCII text 'MZ'. This corresponds to the magic number '4D 5A' (base 16) for executable files on DOS and Windows 9x.
There is a file grub.pif in the package, which is an information file for a Windows program grub.exe. This supports the assumption that it is a file in EXE format. If it is an EXE file, the application example in the slackbuild file and also examples in the online documentation are incorrect.

And perhaps this may be whyEXE format files for DOS and Windows 9x are 16-bit applications, which do not run directly on 64-bit hardware, to my knowledge.


Grub4dos is basically just an extension of Classic Grub; but those extensions make it a very valuable tool for executing all kinds of bootable images (HD, CD, floppy, etc.). So one can have, for example, a USB stick containing images of Live CD's (SalixLive, perhapsI did not realize in the description by the questioner why grub4dos is needed as bootloader on the mentioned partition. If there is an operating system installed at all, Lilo can boot it as well.
