Board logo

标题: grub4dos源码里 cdrom --init是什么意思? [打印本页]

作者: ww111222     时间: 2008-4-9 02:00    标题: grub4dos源码里 cdrom --init是什么意思?

find --set-root /boot/grub/menu.lst
#以上命令为手工加载菜单时准备


default 0
timeout 2

#splashimage /Boot/Grub/Splash.gz
#foreground ffff00
fontfile /Boot/Grub/Fonts.gz
cdrom --init




这是我从网上下载的一个 ISO 里的代码,

  最后一行: cdrom --init  是什么意思? 搜索了,但找不到答案
作者: wwwcccyyy     时间: 2008-4-9 11:48
是不是加载ISO文件啊
作者: chenall     时间: 2008-4-10 12:25
最后一行: cdrom --init  是什么意思? 搜索了,但找不到答案

GOOGLE搜索

GRUB4DOS "cdrom --init"

会有你想要的答案,
作者: yinyuan     时间: 2008-4-10 20:19
初始化光驱
作者: oasisspirit     时间: 2008-4-12 01:16
http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial

CDROM related subjects
[edit]Using ATAPI CDROM in GRUB for DOS
Use the following command to initialize ATAPI CDROM:

   cdrom --init
Then, use the following command to start using ATATPI CDROM:

   cdrom --hook
After cdrom --hook, the CDROM device can be accessed using (cd0), (cd1), etc.

To boot from the first CDROM, use the following commands:

   chainloader (cd0)
   boot
To stop using CDROM:

   map --unhook
   cdrom --stop
The first command removes the (cdN) device mapping, while the second one stops the CDROM driver.

Note: If you boot GRUB for DOS from CDROM, the booting device will be (cd). This device is always accessible. However, if you want to access file from other CDROMs, you still need to initialize them using the above commands.

Examples:

To boot from the first CDROM:

   title Boot From First CDROM
   cdrom --init
   map --hook
   chainloader (cd0)
   boot