|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『楼 主』:
[下载]grub4dos用内存仿真磁盘,请测试
使用 LLM 解释/回答一下
用磁盘文件仿真磁盘的一个主要缺陷是,要求该磁盘文件必须连续。这个连续性的要求是很苛刻的,例如 Linux 的 ext2/ext3 分区是做不到的。把磁盘映象拷贝到扩展内存的顶端来仿真,就避免了这一缺陷。
用磁盘介质仿真的优点:可以部分地支持 Win98 等保护模式的操作系统,而新的 memdrive 就不支持了。用旧的磁盘介质的仿真方法,可以支持任意大小的映象文件(最大2000GB),而新的 memdrive 受系统中所拥有的物理内存容量的限制。
用 memdrive 的优点:可以支持非连续的映象文件,并且支持 gzip 压缩的映象。
要想利用新的 memdrive 仿真功能,还需要满足以下限制条件。
1. 主板 BIOS 支持 int15/EAX=e820h 功能调用。不支持该功能的主板,将不能使用 memdrive。一些旧的笔记本电脑可能受影响。
2. 系统物理内存必须超过 64M,memdrive 不使用 64M 以内的内存来仿真磁盘,它只使用高于 64M 的内存。所以,如果只有 64M 内存,那么就无法使用 memdrive 了。
用 RAM 内存来仿真磁盘: memdrive
download the binary build(2005-01-12, test only) here:
ftp://ftp.linuxeden.com/tinybit/grub.exe
ftp://ftp.linuxeden.com/tinybit/grldr
ftp://ftp.linuxeden.com/tinybit/grub4lin
or here:
http://grub.linuxeden.com/wakka.php?wakka=UploadFile/files.xml&action=download&file=grub_test.tar.gz
Example:
map --mem (...)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
memdrive 比 syslinux 中 memdisk 的功能要强大一些。syslinux 中的 memdisk
只能仿真一个磁盘,并且必须从该仿真盘启动。我们的 memdrive
支持多个磁盘仿真,甚至其中可以混杂着旧的那种利用磁盘介质的非mem方式的仿真,而且被仿真的磁盘不一定作为启动盘,很灵活。
One major drawback of emulating a disk using a disk file is that the disk file must be contiguous. This requirement for continuity is quite strict; for example, the ext2/ext3 partitions in Linux cannot do this. Emulating by copying the disk image to the top of extended memory avoids this drawback.
Advantages of emulating with disk media: It can partially support operating systems like Win98 in protected mode, while the new memdrive does not. The old method of emulating with disk media can support image files of any size (up to 2000GB), while the new memdrive is limited by the amount of physical memory available in the system.
Advantages of memdrive: It can support non-contiguous image files and supports gzip-compressed images.
To utilize the new memdrive emulation function, the following restrictions need to be met.
1. The motherboard BIOS supports the int15/EAX=e820h function call. Motherboards that do not support this function cannot use memdrive. Some old laptops may be affected.
2. The system physical memory must exceed 64M. memdrive does not use memory within 64M to emulate the disk; it only uses memory above 64M. So, if there is only 64M of memory, memdrive cannot be used.
Emulating a disk with RAM memory: memdrive
download the binary build(2005-01-12, test only) here:
ftp://ftp.linuxeden.com/tinybit/grub.exe
ftp://ftp.linuxeden.com/tinybit/grldr
ftp://ftp.linuxeden.com/tinybit/grub4lin
or here:
http://grub.linuxeden.com/wakka.php?wakka=UploadFile/files.xml&action=download&file=grub_test.tar.gz
Example:
map --mem (...)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
memdrive is more powerful than memdisk in syslinux. memdisk in syslinux can only emulate one disk and must boot from that emulated disk. Our memdrive supports emulating multiple disks, and even can mix the old non-mem way of emulating with disk media, and the emulated disks do not necessarily have to be boot disks, which is very flexible.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2005-1-12 00:00 |
|
|
blue777
中级用户
  
积分 452
发帖 134
注册 2004-6-16
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
太好了!顺便问下不点兄:Wengier的超级MS-DOS 7.10 BootDisk是 GRUB0.595引导的,带有stage1、stage2的那种,如何制作出这种引导的启动盘?或者有没有办法在软盘上用GRUB0.95来做?我一直试图联系Wengier向其咨询,可总联系不上,盼论坛高手给予答复!
Great! By the way, ask Brother Buodian: Wengier's Super MS-DOS 7.10 BootDisk is bootstrapped by GRUB 0.595, with the kind of stage1 and stage2. How to make such a bootable startup disk? Or is there a way to use GRUB 0.95 on a floppy disk? I have been trying to contact Wengier to consult, but I can't always get in touch. I hope the forum experts can give an answer!
|
|
2005-1-12 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Wengier之所以采用很老的 0.5.95 版本,我猜想,主要是因为这个版本的体积小,适合于放在软盘上。如果你的软盘空间不是很紧张,建议用最新的 0.95 版本。
首先把 boot/grub 目录拷贝到 软盘的该目录下(也就是说软盘上存在 /boot/grub 目录),然后,如果空间紧张的话,删去与 FAT 无关的那些个stage1.5文件,进入 grub ,在 grub> 提示符下敲入
root (fd0)
setup (fd0)
这就完成了,这张软盘就可以引导 grub 了。
不过,以后假如删掉了 stage2 文件,即使后来又拷贝一个过来,恐怕也不能启动了,必须重复上面的步骤才能再制作一个启动盘。
---------------------------
另外,一个更简单的办法是,你直接下载
ftp://ftp.linuxeden.com/tinybit/qlinux_setup.img
将它制作成软盘。
这个映象是一个 FAT12 格式的,你只要复制任意一个 GRLDR 文件到它的根目录,就可以引导 GRUB 了。除了 GRLDR之外,其它所有的文件和子目录,都可以通通删去。也就是说,整个软盘只要有一个 GRLDR 在根目录就行了。软盘的第一扇区不是 DOS的引导程序代码,而是 GRLDR 的引导代码,在执行时,这个引导程序不去寻找 IO.SYS 文件,而是要寻找 GRLDR 文件。
Wengier uses the very old version 0.5.95 mainly because this version is small in size and suitable for placing on a floppy disk. If your floppy disk space is not very tight, it is recommended to use the latest version 0.95.
First, copy the boot/grub directory to the corresponding directory on the floppy disk (that is, there is a /boot/grub directory on the floppy disk). Then, if space is tight, delete the stage1.5 files that are not related to FAT. Enter grub, and at the grub> prompt, type
root (fd0)
setup (fd0)
This is done, and this floppy disk can boot grub.
However, in the future, if the stage2 file is deleted, even if a new one is copied later, it may not be able to start. The above steps must be repeated to make a bootable disk again.
---------------------------
In addition, a simpler way is that you directly download
ftp://ftp.linuxeden.com/tinybit/qlinux_setup.img
and make it into a floppy disk.
This image is in FAT12 format. You only need to copy any GRLDR file to its root directory, and you can boot GRUB. Except for GRLDR, all other files and subdirectories can be deleted completely. That is to say, the entire floppy disk only needs to have a GRLDR in the root directory. The first sector of the floppy disk is not the DOS boot program code, but the boot code of GRLDR. When executed, this boot program does not look for the IO.SYS file, but looks for the GRLDR file.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2005-1-12 00:00 |
|
|
blue777
中级用户
  
积分 452
发帖 134
注册 2004-6-16
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
谢谢不点兄的认真详细讲解,祝不点兄GRUB研究项目更进一层楼!也祝中国dos联盟成为世界范围的专业联盟!
Thanks to Brother Budian for the serious and detailed explanation. Wish Brother Budian's GRUB research project to make further progress! Also wish the China DOS Union to become a professional union in the worldwide scope!
|
|
2005-1-13 00:00 |
|
|
pierrexqw
初级用户
 
