『楼 主』:
grub for dos 新版对NTFS分区上的文件读取可能有问题
使用 LLM 解释/回答一下
以前因为某些原因,一直用的是 grub for dos 0.4.2(01/07/2007)。最近看到0.4.3正式版出来,于是更新了一下。
C盘用XP SP2格式化为NTFS,安装Windows后,使用boot.ini载入grldr,再用map --mem启动gz压缩的2.88M软盘映像文件。
现在发现,刚装好系统后(也就是C盘文件碎片很多的时候),启动g4d正常,加载软盘映像也没有报错,但是引导映像文件后经常出错。最常见的是ghost 8.2无法运行,提示一堆寄存器信息;甚至有一次引导某个映像文件的时候报找不到command.com,但引导另一个内容差不多的映像文件又能成功。
遇上这些问题,只要用Windows自带的“磁盘碎片整理”将C盘整理一下,再重启进grub引导,就能解决。或者换回上面提到的g4d旧版本,也能解决。
测试过0.4.3正式版和grub4dos.jot.com上下载的10/25/2007、10/26/2007共三个版本,都出现同样的问题。初步怀疑是新版的NTFS读取部分代码有问题,当文件不是连续存放时,读取的数据不正确。
另,再提一下g4d菜单快捷键的问题。现在的菜单快捷键,将第一项定义为0,第二项定义为1。这在程序员的思路看来很正确,我们这些用户也能慢慢习惯。但是如果我教别人如何使用菜单,就必须告诉他“你选菜单第一项,或是按快捷键0”,或是“你选第6项,或按数字键5”,很别扭,很不符合用户习惯。
开发团队能否再考虑一下,将快捷键从1开始排列,跟键盘上面的数字区顺序一致?
Last edited by Sense on 2007-11-4 at 08:35 PM ]
Previously, for some reason, I had been using grub for dos 0.4.2 (01/07/2007). Recently, I saw that version 0.4.3 was officially released, so I updated it.
The C drive was formatted as NTFS with XP SP2, and after installing Windows, I used boot.ini to load grldr, then used map --mem to boot a gz-compressed 2.88M floppy disk image file.
Now I found that just after installing the system (that is, when there are many file fragments on the C drive), g4d starts normally, and there are no errors when loading the floppy disk image, but it often has errors when booting the image file. The most common one is that Ghost 8.2 cannot run, and it prompts a bunch of register information; once, when booting a certain image file, it reported that command.com was not found, but booting another image file with similar content could succeed.
When encountering these problems, as long as I use the "Disk Defragmenter" that comes with Windows to defragment the C drive and then restart to enter grub for booting, the problem can be solved. Or reverting to the above-mentioned old version of g4d can also solve the problem.
I have tested version 0.4.3 official version and the versions downloaded from grub4dos.jot.com on 10/25/2007 and 10/26/2007, and all three have the same problem. I initially suspect that there is a problem with the code for reading NTFS in the new version. When the file is not stored continuously, the read data is incorrect.
In addition, let's mention the problem of the g4d menu shortcut keys. The current menu shortcut keys define the first item as 0 and the second item as 1. From the programmer's perspective, this is very correct, and we users can gradually get used to it. But if I teach others how to use the menu, I have to tell them "you select the first item of the menu, or press the shortcut key 0", or "you select the 6th item, or press the number key 5", which is very awkward and not in line with user habits.
Can the development team consider arranging the shortcut keys starting from 1 again, to be consistent with the order of the number keypad on the keyboard?
Last edited by Sense on 2007-11-4 at 08:35 PM ]
|