|
xiaoyunwang
高级用户
   
积分 940
发帖 374
注册 2007-10-17 来自 湖南张家界
状态 离线
|
『楼 主』:
求助!memdisk 启动 .zip 压缩镜像时说非系统磁盘
使用 LLM 解释/回答一下
是这样的,我用 bcdw 引导 zjz.img 镜像,其中 zjz.img 已 bootlace --floppy --chs zjz.img 写入引导码,并加入 grldr (0.4.3版的,发现 0.4.4版的显示不出中文),menu.lst 其它相关文件,在 zjz.img 中有一个容量为 56.8 MB 的 zjzdos.img ,用 menu.lst 中的 map --mem /zjzdos.img (fd0) 成功启动,我想压缩减少体积,将 zjz.img 中的 zjzdos.img 压缩后为 zjzdos.zip 体积由 56.8 MB 变为 34.9 MB,放到 zjz.img 中, menu.lst 中用
kernel /memdisk.gz c=63 h=64 s=32 floppy
initrd /zjzdos.zip
借 bcdw 启动 zjz.img ,zjz.img 中的 Grub4DOS 启动 zjzdos.zip 后却提示:
而内面 zjzdos.zip 中的 zjzdos.img 是可以单独用 Grub4DOS 引导的啊,chs 参数计算也正确啊,c 是取整值,我有将 c 改成 64 , 63 两个上下端都不行的,求 Grub4DOS 高手帮忙,如何让其启动成功。
Last edited by xiaoyunwang on 2008-10-22 at 16:41 ]
This is like this. I use bcdw to boot the zjz.img image. Among them, the zjz.img has been written with the boot code by bootlace --floppy --chs zjz.img, and grldr (version 0.4.3 is added. It is found that version 0.4.4 cannot display Chinese) and other related files in menu.lst. In zjz.img, there is a zjzdos.img with a capacity of 56.8 MB. The map --mem /zjzdos.img (fd0) in menu.lst successfully starts it. I want to compress to reduce the volume. The zjzdos.img in zjz.img is compressed to zjzdos.zip, and the volume changes from 56.8 MB to 34.9 MB. Put it in zjz.img. In menu.lst, use
kernel /memdisk.gz c=63 h=64 s=32 floppy
initrd /zjzdos.zip
Boot zjz.img with bcdw. After Grub4DOS in zjz.img starts zjzdos.zip, it prompts:
And the zjzdos.img in the inner zjzdos.zip can be bootstrapped by Grub4DOS alone. The chs parameter calculation is also correct. c is the rounded value. I have changed c to 64 and 63, and neither end works. Please help from Grub4DOS experts on how to make it start successfully.
Last edited by xiaoyunwang on 2008-10-22 at 16:41 ]
|
|
2008-10-22 16:19 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
应该是img的制作不是很标准。
memdisk对img的要求比较高,可用map方式引导。
It should be that the production of the img is not very standard. Memdisk has relatively high requirements for the img, and the map method can be used for booting.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-22 19:07 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
不知为何喜欢用img套img方式,有何优点?
I don't know why I like to use the way of nesting img in img. What are the advantages?
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-22 19:09 |
|
|
xiaoyunwang
高级用户
   
积分 940
发帖 374
注册 2007-10-17 来自 湖南张家界
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
由 56.8 MB 变为 34.9 MB 的 .zip 减少体积啊,以最大限度的节省空间,要求 Esboot (或Bcdw)制作光盘菜单时引导对超大的 .IMG 读出的 A: 能读写啊,因此 esboot 启动 IMG 后借 Grub4DOS 再启动一个 IMG(真正的 IMG 工具镜像) 完成 A: 能够读写(因为chainloader /io.sys不能读写A:所以只有IMG套IMG了)。这下倒霉了,我用 fastslz 发布的几个据说比其它 IMG 镜像更能让 Grub4DOS 引导成功,我选了一个超大的,做好后还是只能 map --mem 启动成功,压缩成 .ZIP 后就启动失败。
Last edited by xiaoyunwang on 2008-10-25 at 10:03 ]
Reducing the size of a .zip file from 56.8 MB to 34.9 MB. When using Esboot (or Bcdw) to create a CD menu, it is required that the reading and writing of A: for extremely large .IMG files be successful. Therefore, after esboot starts the IMG, Grub4DOS is used to start another IMG (the real IMG tool image) so that A: can be read and written (because chainloader /io.sys cannot read and write A:, so only IMG nested in IMG is used). Now it's unlucky. I used the ones released by fastslz which are said to be more able to make Grub4DOS boot successfully than other IMG images. I selected a very large one. After making it, it only starts successfully with map --mem. After compressing into .ZIP, it fails to boot.
Last edited by xiaoyunwang on 2008-10-25 at 10:03 ]
|
|
2008-10-25 09:54 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
bcdw--grub--img.gz,效果不是一样的吗?
启动效率应该还要高些。
bcdw--grub--img.gz, isn't the effect the same? The boot efficiency should be even higher.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-25 13:16 |
|
|
zw2312914
初级用户
 