积分 121
发帖 10
注册 2004-11-19
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
呵,已经做好这个功能啦~:)
Hehe, this function has already been done~ : )
|
|
2005-1-16 00:00 |
|
|
coooooolee
初级用户
 
积分 126
发帖 7
注册 2004-1-1
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
不点老弟:最近研究ghost 8.0,想利用ghost8.0中的网络影射功能完成网络备份,因为我这里的机器很多,配置比较杂,各种各样的网卡都有,所以呢就想把ghost8.0种所包含的dos网卡驱动都整合到一张启动盘里面去,然后刻录到光盘上,现在有一个问题无法解决:就是ghost8.0的网卡自动检测功能运行完毕以后要写盘,而光盘是只读的,最开始的时候想使用ramdisk来解决这个问题,但是还是有一些技术问题解决不了,后来在网上查找,发现可以利用grub+memdisk可以实现这个功能,可是老兄年纪有些大了,脑子有些不太灵光,搞了许久也没有弄得太明白,现在我的问题是:如何使用Easyboot调用grub,然后再调用memdisk?通过Easyboot启动grub需要调用那一个文件?这个文件必须放在光盘的根目录下吗?Easyboot调用grub的时候是非模拟方式吗?希望老弟能给一些提示。万分感谢。
Bu di Lao Di: Recently, I've been researching Ghost 8.0 and want to use the network mapping function in Ghost 8.0 to complete network backups. Since I have many machines here with various configurations and all kinds of network cards, I thought about integrating all the DOS network card drivers included in Ghost 8.0 into a single bootable disk and then burning it to a CD. Now there's a problem I can't solve: after the network card automatic detection function of Ghost 8.0 finishes running, it needs to write to the disk, but the CD is read-only. At first, I thought of using ramdisk to solve this, but there were still some technical issues I couldn't solve. Later, I found on the internet that I can use grub + memdisk to achieve this function. But I'm getting a bit old and my brain isn't very sharp. I've been working on it for a long time and still haven't fully understood it. Now my question is: How to use Easyboot to call grub and then call memdisk? Which file needs to be called to start grub through Easyboot? Does this file have to be placed in the root directory of the CD? When Easyboot calls grub, is it in non-emulation mode? I hope Lao Di can give some hints. Thanks a lot.
|
|
2005-2-6 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
老兄过年还在干活,令人敬佩。先祝新年快乐。
我先说明,我不曾了解过 easyboot 这个工具,刚才搜索了一下,才知道它是一个光盘制作工具。我想,您大概是想要一个能够从光盘启动 grub 的方法吧。
第一种办法,用 bootable cdrom no-emulation mode 这一规范,来制作启动盘,需要用到随 grub一起发行的stage2_eltorito 文件。这种方法在 grub 的联机手册以及info帮助手册中有详细说明,但我没有研究过,所以,我无法在此详说。
第二种办法,用光盘中的软盘映象的方法,首先启动一个 DOS,在 autoexec.bat 中加入 grub.exe 就可以启动 GRUB 了。这里的软盘映象,可以直接采用 win98 的启动软盘(删掉一些多余的文件,可以节约空间)。您也可以下载这个文件
ftp://ftp.linuxeden.com/tinybit/qlinux_setup.img
这是个软盘映象,将里面的文件全部删除,然后拷贝一个最新的 grldr 文件进去,就成为一个能够直接引导 GRUB 的软盘了。建议你采用后者。
我刚刚制作了一个新的 grub for dos, 在这里:
ftp://ftp.linuxeden.com/tinybit/grub_for_dos-0.4.0pre.tar.gz
这个 0.4 的版本支持您要的 memdrive 功能。看看里面的 readme 文件,其中有举例说明。
另外,您提出的问题是如何在 GRUB 中调用 memdisk,关于这一点,网络上也有文章,下面是我搜索到的一个举例:
kernel /boot/grub/memdisk c=32 h=8 s=36 floppy
initr /boot/grub/7200.zip
boot
在 GRUB 中执行上述三条命令就可以从该软盘映象启动了,
其中 c 表示柱面数,h 表示磁头数,s 表示扇区数
7200.zip 就是软盘映象文件本身。memdisk 是 syslinux 中的一个文件,网络上可以搜索到它,下载用了就行。
希望这些能够帮助解决您的问题。
Dude, still working during the New Year, that's admirable. First, I wish you a happy new year.
Let me make it clear. I didn't know about the easyboot tool before. I just searched and found out it's a CD - making tool. I think you probably want a method to boot GRUB from a CD.
The first method is to use the specification of bootable cdrom no - emulation mode to make a bootable disk, and the stage2_eltorito file that comes with GRUB is needed. This method is described in detail in GRUB's online manual and info help manual, but I haven't studied it, so I can't explain it in detail here.
The second method is to use the floppy image in the CD. First, boot into a DOS, and add grub.exe to autoexec.bat to start GRUB. The floppy image can directly use the Windows 98 boot floppy (delete some redundant files to save space). You can also download this file
ftp://ftp.linuxeden.com/tinybit/qlinux_setup.img
This is a floppy image. Delete all the files in it, and then copy the latest grldr file into it, and it becomes a floppy that can directly boot GRUB. It's recommended that you use the latter.
I just made a new grub for dos, here:
ftp://ftp.linuxeden.com/tinybit/grub_for_dos-0.4.0pre.tar.gz
This version 0.4 supports the memdrive function you need. Look at the readme file in it, and there are examples explained.
In addition, the problem you raised is how to call memdisk in GRUB. Regarding this, there are also articles on the network. The following is an example I found by searching:
kernel /boot/grub/memdisk c=32 h=8 s=36 floppy
initr /boot/grub/7200.zip
boot
Executing the above three commands in GRUB can start from this floppy image.
Here, c represents the number of cylinders, h represents the number of heads, s represents the number of sectors
7200.zip is the floppy image file itself. memdisk is a file in syslinux, which can be searched on the network and downloaded for use.
Hope these can help solve your problem.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2005-2-7 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Dear Tinybit,
I have tested your memdrive feature.
It can boot from memdrive floppy but not from a memdrive harddisk.
Have you been successful in mapping a bootable partition image file into (hd0) and boot from it?
If yes, could you give an example about how it is to be done?
亲爱的 Tinybit,
我已经测试了你的内存盘功能。它可以从内存盘软盘启动,但不能从内存盘硬盘启动。你是否成功地将可引导的分区镜像文件映射到(hd0)并从它启动过?如果成功了,你能给出一个关于如何做到的示例吗?
Dear Tinybit,
I have tested your memdrive feature.
It can boot from memdrive floppy but not from a memdrive harddisk.
Have you been successful in mapping a bootable partition image file into (hd0) and boot from it?
If yes, could you give an example about how it is to be done?
|
|
2005-2-8 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Dear Tinybit,
Another thing. Could you add ntfs support into grldr/grub.exe/grub4lin in your new build?
Please give us a link for download.
Thanks a lot!
亲爱的 Tinybit,
还有一件事。你能在你新构建的grldr/grub.exe/grub4lin中加入ntfs支持吗?
请给我们一个下载链接。
非常感谢!
|
|
2005-2-8 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Dear Tinybit,
It seems that ntfs support is built in. But it seems to relate to the option --mem
It runs it from QEMU with a (hd0,0) in NTFS partition setup with grldr.
On grldr command line, it shows:
map .... (fd0)
as successful
but
map --mem .... (fd0)
with an error message: error 1: filename must be an absolute name or blocklist.
What happens?
亲爱的Tinybit,
似乎NTFS支持是内置的。但似乎与--mem选项有关。
它通过QEMU运行,在NTFS分区设置了(hd0,0)并带有grldr。
在grldr命令行上,显示:
map .... (fd0)
成功
但
map --mem .... (fd0)
出现错误消息:error 1: filename must be an absolute name or blocklist.
发生了什么?
Dear Tinybit,
It seems that ntfs support is built in. But it seems to relate to the option --mem
It runs it from QEMU with a (hd0,0) in NTFS partition setup with grldr.
On grldr command line, it shows:
map .... (fd0)
as successful
but
map --mem .... (fd0)
with an error message: error 1: filename must be an absolute name or blocklist.
What happens?
|
|
2005-2-8 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
> Have you been successful in mapping a bootable partition image file into (hd0) and boot from it?
不,partition image file 不可以被 map,只有 whole drive image 才可以被 map。
map --mem (...)/hda.img.gz (hd0)
map --hook
chainloader (hd0)+1
boot
例子文件 hda.img.gz 可以从 ftp://ftp.linuxeden.com/tinybit/ 下载得到。这个 hda.img.gz已经经过了成功的测试。请同时下载刚刚更新的 grub.exe, grldr 和 grub4lin 文件(在上述相同的FTP网址,文件日期是 2月 8 日的),以便测试您所提到的 NTFS 的问题。这些文件含有调试信息,测试时,请贴出 map --mem 命令的输出结果。
另外,你的硬盘上有几个 GRLDR?会不会你调用的是旧的 GRLDR?请将所有硬盘上的所有的 GRLDR 文件全部删除,然后拷贝最新的 GRLDR 进去,再做测试。
> Have you been successful in mapping a bootable partition image file into (hd0) and boot from it?
No, a partition image file cannot be mapped; only a whole drive image can be mapped.
map --mem (...)/hda.img.gz (hd0)
map --hook
chainloader (hd0)+1
boot
The example file hda.img.gz can be downloaded from ftp://ftp.linuxeden.com/tinybit/. This hda.img.gz has been successfully tested. Please also download the newly updated grub.exe, grldr, and grub4lin files (at the same FTP URL mentioned above, with the file date being February 8), to test the NTFS issue you mentioned. These files contain debugging information. When testing, please post the output result of the map --mem command.
Also, how many GRLDRs are there on your hard drive? Could it be that you are calling an old GRLDR? Please delete all GRLDR files on all hard drives, then copy the latest GRLDR in, and then test.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2005-2-8 00:00 |
|
|
windrv
中级用户
  
