|
wangfei8842
初级用户
 
积分 132
发帖 60
注册 2006-12-21
状态 离线
|
『楼 主』:
*.BS文件是什么?
使用 LLM 解释/回答一下
GRUB启动菜单MENU.LST文件中可以看到下面的语句:
chainloader /boot/msdos.bs
*.bs文件是什么文件?又是如何制作的?
是不是GRUB FOR DOS不能直接启动光盘里的*.IMG文件?
想要启动光盘里的IMG文件怎么办????
In the GRUB boot menu MENU.LST file, you can see the following statement:
chainloader /boot/msdos.bs
What is the *.bs file? And how is it made?
Is it that GRUB FOR DOS cannot directly boot the *.IMG file in the CD?
How to boot the IMG file in the CD????
|
|
2007-6-25 18:45 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
新版本无需启动 DOS 的引导扇区文件了。BS 应该是引导扇区(boot sector)的意思。
新版本可以直接用 chainloader /io.sys 来启动 DOS。
GRUB4DOS 完全可以启动光盘上的 IMG (磁盘映像)文件,不过目前只能用 map --mem 的方式才能启动它。
map --mem (cd)/.../floppy.img
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
不过,前提是,grub 得事先可以访问 (cd) 才行。当机器是从 no-emulation 模式的光盘启动时,grub 就能访问 (cd) 设备。否则,必须用
cdrom --init
map --hook
如果以上命令成功,那么就可以访问 (cd0) 设备了:
map --mem (cd0)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
The new version no longer needs to boot the boot sector file of DOS. BS should mean boot sector.
The new version can directly use chainloader /io.sys to boot DOS.
GRUB4DOS can completely boot the IMG (disk image) file on the CD, but currently it can only be booted in the way of map --mem.
map --mem (cd)/.../floppy.img
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
However, the premise is that grub must be able to access (cd) in advance. When the machine is booted from the CD in no-emulation mode, grub can access the (cd) device. Otherwise, it must use
cdrom --init
map --hook
If the above commands are successful, then the (cd0) device can be accessed:
map --mem (cd0)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
|

因为我们亲手创建,这个世界更加美丽。 |
|
2007-6-25 23:15 |
|
|
wangfei8842
初级用户
 
积分 132
发帖 60
注册 2006-12-21
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
五体投地啊!高手就是高手!万分感谢!真是"如涛涛江水...........................啊!!!"
Full of admiration! The expert is indeed an expert! Thanks a million! It's really "like a surging river........................... ah!!!"
|
|
2007-6-26 08:56 |
|
|
wangfei8842
初级用户
 
积分 132
发帖 60
注册 2006-12-21
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
是不是要连在一起这样用才对?
title 2.*************
cdrom --init
map --hook
map --mem (cd0)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
我用过后显示下面的内容.
cdrom --init
ATAPI device found: Data=170, Ctrl=376, dev=0(Note: 0=master, 1=slave)
CDROM device found: Data=170, Ctrl=376, dev=0(Note:0=master,1=slave)
Found 1 CD-ROM. (Note: Further read could fali if the hardware does not
fully support ATAPI).
map --hook
map --mem (cd0)/img/mm.img (fd0)
Error 17: File not found
Press any key to continue...
Last edited by wangfei8842 on 2007-6-26 at 11:05 AM ]
Is it correct to use them together like this?
title 2.*************
cdrom --init
map --hook
map --mem (cd0)/.../floppy.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot
After I used it, the following content was displayed.
cdrom --init
ATAPI device found: Data=170, Ctrl=376, dev=0(Note: 0=master, 1=slave)
CDROM device found: Data=170, Ctrl=376, dev=0(Note:0=master,1=slave)
Found 1 CD-ROM. (Note: Further read could fali if the hardware does not
fully support ATAPI).
map --hook
map --mem (cd0)/img/mm.img (fd0)
Error 17: File not found
Press any key to continue...
Last edited by wangfei8842 on 2007-6-26 at 11:05 AM ]
|
|
2007-6-26 10:48 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
学会使用命令行,不要总是用菜单。在命令行上敲入命令,可以方便调试。
你这个文件要么不存在,要么没被 GRUB 识别出来。换用大写字母的文件名再试试。
有些光盘的文件系统格式,不被 GRUB 支持。目前 GRUB 支持的光盘格式是 ISO9660,以及在这之上的 Rock Ridge 格式。你制作光盘的时候,最好用 mkisofs 来制作,并用 -R 参数。
特别说明,如果光盘是 Joliet 格式,那么光盘上的文件有很大的可能无法被 GRUB 读出来。
Learn to use the command line, don't always use the menu. Typing commands on the command line can facilitate debugging.
Either this file does not exist or it is not recognized by GRUB. Try using the file name in uppercase letters again.
Some CD-ROM file system formats are not supported by GRUB. Currently, the CD-ROM formats supported by GRUB are ISO9660 and the Rock Ridge format built on top of it. When you create the CD-ROM, it is best to use mkisofs to create it and use the -R parameter.
Special note: If the CD-ROM is in Joliet format, there is a high possibility that the files on the CD-ROM cannot be read by GRUB.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2007-6-26 12:07 |
|
|
wangfei8842
初级用户
 
积分 132
发帖 60
注册 2006-12-21
状态 离线
|
|
2007-6-29 10:15 |
|