积分 39
发帖 16
注册 2007-2-19
状态 离线
|
  『第 6 楼』:
使用 LLM 解释/回答一下
memdisk.gz 是syslinux中的工具,通常使用它出现无法引导的问题,跟grub4已没有关系。
grub4自身所带的仿真功能比memdisk强大太多,比如可以直接引导iso,可以进行磁盘映射,同时加载多个镜像,引导镜像无需指定chs值等等。如果不是特别偏爱memdisk,或者把它作为备用方案的话,实际上grub4是不需它的。只是需注意,grub4 支持的是gzip压缩格式。
因此,只从减少体积来说,楼主只用grub4即可,memdisk和bcdw都可以去除。因为grub4本身就能很好的支持各种启动介质和引导方式。
Last edited by zw2312914 on 2008-10-25 at 18:46 ]
memdisk.gz is a tool in syslinux. Usually, when there are problems with booting using it, it has nothing to do with grub4 anymore.
The emulation function of grub4 itself is much more powerful than memdisk. For example, it can directly boot ISO, can perform disk mapping, load multiple images at the same time, and boot images without specifying the chs value, etc. If you don't have a special preference for memdisk or use it as a backup option, actually, grub4 doesn't need it. Just note that grub4 supports the gzip compression format.
Therefore, only from the perspective of reducing the volume, the building owner can just use grub4, and memdisk and bcdw can be removed. Because grub4 itself can well support various boot media and boot methods.
Last edited by zw2312914 on 2008-10-25 at 18:46 ]
|
|
2008-10-25 18:34 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
map与memdisk,最好两种方式都保留,以实现最好的兼容性。
Both map and memdisk are retained, preferably in both ways, to achieve the best compatibility.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-25 18:47 |
|
|
xiaoyunwang
高级用户
   
积分 940
发帖 374
注册 2007-10-17 来自 湖南张家界
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
原来 Grub4DOS 可以直接启动 .GZ 压缩的 IMG 镜像,看来我得多学习啊,我试试看,据说,用 Grldr 引导不具通用性,用 Grub.exe 程序好一点,不知是否如此。
Last edited by xiaoyunwang on 2008-10-26 at 13:08 ]
It turns out that Grub4DOS can directly boot .GZ compressed IMG images. It seems I need to study more. I'll give it a try. It's said that booting with Grldr is not universal, and using the Grub.exe program is better. I wonder if that's the case.
Last edited by xiaoyunwang on 2008-10-26 at 13:08 ]
|
|
2008-10-26 13:03 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
  『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by xiaoyunwang at 2008-10-26 13:03:
原来 Grub4DOS 可以直接启动 .GZ 压缩的 IMG 镜像,看来我得多学习啊,我试试看,据说,用 Grldr 引导不具通用性,用 Grub.exe 程序好一点,不知是否如此。 ...
个人以为应该是grldr好于grub.exe吧。
bcdw--grldr--img.gz的方式,应该不会比你用的bcdw--img--grldr--img.gz的方式差。
既然是考虑通用性问题,两者都用grldr,而并非你用的是grub.exe引导,而我用的是grldr。呵呵。
当然,不同的方式中,grub的兼容性表现,仅是推测,到底如何,还需作者解释。
Originally posted by xiaoyunwang at 2008-10-26 13:03:
It turns out that Grub4DOS can directly boot .GZ compressed IMG images. It seems I need to learn more. Let me give it a try. It is said that booting with Grldr is not universal, and using the Grub.exe program is better. I wonder if that's the case. ...
Personally, I think Grldr should be better than Grub.exe.
The method of bcdw--grldr--img.gz should not be worse than the method you use of bcdw--img--grldr--img.gz.
Since we are considering the universality issue, both use Grldr, rather than you using Grub.exe for booting and me using Grldr. Hehe.
Of course, the compatibility performance of Grub in different methods is just a speculation. How exactly it is, still needs the author's explanation.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-26 13:23 |
|
|
xiaoyunwang
高级用户
   
积分 940
发帖 374
注册 2007-10-17 来自 湖南张家界
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
不错,太感谢了,原来 Grub4DOS 真的直接启动了 .GZ 压缩的 .IMG 镜像,我才不会偏爱 memdisk 启动和 .ZIP 压缩的格式呢,我看到很多大镜像压缩后都是用 memdisk 启动的,原以为 Grub4DOS 不能启动直接压缩的镜像,网上相关的一些文章也是这样说的,近日一试,又长见识了。
Last edited by xiaoyunwang on 2008-10-26 at 13:39 ]
That's great. Thanks a lot. It turns out that Grub4DOS can really directly boot the .GZ compressed .IMG image. I won't have a preference for memdisk boot and .ZIP compressed formats. I saw that many large images are booted with memdisk after compression. I originally thought Grub4DOS couldn't boot directly compressed images. Some related articles on the Internet also said so. I tried it recently and learned something new again.
Last edited by xiaoyunwang on 2008-10-26 at 13:39 ]
|
|
2008-10-26 13:27 |
|
|
xiaoyunwang
高级用户
   
