|
原帖由 chenall 于 2007-8-21 12:03 PM 发表
因为之前测试过直接使用VDM创建的IMG启动失败,后来就没有再试了.
我再试下直接使用VDM创建或FILEDISK/WINIMAGE创建的文件看能否启动.
还有一个问题,为何我创建的DSK文件无法被MEMDISK启动.
还需要做 ...
In most situations, you can simply use map --mem instead of using memdisk.
map --mem can load up img file, partition image file; no need for building dsk file, disk image file, from img file. There is now a good tool for handling img file, that is, imdisk. Go and search it in google or baidu.
map --mem can load up gz file of both img and disk file as well.
memdisk can only use dsk file or zip file of disk file.
So your following commands:
kernel (hd0,0)/memdisk
initrd (hd0,0)/winpe.gz
boot
will not work. You need to change winpe.gz into winpe.zip.
And memdisk need a lot of memory for handling decompression; so it is not recommended.
The dsk file built for memdisk should be in CHS format and not in LBA format. You also need to use grubinst to write grldr.mbr to the dsk file used by memdisk. When using grubinst to write grldr.mbr to the mbr of the dsk file, you need to specify the bootfile to be use inside the dsk file; such as peldr or ntldr or setupldr as you name it inside the dsk file.
Remember also to zero out the disk signature of the dsk file by using da.
So given the trouble above, use memdisk only when you cannot make it with map --mem
[ 本帖最后由 windrv 于 2007-8-21 12:44 PM 编辑 ] |
|