|
|
[这个贴子最后由goodluck1982在 2006/05/08 06:28pm 第 2 次编辑]
我用grub_for_dos_0.4.1 (grub0.97)做的启动光盘(在linux下),使用的命令如下(参照grub4dos的readme文件)
mkisofs -R -J -joliet-long -V "GrubBoot" -b grldr -no-emul-boot -boot-load-seg 0x1000 -o bootable.iso iso_root
想通过光盘启动grub达到多重引导目的。
制作出iso来以后在vmware上实验,一切ok,
可以按我的要求光盘启动
于是刻盘,刻出的盘也可以正常读
于是我用自己的机子试刻出的盘,发现无法光盘启动
换了台机子试,依然无法光盘启动grub
我又在vmware上试,不过这次不是用iso文件,而是使用我的物理光驱(16x dvd)作为vmware光驱
发现vmware上依然能光盘启动grub,至少说明不存在光盘刻录问题。
事实上,vmware中启动grub后,自动识别(cd)设备
然而我在本机上试时,用同样grub通过C:盘上的grldr启动后,发现根本不能识别(cd)
这是怎么回事儿?
那只能是设置或软硬件问题了。
谁知道这是怎么回事儿,如何解决?
欢迎指教、讨论。
===============附======================
光盘目录结构如下
.
|-- CDlinux
| `-- extra
|-- dos
|-- grub
| |-- boot
| | `-- grub
| `-- chinese
| `-- boot
| `-- grub
|-- linux
| `-- slimlinux
|-- softwares
`-- tools
grub 目录下是 grub_for_dos_0.4.1.zip 解压后的内容。
光盘下的文件/目录如下
drwxr-xr-x 3 CDlinux
drwxrwxr-x 2 dos
-rw-r--r-- 1 gen_iso.sh
-rw-r--r-- 1 grldr
drwxrwxr-x 4 grub
drwxrwxr-x 3 linux
-rw-r--r-- 1 menu.lst
drwxrwxr-x 2 softwares
drwxrwxr-x 7 tools
(cd)/menu.lst内容如下:
# This is a sample menu.lst file. You should make some changes to it.
# Added items for installing GRUB [ which is on your DOS drive C: ] to MBR
splashimage (cd)/grub/chinese/xp2008.xpm.gz
color black/cyan yellow/cyan
background ff4a18
timeout 60
default 4
title --------------Linux-------------
pause
title Slimlinux 3M
root (cd)
kernel /linux/slimlinux/vmlinuz root=/dev/ram vg1=791
initrd /linux/slimlinux/initrd.gz
title CDLinux 17M (support Chinese)
kernel (cd)/CDlinux/bzImage
initrd (cd)/CDlinux/CDlinux.gz
title --------------Dos----------------
pause
title Super DOS 7.10
map --read-only --mem (cd)/dos/SuperDOS.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title Chinese multifunctional boot disk (Reboot,Diskman,Kv3000,Play,Format,Fdisk)
pause Booting this image maybe fail.
pause If fail, please enter SuperDOS7.10 real mode first and then run gurb on this CD.
pause From this new-born grub, can boot this image.
pause --------------------------------------------
map --read-only --mem (cd)/dos/chmfboot.ima (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title Mu Zi boot disk (DC,DG,GHOST,PDOS,F12,Restart)
map --read-only --mem (cd)/dos/mzboot.ima (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title Dos and grub
map --read-only --mem (cd)/dos/grub288.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title Ghost 8.2 System backup
map --read-only --mem (cd)/dos/ghos.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title Change password of windows NT
map --read-only --mem (cd)/dos/change_winNT_pw.imz (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title --------------Other--------------
pause
title Back to dos
savedefault --wait=2
quit
title Halt
halt
title Reboot
reboot
title Windows on (hd0,0)
chainloader (hd0,0)+1
rootnoverify (hd0)
title Boot from floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
title DOS/Win9x on (hd1,0) -- Do not use this to start WinNT/2K/XP
pause Warning: drive map used. Press any key to start DOS/Win9x on (hd1,0)...
map (hd1) (hd0)
map (hd0) (hd1)
root (hd1,0)
makeactive
chainloader (hd1,0)+1
rootnoverify (hd0)
title install GRUB on (hd0,0) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,0)/boot/grub/ to MBR. Press any key to begin...
root (hd0,0)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot
title install GRUB on (hd0,1) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,1)/boot/grub/ to MBR. Press any key to begin...
root (hd0,1)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot
|
|