积分 940
发帖 374
注册 2007-10-17 来自 湖南张家界
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by lianjiang2004 at 2008-10-26 01:23 PM:
个人以为应该是grldr好于grub.exe吧。
bcdw--grldr--img.gz的方式,应该不会比你用的bcdw--img--grldr--img.gz的方式差。
既然是考虑通用性问题,两者都用grld ...
那是肯定的,感谢 lianjiang 兄
bcdw--grldr--img.gz
bcdw--grub--img.gz
我再仔细看一下你的教程(看了又忘了).
要弄出中文菜单和将中文菜单置于背景图像上可能我还要学习一下了,grub4dos 0.4.3 弄得出中文菜单,偏偏 0.4.4 就弄不出了,也是同样的操作方法。
Originally posted by lianjiang2004 at 2008-10-26 01:23 PM:
Personally, I think grldr is better than grub.exe.
The method of bcdw--grldr--img.gz should not be worse than the method of bcdw--img--grldr--img.gz you are using.
Since it is considering the versatility issue, both use grld ...
That's for sure, thanks to brother lianjiang
bcdw--grldr--img.gz
bcdw--grub--img.gz
I'll take another close look at your tutorial (I read it and then forgot).
It may still be necessary for me to learn how to get Chinese menus and place Chinese menus on the background image. grub4dos 0.4.3 can get Chinese menus, but 0.4.4 can't, using the same operation method.
|
|
2008-10-26 13:37 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
map是不能压缩的,而map --mem是支持压缩的。
早期的文章,一般都是基于gnu grub的,没有map --mem功能。
加上一般的img很少人用3-50mb的大家伙,没必要压缩。压缩后自己处理也麻烦。
Maps cannot be compressed, while map --mem supports compression. Early articles were generally based on GNU GRUB and did not have the map --mem function. Also, since few people use large 3 - 50MB IMGs, there is no need for compression. It is also troublesome to handle after compression.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-26 16:48 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Update 3: Beginning at version 0.4.0, GRUB for DOS supports memdrives.
Example:
# boot into a floppy image
map --mem (hd0,0)/floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
boot
Because the image will be copied to a memory area, the image
itself can be non-contiguous and even gzipped.
Update 3: Beginning at version 0.4.0, GRUB for DOS supports memdrives.
Example:
# boot into a floppy image
map --mem (hd0,0)/floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
boot
Because the image will be copied to a memory area, the image
itself can be non-contiguous and even gzipped.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-26 17:10 |
|
|
xiaoyunwang
高级用户
   
积分 940
发帖 374
注册 2007-10-17 来自 湖南张家界
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
Originally posted by lianjiang2004 at 2008-10-26 05:10 PM:
Update 3: Beginning at version 0.4.0, GRUB for DOS supports memdrives.
Example:
# boot into a floppy image
map --mem (hd0,0)/floppy.img (fd0)
map --hook
chainloader (fd0)+1
...
又出现一个新问题,不知何故,用 2008-3-14 日期的 Grub4DOS 中的中文 Grldr 才能启动 map --mem /boot/grub/zjzdos.gz (fd0) 而最新版 2008-10-22 日期的 Grub4DOS 的中文 Grldr 启动时还是报非系统磁盘(zjzdos.gz 共 38 MB):
难道最新版的还敌不过早先的版本?郁闷啊!
Originally posted by lianjiang2004 at 2008-10-26 05:10 PM:
Update 3: Beginning at version 0.4.0, GRUB for DOS supports memdrives.
Example:
# boot into a floppy image
map --mem (hd0,0)/floppy.img (fd0)
map --hook
chainloader (fd0)+1
...
Another new problem arises. For some reason, only the Chinese Grldr in Grub4DOS dated 2008-3-14 can boot map --mem /boot/grub/zjzdos.gz (fd0). When booting with the Chinese Grldr in the latest version of Grub4DOS dated 2008-10-22, it still reports "Non-system disk (zjzdos.gz is 38 MB):
Could it be that the latest version is not as good as the earlier version? So depressed!
|
|
2008-10-27 03:13 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by xiaoyunwang at 2008-10-27 03:13:
又出现一个新问题,不知何故,用 2008-3-14 日期的 Grub4DOS 中的中文 Grldr 才能启动 map --mem /boot/grub/zjzdos.gz (fd0) 而最新版 2008-10-22 日期的 Grub4DOS 的中 ...
解决其他bug时,引入了新的bug,不是没这可能,新版存在的问题,需要你到官网报告。
When solving other bugs, introducing new bugs is not impossible. For the problems in the new version, you need to report to the official website.
|

Windows 一键还原
http://www.yjhy.com |
|
2008-10-27 07:57 |
|