积分 385
发帖 118
注册 2003-11-11
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
Dear Tinybit,
Happy Chinese New Year!
There is not much problem with your new pre04 version.
Finally I could get it right for booting from a USB flash drive . It boots from a NTFS partition of the booting USB flash drive with grldr setup on (hd0,0).
With some tweaking, I could load up a 400M FAT32 bootable disk with --mem option.
It seems that I have to write out IO.SYS, MSDOS.SYS & COMMAND.COM onto the disk image file first before the memdrive can read the disk image file; otherwise it turns out a disk read error. I have not thoroughly tested on this. But you could try.
About how to build the disk image file, one can download the trial version of WINDRV at windrv.net. It includes a WINDRV Client Configurator. Help documentation has been loaded on the website.
Briefly speaking, you have to build a partition image file with your content and bootable system files above. Then use MBR/BS Manager to add a valid boot sector to your partition image file. And then use Build Disk Manager to add the partition image file to a disk image file. You can simply use the default settings. And then you use the MBR/BS Manager to add a valid MBR to the disk image file. And you can use it with your --mem option or with syslinux's memdisk.
Your --mem option however cannot be used to load Win9x as it seems to play directly with the BIOS hard disk interrupt that Win9x seems not liking it and refuses to load; while memdisk works perfectly with Win9x. Memdisk is also able to let people using memory more than 1G. Suppose you have 2G memory, you can use one 1G for memdisk and 1G left for Win9x. I have not tested it for more memory, and I could tell you later when I find more memory. Memdisk also works well with our WINDRV as Memdisk uses Int15 that does not use HIMEM.SYS to handle memory while our WINDRV uses HIMEM.SYS to handle memory.
If one wants to use more memory drives with memdisk, one can use WINDRV's Build Disk Manager to add more partition image files to the disk image file and memdisk can recognize the disk with more drives as there are partition image files within the disk image file.
One inconvenience with memdisk is that it disables the use of internal hard disk(s) after loading up.
To make Win9x run perfectly all in ram, you can either use memdisk/our WINDRV or both working together. To run Win9x all in ram stably for all purposes, you need to use our WINDRV's virtual disk manager to add a virtual disk drive for storing Windows Swap file; otherwise, some critical applications or hardware may fail such as USB drives, USB CDROM, E4M, etc.
Dear Tinybit,
Happy Chinese New Year!
There isn't much issue with your new pre04 version.
Finally, I managed to boot correctly from a USB flash drive . It boots from an NTFS partition of the bootable USB flash drive with grldr set up on (hd0,0).
With some adjustments, I could load a 400M FAT32 bootable disk with the --mem option.
It seems I have to first write out IO.SYS, MSDOS.SYS & COMMAND.COM onto the disk image file before the memdrive can read the disk image file; otherwise, a disk read error occurs. I haven't thoroughly tested this. But you can give it a try.
Regarding how to build the disk image file, one can download the trial version of WINDRV at windrv.net. It includes a WINDRV Client Configurator. Help documentation has been loaded on the website.
Briefly, you need to build a partition image file with your content and the above bootable system files. Then use MBR/BS Manager to add a valid boot sector to your partition image file. And then use Build Disk Manager to add the partition image file to a disk image file. You can simply use the default settings. Then use the MBR/BS Manager to add a valid MBR to the disk image file. And you can use it with your --mem option or with syslinux's memdisk.
However, your --mem option can't be used to load Win9x as it seems to directly interact with the BIOS hard disk interrupt, which Win9x doesn't like and refuses to load; while memdisk works perfectly with Win9x. Memdisk can also allow people to use more than 1G of memory. Suppose you have 2G of memory, you can use 1G for memdisk and leave 1G for Win9x. I haven't tested it with more memory, and I can tell you later when I find more memory. Memdisk also works well with our WINDRV as Memdisk uses Int15 that doesn't use HIMEM.SYS to handle memory while our WINDRV uses HIMEM.SYS to handle memory.
If one wants to use more memory drives with memdisk, one can use WINDRV's Build Disk Manager to add more partition image files to the disk image file, and memdisk can recognize the disk with more drives as there are partition image files within the disk image file.
One inconvenience with memdisk is that it disables the use of internal hard disk(s) after loading.
To make Win9x run perfectly entirely in RAM, you can either use memdisk/our WINDRV or both working together. To run Win9x stably entirely in RAM for all purposes, you need to use our WINDRV's virtual disk manager to add a virtual disk drive for storing the Windows Swap file; otherwise, some critical applications or hardware may fail, such as USB drives, USB CDROM, E4M, etc.
|
|
2005-2-12 00:00 |
|
|
gmy
版主
        操作系统爱好者
积分 1113
发帖 392
注册 2002-11-11
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
谢谢不点, 我个人觉得还是0.2.0 pre9 好用一些,我的 一键GHOST 就是以该版为内核的.总觉得 新版有些脱离原味, 如 boot form cd 功能不能用, 新 memdisk 对系统要求较高......另外,还有一个问题,使用旧版(可能是pre9) 的 GRLDR 汉化版 和 GRUB.exe 汉化版 能否启动 新版 0.4.0 ? (嫁接c:\boot\grub\*.* 可以吗?)
Thanks but no thanks. Personally, I think version 0.2.0 pre9 is more user-friendly. My one-key GHOST is based on this version. I always feel that the new version is somewhat deviating from the original flavor. For example, the boot from CD function doesn't work, and the new memdisk has relatively high requirements for the system... Also, there is another question: Can the Chinese - localized versions of GRLDR and GRUB.exe from the old version (probably pre9) start the new version 0.4.0? Can we graft c:\boot\grub\*.*?
|

DOS之家 http://doshome.com 站长 葛明阳 |
|
2005-2-12 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
谢谢,非常感谢诸位的大力协助。这个 memdrive 的仿真代码,完全是我自己写的,没有参考 syslinux 中的memdisk,所以,某些地方不如 memdisk 好。不过,既然有人发现毛病了,我就要考虑去解决它了。gmy 所说的对系统要求较高,这一点我不打算解决。因为我觉得不值得去特别照顾老机器(如果我的老奔二 PII 128M RAM都很顺利的话,真不能想象现在还有比这更低档的机器)。如果实在想用老机器,那么 memdisk 就是一个很好的选择。
scdrom 没有编译进去,因为这个模块我没有精力去维护,出现的 BUG 我无法去排除。而 gandalf的中文版本包含了这个模块,所以,如果需要这个模块,就等着 gandalf 的中文版。如果可能的话,建议在 GRUB 中直接启动sbm.bin,这也是一个启动 CDROM 的办法。
用任何一个旧版本的 GRUB(甚至包括未经改动的原始的 GNU GRUB),都可以启动新版本的 GRUB for DOS,方法很简单,是这样的:
kernel (...)/.../grub4lin
boot
用这种办法,你无需安装 GRUB 新版本就可以自由地使用它了。那些 boot/grub/*.* 文件没有太大用处,删掉也可。
Thanks, and I really appreciate everyone's great assistance. This simulation code for memdrive was completely written by myself, without referring to memdisk in syslinux, so some aspects are not as good as memdisk. However, since someone found a problem, I need to consider solving it. The requirement that gmy mentioned for a relatively high system is something I don't plan to address. Because I think it's not worth specifically taking care of old machines (if my old Pentium II PII 128M RAM is very smooth, I really can't imagine there are lower-end machines now). If you really want to use an old machine, then memdisk is a very good choice.
The scdrom was not compiled in because I don't have the energy to maintain this module, and I can't eliminate the bugs that appear. And gandalf's Chinese version includes this module, so if you need this module, just wait for gandalf's Chinese version. If possible, it is recommended to directly boot sbm.bin in GRUB, which is also a way to boot the CDROM.
Using any old version of GRUB (even including the original unmodified GNU GRUB), you can boot the new version of GRUB for DOS. The method is very simple, like this:
kernel (...)/.../grub4lin
boot
With this method, you can freely use the new version of GRUB without installing it. Those boot/grub/*.* files are not very useful and can be deleted.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2005-2-12 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
0.2 系列是个不再维护的版本。建议转向 0.4 系列。
0.4 中包括了一些新的命令参数
map --floppies=2
让 BIOS 数据区中的软盘个数成为 2
map --harddrives=3
让 BIOS 数据区中的硬盘个数成为 3
假定你有两个真实的硬盘,现在,如果你想禁止 (hd1),就可以这样:
map --harddrives=1
本来你有两个硬盘,现在这个数目变成了 1, 那么,你可以试试,在启动进入 DOS 或者 win98 后,硬盘个数是否已经减少了。
这是禁止访问 (hd1) 的另外一种方法了,以前是用 map --disable-chs-mode --disable-lba-mode 来禁止。这次不用仿真就能禁止。
Version 0.2 is an unmaintained version. It is recommended to switch to version 0.4.
Version 0.4 includes some new command parameters
map --floppies=2
Set the number of floppy disks in the BIOS data area to 2
map --harddrives=3
Set the number of hard drives in the BIOS data area to 3
Suppose you have two real hard drives. Now, if you want to disable (hd1), you can do this:
map --harddrives=1
Originally you had two hard drives, and now the number becomes 1. Then, you can try whether the number of hard drives has decreased after booting into DOS or win98.
This is another way to disable access to (hd1). Previously, it was done by using map --disable-chs-mode --disable-lba-mode to disable. This time, it can be disabled without emulation.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2005-2-12 00:00 |
|
|