![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-11-25 08:32 |
47,820 topics / 349,938 posts / today 0 new / 48,298 members |
| GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » Troublesome problems with GRUB, everyone consult together |
| Printable Version 57,956 / 280 |
| Floor271 Wengier | Posted 2004-04-23 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
The following is quoted from 不点's post on 2004-4-23 15:22:32: The debugging information itself is indeed very useful, but if it is only like this then it is very, very unattractive, and it will make users think it is GRUB crash information or a major BUG. I think some explanatory text could be added before this debugging information, and that should be much better, for example: GRUB: Unknown parameter! Debug information: |
|
| Floor272 不点 | Posted 2004-04-23 00:00 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
This suggestion is very good.
As for parameters like /y and the like, other than the method mentioned above of “adding a space and slash at the end of the command line,” is there any better method? Could you give your opinion? |
|
| Floor273 Wengier | Posted 2004-04-23 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
The following is quoted from 不点 at 2004-4-23 15:22:32: I took a look, and the command line will not be like the above, namely: --config-file=(hd0,0)/boot/grub/menu.lst/y /p /d /k AUTOEXEC but rather like this: /y --config-file=(hd0,0)/boot/grub/menu.lst /d /k AUTOEXEC That is to say, /y will be attached directly to GRUB.EXE, namely: GRUB.EXE/y --config-file=xxx /d /k AUTOEXEC And when SHELL normally uses COMMAND.COM, it takes this form: COMMAND.COM/y /d /k AUTOEXEC For example, when it is /p /e:640, then the overall command line is: COMMAND.COM/y /p /e:640 /d /k AUTOEXEC And this is correct, so it does not really count as an MS BUG. It's just that when COMMAND.COM is replaced with GRUB.EXE, when using Step-by-step mode, the overall command line becomes this form: GRUB.EXE/y /d /k AUTOEXEC So I think that if the /y parameter attached directly after GRUB.EXE is ignored, and the space and slash after the --config-file parameter are also ignored, then it should work, right? |
|
| Floor274 不点 | Posted 2004-04-24 00:00 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
I uploaded grub.exe and dosstart.S, try them and see whether they work:
http://ipdown.com/grub4dos/ Method: change /y and the characters after it (up to before “--”) all into spaces, then change the space in the first “space-slash” pair into a carriage return. It should work. Because the change is not big, I don't want to make a pre7 right now. |
|
| Floor275 Wengier | Posted 2004-04-24 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
This time GRUB's display information really looks much better:
Microsoft(R) MS-DOS 7.1 (C)Copyright Microsoft Corp 1981-1999. C:\>grub.exe abc GRUB: Unrecognized command line parameters. Usage: GRUB --config-file=FILE The options are case-sensitive, you must use lower-case letters. Example: GRUB --config-file=(hd0,0)/boot/grub/menu.lst Hexdump of command-line buffer in PSP: 0080: 04 20 61 62 63 0D 00 00 00 00 00 00 00 00 00 00 abc. 0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 C:\> But haven't parameters such as --config-file already become case-insensitive (for example, --CONFIG-FILE already works now)? Why then does it still say above, "The options are case-sensitive, you must use lower-case letters"? |
|
| Floor276 不点 | Posted 2004-04-24 00:00 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
It's like this: although on the surface it seems to be case-insensitive here, in fact case still matters. So I still recommend using lowercase. There are two reasons:
First, as a standalone program, grub uses lowercase for filenames on FAT-family systems; only long filenames may possibly use uppercase.【Also, by the way, GRUB cannot open filenames containing spaces, and Chinese filenames are also not easy to open】 Second, in our programming this was only a remedial measure aimed at config.sys converting all lowercase to uppercase. The algorithm is like this: first test whether the string “--config-file=” is entirely lowercase. If it is, then the filename after it is case-sensitive, that is to say, uppercase will not automatically be converted to lowercase. If there are uppercase characters in --config-file=, then the entire command line is converted to lowercase first, and only then handed over to the stage2 code. From the user's point of view, using lowercase “--config-file=” is always safe, so it was made mandatory. In other words, uppercase can be regarded as an undocumented feature. Most people do not need to understand this detail. |
|
| Floor277 bean123 | Posted 2004-05-01 00:00 |
| 中级用户 Posts 34 Credits 214 | |
|
A small suggestion about grub: when using bootgrub as the MBR, it seems that the grldr file can only be placed in the first primary partition. Could it be made more general, so that it searches the root directories of each primary partition in order, and uses the first grldr it finds?
|
|
| Floor278 不点 | Posted 2004-05-01 00:00 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
It seems that currently it is already like that. If not, then that is a BUG.
The program in the first sector of BOOTGRUB can only find those sectors containing an NT bootsector. They can be FAT12, FAT16, FAT32, or NTFS, but whichever type it is, it must contain a Microsoft-formatted boot sector. Otherwise, that partition will be skipped and the next one searched. If the second, third, and fourth sectors of BOOTGRUB are placed in the three sectors immediately after the MBR, then in that case it can find FAT12, FAT16, and FAT32 partitions processed by any formatting software, as well as NTFS partitions formatted by Microsoft. -------------- After writing this, I found that I had not correctly understood what brother bean123 meant. Indeed, at present it searches the first primary partition, and if the format of that partition is valid【that is, it is FAT12, FAT16, FAT32, or Microsoft-formatted NTFS】, then regardless of whether that partition contains GRLDR, the program will hand control to the corresponding boot program. That is to say, the program assumes that the first valid partition it finds contains the GRLDR file. This really can be improved. Thank you, brother bean123. ------------------------------------ Also, brother bean123, do you have a release plan? I have been waiting all along. After you release, I will only submit patches. Just like Linux versions, with people such as A.C. patching the kernel. |
|
| Floor279 bean123 | Posted 2004-05-01 00:00 |
| 中级用户 Posts 34 Credits 214 | |
|
WinGrub is basically finished. I am testing it now, and it can be released very soon.
|
|
| Floor280 不点 | Posted 2004-05-01 00:00 |
| 银牌会员 Posts 1,115 Credits 2,491 | |
|
All right, after releasing it, don't forget to provide the news to Chinese and English news sites. At present, mainly only people who know Chinese know about grub4dos. This is a major defect.
There is never any need to wait for my patching plans; I myself am very casual and have no timetable. ---------------------------------- Supplement: These two news sites below seem quite good: http://slashdot.org/ http://osnews.com/ |
|
| Floor281 lnxsun | Posted 2004-06-18 00:00 |
| 初级用户 Posts 1 Credits 108 | |
|
Personally I feel that after grldr came out, grub for dos gained a whole new field of application, because it is safe and convenient.
Now grub for dos already has floppy and hard disk map; if it could also map iso, then the grub for dos project would gain even wider application, for example CD installation, and CD editions of linux could also be used. |
|
| Prev 1 … 16 17 18 19 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |