中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-06-21 15:07
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » grub4dos源码里 cdrom --init是什么意思? 查看 2,204 回复 4
楼 主 grub4dos源码里 cdrom --init是什么意思? 发表于 2008-04-09 02:00 ·  中国 新疆 塔城地区 电信
中级用户
★★
积分 354
发帖 83
注册 2003-03-23 00:00
23年会员
UID 1232
性别 男
状态 离线
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 是什么意思? 搜索了,但找不到答案
2 发表于 2008-04-09 11:48 ·  中国 广东 揭阳 电信
中级用户
★★
积分 224
发帖 110
注册 2007-01-07 07:06
19年会员
UID 75698
性别 男
来自 广东
状态 离线
是不是加载ISO文件啊
3 发表于 2008-04-10 12:25 ·  中国 福建 泉州 电信
银牌会员
★★★
积分 1,276
发帖 469
注册 2002-12-23 13:00
23年会员
UID 586
性别 男
来自 福建泉州
状态 离线
最后一行: cdrom --init 是什么意思? 搜索了,但找不到答案

GOOGLE搜索

GRUB4DOS "cdrom --init"

会有你想要的答案,
QQ:366840202
http://chenall.net
4 发表于 2008-04-10 20:19 ·  中国 河南 漯河 联通
初级用户
积分 50
发帖 22
注册 2006-05-14 13:53
20年会员
UID 55514
状态 离线
初始化光驱
5 发表于 2008-04-12 01:16 ·  中国 浙江 杭州 华数宽带
新手上路
积分 15
发帖 6
注册 2008-04-11 10:01
18年会员
UID 115568
性别 男
状态 离线
http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial

CDROM related subjects
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
论坛跳转: