The following is a quote from Budian on 2003-11-22 4:39:25:
I saw that there is a boot directory in the file list of the boot disk, and there is probably a stage2 file in it. If you use grub.exe, you can avoid using stage2. I think there should be a tool to compress grub.exe. In this way, it may occupy less space. Of course, it is assumed here that the practice of entering DOS first and then using grub.exe will not affect the entire system.
Yes, GRUB.EXE can be compressed to more than 50KB with UPX compression (I don't know if there is a way to compress the stage2 file), but it has several disadvantages:
1: Once you enter GRUB for DOS from DOS, you can't return to DOS and continue booting. And if you use GRUB.EXE to reload the boot disk and use the boot command to start, it will cause a loop (that is, start from the boot disk again, and GRUB.EXE usually can't reload itself repeatedly, otherwise it will cause an error or crash. I don't know if this counts as a bug?);
2: If you want to add menu items in CONFIG.SYS (at least two lines, namely booting from the hard disk and from the CD-ROM) to load, on the one hand, it may cause too many and messy options. More importantly, GRUB for DOS has this bug: it can't use the config-file option in CONFIG.SYS to specify the corresponding menu.lst file to be loaded, because the contents of the two menu.lst files needed are different, and when loading GRUB.EXE in CONFIG.SYS, it can't be done (because of that lowercase letter reason. I don't know if GRUB.EXE can be modified so that a capital letter option can also achieve the function of --config-file, such as -C);
3: If you want to use a self-built menu to call GRUB.EXE to select the project to be started during or after the operation of AUTOEXEC.BAT, it is also impossible, because at this time programs like EMM386 may have been loaded in CONFIG.SYS, but GRUB.EXE can't run in this environment;
4: If you want to load GRUB.EXE before DOS starts, it is also impossible unless there is a special boot sector file for guiding GRUB.EXE to call GRUB.EXE (just like the stage1 file for guiding stage2 in GNU GRUB, or like the VLOADER.BIN file for guiding VMEMDSK.BIN file in vfloppy).
Because of these reasons, GRUB for DOS currently seems to be unable to be actually applied to the DOS boot disk for selecting whether to boot from a floppy disk, hard disk or CD-ROM, but GNU GRUB can.
Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
